我正在写mcp3008驱动程序而不使用iio进行学习。 在这个阶段,我想要调用驱动程序的探测器。在Linux 4.9设备树中添加SPI slave设备rapbery pi
我已经附加我在DT弓/ ARM /开机/ DTS/bcm2708-RPI-b.dts代码
&spi0 {
pinctrl-names = "default";
pinctrl-0 = ;
cs-gpios = , ;
spidev0: [email protected]{
compatible = "spidev";
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
};
spidev1: [email protected]{
compatible = "spidev";
reg = <1>; /* CE1 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
};
/* new device for mcp3008 */
aartyaa_3008{
compatible = "aartyaa_mcp3008";
reg = <0&g