Thanks, i don't knows it.
On first at this topic, sfx2000 say about rebuild kernel...
I readed this link and check my kernel config, so i have this options
CONFIG_SPI_SUN4I=y
CONFIG_SPI_SUN6I=y
CONFIG_SPI=y
CONFIG_SPI_MASTER=y
CONFIG_EXPERIMENTAL=y
CONFIG_SPI_SPIDEV=y
CONFIG_SPI_SLAVE=y
CONFIG_SPI_SLAVE_TIME=m
CONFIG_SPI_SLAVE_SYSTEM_CONTROL=m
it's ok.
But next, i dont't understund...
Yes, i have /dev/spidev1.0 and /sys/class/spi_slave
So, how i can use my /dev/spidev1.0 as slave?
I try change my dts: (convert /boot/sun50i-h5-nanopi-neo-core2.dtb to /boot/sun50i-h5-nanopi-neo-core2.dts, edit, and compile again to dtb)
In dts i added "spi-slave;"
spi0 {
pins = "PC0", "PC1", "PC2", "PC3";
function = "spi0";
linux,phandle = <0x21>;
phandle = <0x21>;
spi-slave;
};
spi1 {
pins = "PA15", "PA16", "PA14", "PA13";
function = "spi1";
linux,phandle = <0x23>;
phandle = <0x23>;
spi-slave;
};
But i can't see anything change in my system.
martinayotte, tell me please, how i can reconfigure or rebuild linux kernel driver to support slave?