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.

CPU-SDK-AM335X:Change the touch config (wire-config) in the device tree, but it not work.

Part Number: PROCESSOR-SDK-AM335X

I'm developing on TI SDK 06.03.00.106, my project uses 4-pin touch, but it has a different wire pin than the default.

I changed the following settings in the device tree, but it didn't make any difference in weston-simple-touch and evtest.

ti,wire-config = <0x01 0x10 0x22 0x33>; 

How to setting the touch pins in the device tree?

Or do I need to modify ti_am335x_tsc.c ?

  • Hello Nick,

    Please reference the device tree bindings documentation for information about how to modify the device tree.

    In your case, we are looking at the tscadc node, tsc subnode.

    Let's check the node definition in arch/arm/boot/dts/am33xx.dtsi:
    ok, the tsc node uses compatible = "ti,am3359-tsc";

    Now let's search for that compatible string in the devicetree bindings documentation:
    Documentation/devicetree/bindings$ grep -r 'ti,am3359-tsc'

    And there is the documentation you are looking for:
    Documentation/devicetree/bindings/input/touchscreen/ti-tsc-adc.txt

    Regards,

    Nick

  • Hi Nick,

    I have check the device tree setting in the documentation and I have printf "wire-config" value in the ti_am335x_tsc.c ,the wire-config have change in the dmesg.

    But  the evtest and weston-simple-touch have not any diff with default.