Reputation: 61
I did the following steps in order to use spidev in Linux- kernel 3.14.28 compiled on arm imx6Q (SMARC board, by Yocto-Project):
CONFIG_SPI_SPIDEV=y
.&smarc_spi0 {
spidev@1 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "linux, spidev";
spi-max-frequency = <20000000>;
reg = <1>;
};
};
I compiled my Linux successfully, and still can't see /dev/spidev0.1
appear in /dev folder.
Any idea?
Upvotes: 2
Views: 4296
Reputation: 61
I found out the problem: compatible string wasn't accurate.. I had extra space between "linux," and "spidev".. The appropriate way is: compatible = "linux,spidev";
Upvotes: 3