Hi

I need SPI in SLAVE mode

I convert /boot/sun50i-h5-nanopi-neo-core2.dtb to /boot/sun50i-h5-nanopi-neo-core2.dts

and add "spi-slave;"

Code: Select all

                        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;
                        };


and compile again to dtb

but this nothing todo. My /dev/spidev1.0 as master. How i can change it to slave?