Hi e2e team,
I have on query regarding SPI bus interfaces in 66AK2E05.
I can see SPI bus 1,2 and 3 master is registered in Linux kernel.
But once after board is booted, Can able to see only SPI 1 device in /dev directory (spi 1 -> /dev/spidev32766.3)
and there is no entry for SPI 2 and SPI 3 bus is created in /dev directory
Want to test loopback test in SPI 2 and SPI 3 using the application provided under "Documentation/spi/spidev_test.c"
But as there is no /dev node entry for BUS 2 and BUS 3 is created cant able to test both.
Went though the dtsi file "keystone.dtsi" and found the below for SPI bus 1
spidev:spi@1 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "rohm,dh2228fv";
spi-max-frequency = <30000000>;
reg = <3>;
};
and copied the same piece of code for SPI bus 2 and 3 in dtsi file as below
spi1:spi@21000600 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "ti,davinci-spi-v1";
reg = <0x21000600 0x200>;
ti,davinci-spi-num-cs = <4>;
ti,davinci-spi-intr-line = <0>;
interrupts = <0 296 0xf01>;
clocks = <&clkspi>;
spidev1:spi@1 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "rohm,dh2228fv";
spi-max-frequency = <30000000>;
reg = <3>;
};
};
spi2:spi@21000800 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "ti,davinci-spi-v1";
reg = <0x21000800 0x200>;
ti,davinci-spi-num-cs = <4>;
ti,davinci-spi-intr-line = <0>;
interrupts = <0 300 0xf01>;
clocks = <&clkspi>;
spidev2:spi@1 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "rohm,dh2228fv";
spi-max-frequency = <30000000>;
reg = <3>;
};
};
Booted the board with the above changes in dtb file and now found out that /dev entries for SPI bus 2 and 3 is created individually
Now I can able to do loopback test on bus 2 and 3
My only question is whether the piece of code whatever added in dtsi file is proper or not or it requires changes.
Also wish to know what is that "rohm,dh2228fv" and what purpose it serves for SPI bus
Please clarify me on this.
Thanks & Regards,
Sarjoon.