This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM437x的ADC1驱动问题

Other Parts Discussed in Thread: AM4372

我现在正在测试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/