I have made the DTS changes for the SC18is602b for my board.
And was able to see the new node created in sysfs with address 2f
ls -l /sys/class/spi_master/spi32766
lrwxrwxrwx 1 root root 0 Jul 13 10:33 /sys/class/spi_master/spi32766 -> ../../devices/soc0/soc/2100000.aips-bus/21a4000.i2c/i2c-1/1-002f/spi_master/spi32766
When i tried to establish spi node in dev like /dev/spi32766 or /dev/spi i get into error of
[ 1.882599] spi_master spi32766: Failed to create SPI device for /soc/aips-bus@02100000/i2c@021a4000/sc18is602b@2f/spi-device@0
means the extender sc18is602b is not created in dev and its failed
For the dev entry of sc18is602b i have made following changes in i2c node
spi-device@1 {
compatible = "spidev";
reg = <0>;
spi-max-frequency = <>;
status = "okay";
};
What could be the issue?
hello. this is my setting
sc18is602: sc18is602@29 {
compatible = "sc18is602";
reg = <0x29>;
spi@0 {
compatible = "spidev";
reg = <0>;
spi-max-frequency = <1000000>;
};
};