October 2017
Intermediate to advanced
586 pages
14h 8m
English
By filling our device node in the DT properly, the kernel will build a struct spi_device for us, and give it as a parameter to our SPI core functions. The following is just an excerpt from the SPI DT listing defined previously:
&ecspi1 {
status = "okay";
label: fake_spi_device@1 {
compatible = "packtpub,foobar-device";
reg = <1>;
a-string-param = "stringvalue";
spi-cs-high;
};
};