This is a cache of https://discuss.96boards.org/t/how-to-keep-mosi-line-by-default-high/8957. It is a snapshot of the page at 2024-10-04T12:11:13.409+0000.
How to keep MOSI line by default HIGH - HiKey 960 - 96Boards Forum

How to keep MOSI line by default HIGH

In Hikey960, by default MOSI line is idle low. I would like to run some SPI communication tests by keeping MOSI default HIGH. Could someone suggest how can i do that? Thanks!

SPI mode 0x00 is configured.

@pratap4all You can remove the corresponding SPI pinmux for MOSI from devicetree and enable gpio_hog [1] to keep that pin high.

[1] https://www.kernel.org/doc/Documentation/devicetree/bindings/gpio/gpio.txt