我现在正在测试AM437X的板子的读ADC1引脚电压值的驱动,我用的内核是Linux-4.1.18,SDK的版本是2.11.
am437x-gp-evm.dts的代码如下:
&adc1 {
status = "okay";
adc {
ti,adc-channels = <0 1 2 3 4 5 6 7>;
};
};
am4372.dtsi 的代码如下:
adc1: adc1@4834c000 {
compatible = "ti,am3359-tscadc";
reg = <0x4834c000 0x1000>;
ti,hwmods = "adc1";
interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&l3s_gclk>;
clock-names = "fck";
status = "disabled";
adc {
#io-channel-cells = <1>;
compatible = "ti,am3359-adc";
};
};
那么,当我在终端执行以下命令的时候,只有iio:device0目录而没有iio:device1目录,大概是哪里还需要配置或者配置错误了?
Target# ls /sys/bus/iio/devices/
Jian Zhou:
这里有个SDK的说明文档,推荐您先看一下:http://processors.wiki.ti.com/index.php/Processor_SDK_Linux_ADC
Zhanming Zhang:
回复 Jian Zhou:
看了,然后呢?还是没有说怎么生成iio:device1啊…….