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.

Compiler/PROCESSOR-SDK-AM335X: Getting problem in enabling ADC in am335x-evm

Part Number: PROCESSOR-SDK-AM335X

Tool/software: TI C/C++ Compiler

Hi,

I was try to bring up the ADC channel but i am not able to get that..

Please help me out of this issue.

My dtsi file looks like below

&tscadc {
    status = "okay";
    tsc {
        ti,wires = <8>;
        ti,x-plate-resistance = <200>;
        ti,coordinate-readouts = <5>;
        ti,wire-config = <0x00 0x11 0x22 0x33>;
        ti,charge-delay = <0x400>;
    };

    adc {
        ti,adc-channels = <0 1 2 3 4 5 6 7>;
    };
};

but in kernel i am not able make it <*> TI's AM335X ADC driver like this it's in the Module formate <M> TI's AM335X ADC driver onle after getting module formate how to load the my board please help of this as wall

Thanks & regards

Chethan GR

  • Hello Chethan,

    The AM335x ADC can be used either for general purpose ADC inputs, or as the inputs from a resistive touch screen. We have two different Linux drivers: the adc driver, and the touchscreen (tsc) driver. Then we have a separate low level driver called tsadc that owns the ADC hardware and communicates with the adc and tsc drivers.

    Do you currently have a resistive touch screen connected to the ADC inputs? If not, please remove the tsc sub-node from your tscadc node and try again.

    Regards,

    Nick

  • Hello Chethan,

    I have unlocked the thread. Feel free to continue the conversation if you need additional support.

    Regards,

    Nick