AnsweredAssumed Answered

i.MX6UL ADC

Question asked by Zongbiao Liao on Sep 15, 2016
Latest reply on Sep 16, 2016 by igorpadykov

Hello Community

 

I want to use ADC1 input 3,4, 6 and 7 of i.MX6UL, so I configed device tree as bellow:

 

in dts file:

reg_vref_3v3: regulator-vref {

  compatible = "regulator-fixed";

  regulator-name = "vref-3v3";

  regulator-min-microvolt = <3300000>;

  regulator-max-microvolt = <3300000>;

};

 

&adc1 {

  pinctrl-names = "default";

  pinctrl-0 = <&pinctrl_adc1>;

  vref-supply = <&reg_vref_3v3>;

  status = "okay";

};

 

pinctrl_adc1: adc1grp {

  fsl,pins = <

  MX6UL_PAD_GPIO1_IO03__GPIO1_IO03 0xb0    

 MX6UL_PAD_GPIO1_IO04__GPIO1_IO04 0xb0

 

MX6UL_PAD_GPIO1_IO06__GPIO1_IO06 0xb0

MX6UL_PAD_GPIO1_IO07__GPIO1_IO07 0xb0

  >;

};

 

in imx6ul.dtsi:

adc1: adc@02198000 {

  ...

  num-channels = <8>;

  ...

};

 

And I want to use GPIO1_IO00 ~ GPIO1_IO02 and GPIO1_IO05 for some other functions.

But under /sys/bus/iio/devices/iio:device0, I can see in_voltage0_raw ~ in_voltage7_raw.

Does it mean I cannot use GPIO1_IO00 GPIO1_IO02 and GPIO1_IO05 for other functions?

 

Thank you!

 

ZongbiaoLiao.

 

 

Outcomes