AnsweredAssumed Answered

Using TSC2007 touchscreen

Question asked by Daniel Hilst on Dec 3, 2015
Latest reply on Dec 3, 2015 by igorpadykov

Hi every body!

 

We're trying to use TSC2007 with i.MX6q, I've configured device-tree as following:

[code]

&i2c2 {

        tsc2007: tsc2007@48 {

                compatible = "ti,tsc2007";

                reg = <0x48>;

                interrupt-parent = <&gpio3>;

                interrupts = <21 8>;

                gpios = <&gpio3 21 0>;

        ti,x-plate-ohms = <400>;

    };

 

    ...

[/code]

 

The driver is loading fine. I see the input device created at /dev/input/, when pressing the touch I can see the pointer moving in the screen but it doesn't click at all. I saw that no interrupt is triggered when the touch is pressed. Any ideas?

 

Also was looking for i2c current clock speed and find this at device tree:

[code]

i2c2: i2c@021a4000 {

        #address-cells = <1>;

        #size-cells = <0>;

        compatible = "fsl,imx6q-i2c", "fsl,imx21-i2c";

        reg = <0x021a4000 0x4000>;

        interrupts = <0 37 0x04>;

        clocks = <&clks 126>;

        status = "disabled";

};

[/code]

 

What the "126" at "clocks = <&clks 126>;" means? How can I determine the clock speed that i2c is using?

 

Regards,

- dhs

Outcomes