Hello All,
Need to configure the 40-pin Header Gpio pins to SPI0 functions in device tree source, not using the jetson-io tool.
Added like this:
pinmux@2430000 {
40pin-spi-pinmux {
pin24 {
nvidia,lpdr = <0x0>;
nvidia,enable-input = <0x1>;
nvidia,tristate = <0x0>;
nvidia,pull = <0x2>;
nvidia,pins = "spi1_cs0_pz6";
nvidia,function = "spi1";
};
pin23 {
nvidia,lpdr = <0x0>;
nvidia,enable-input = <0x1>;
nvidia,tristate = <0x0>;
nvidia,pull = <0x1>;
nvidia,pins = "spi1_sck_pz3";
nvidia,function = "spi1";
};
pin21 {
nvidia,lpdr = <0x0>;
nvidia,enable-input = <0x1>;
nvidia,tristate = <0x0>;
nvidia,pull = <0x1>;
nvidia,pins = "spi1_miso_pz4";
nvidia,function = "spi1";
};
pin19 {
nvidia,lpdr = <0x0>;
nvidia,enable-input = <0x1>;
nvidia,tristate = <0x0>;
nvidia,pull = <0x1>;
nvidia,pins = "spi1_mosi_pz5";
nvidia,function = "spi1";
};
};
};
With this, spi loopback test using userspace device /dev/spidev0.0 is not working.
Using Jetson-io tool,spi loopback test is working.
Looking for the solutions to this.
The above device tree values are taken when jetson-io tool is used, i.e. this tool creates the device tree configurations. But the same configurations not working in device tree source.
-Thanks.