Tool/software: Linux
Hi Sir,
We get a trouble in configuring SPI MOSI pin to be MISO function and SPI MISO pin to be MOSI function. I want to configure the "spi2_d1.gpio7_15" pin to be MISO and the "spi2_d0.gpio7_16" to be MOSI. However, when I use below code in dts file, we find the "spi2_d1.gpio7_15" pin to be MOSI and the "spi2_d0.gpio7_16" to be MISO. Do you know how to make them tb what we want?
spi1_pins: pinmux_spi1_pins {
pinctrl-single,pins = <
//B2B_FST.LS_EN_3V3
SPI1_CS2(PIN_OUTPUT | MUX_MODE14) // spi1_cs2.gpio7_12
//B2B_FST.SPI_WP_3V3
SPI1_CS3(PIN_OUTPUT | MUX_MODE14) // spi1_cs3.gpio7_13
//B2B_FST.SPI.CLK_3V3
SPI2_SCLK(PIN_INPUT | MUX_MODE0) // spi2_sclk.gpio7_14
//B2B_FST.SPI.MISO_IO1_3V3
SPI2_D1(PIN_INPUT | MUX_MODE0) // spi2_d1.gpio7_15
//B2B_FST.SPI.MOSI_IO0_3V3
SPI2_D0(PIN_INPUT | MUX_MODE0) // spi2_d0.gpio7_16
//B2B_FST.SPI.CS0_B_3V3
SPI2_CS0(PIN_INPUT | MUX_MODE0) // spi2_cs0.gpio7_17
>;
};
Best Regards
Kevin