AnsweredAssumed Answered

How to enable only ADC part of TSCADC in device tree for i.MX25 on Linux 4.9

Question asked by Vinay Bondade on Aug 10, 2018
Latest reply on Aug 30, 2018 by Victor Linnik

Hi,

 

I would like to use the inaux0 and inaux1 analog inputs of ADC module on i.MX25. The imx25.dtsi file has a section "tscadc" which has subnodes - "adc" and "tsc". I'm not using the touch screen interface, so only need to enable the "adc" sub node. I have added the following in my .dts file - 

 

&tscadc{
status = "okay";
};

&adc {
status = "okay";
inaux@5 {
reg = <5>;
};
inaux@6 {
reg = <6>;
};
};

 

When I boot i.MX25 board, the driver mx25-gcq loading fails with the below error - 

mx25-gcq 50030000.tscadc:adc@50030800: invalid resource
mx25-gcq: probe of 50030000.tscadc:adc@50030800 failed with error -22

 

The entry for tscadc in imx25.dtsi is as follows - 

 

tscadc: tscadc@50030000 {
compatible = "fsl,imx25-tsadc";
reg = <0x50030000 0xc>;
interrupts = <46>;
clocks = <&clks 119>;
clock-names = "ipg";
interrupt-controller;
#interrupt-cells = <1>;
#address-cells = <1>;
#size-cells = <1>;
status = "disabled";

adc: adc@50030800 {
compatible = "fsl,imx25-gcq";
reg = <0x50030800 0x60>;
interrupt-parent = <&tscadc>;
interrupts = <1>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};

tsc: tcq@50030400 {
compatible = "fsl,imx25-tcq";
reg = <0x50030400 0x60>;
interrupt-parent = <&tscadc>;
interrupts = <0>;
fsl,wires = <4>;
status = "disabled";
};
};

 

 

Can please somebody point out what I'm doing wrong?

 

Thanks,

Vinay

Outcomes