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.

Linux: AM335x ADC configuration



Tool/software: Linux

Hello All

My board is am335x-evm, SDK is sdk-02.00.00.11.

I try to porting tslib for touchscreen

I have one problem.

I read the site below:
git.ti.com/.../ti-tsc-adc.txt

 Example:

  tscadc: tscadc@44e0d000 {
 
   compatible = "ti,am3359-tscadc";
 
   tsc {
 
    ti,wires = <4>;
 
    ti,x-plate-resistance = <200>;

    ti,coordiante-readouts = <5>;
 
    ti,wire-config = <0x00 0x11 0x22 0x33>;
 
   };
 
 

   adc {
 
    ti,adc-channels = <4 5 6 7>;
 
   };
 
  }
 

I have one question.

Is it possible to use 0 ~ 3 as normal adc and 4 ~ 7 as touchscreen adc?


  tscadc: tscadc@44e0d000 {
 
   compatible = "ti,am3359-tscadc";
 
   tsc {
 
    ti,wires = <4>;
 
    ti,x-plate-resistance = <200>;

    ti,coordiante-readouts = <5>;
 
    ti,wire-config = <0x00 0x11 0x22 0x33>;
 
   };
 
 

   adc {
 
    ti,adc-channels = <0 1 2 3>;
 
   };
 
  }

Thanks a lot for your help.