Hi,
I’m trying to implement Jetson Nano as SPI slave device.
I need to configure SPI Port0 as slave in Jetson Nano.
My SPI Host (Master) works with CLK speed = 1.5MHz, Data size = 16bits, CLK_POL = 0, CLK_PHA = 0, DataFormat = MSB first.
Below were the changes I made in “tegra210-p3448-0000-p3449-0000-b00.dts” dts file:
spi@7000d400 {
compatible = "nvidia,tegra210-spi-slave";
status = "okay";
spi@0 {
status ="okay";
spi-max-frequency = <1500000>;
};
spi@1 {
status = "okay";
spi-max-frequency = <1500000>;
};
};
I builded and flashed the code into Jetson Nano. But still it looks like Jetson Nano working as SPI Master.
Please let me know do I need to update any other parameters to configure the SPI slave in Jetson Nano?
I tried to check spi driver is enabled or not by using the below command
~$ dmesg | grep -i spi
[ 0.441260] iommu: Adding device 7000d400.spi to group 7
[ 0.441526] iommu: Adding device 7000d600.spi to group 8
I’m looking forward to hearing from you.
Thanks and Regards
Mohan