Using TSC2007 touchscreen

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using TSC2007 touchscreen

3,885 Views
danielhilst
Contributor II

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

Labels (2)
Tags (2)
0 Kudos
Reply
2 Replies

2,194 Views
igorpadykov
NXP Employee
NXP Employee

>What the "126" at "clocks = <&clks 126>;" means?

it is IMX6QDL_CLK_I2C2 defined in  .../include/dt-bindings/clock/imx6qdl-clock.h

~igor

0 Kudos
Reply

2,194 Views
fabio_estevam
NXP Employee
NXP Employee

Here is a imx6 dts that uses tsc2007:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/imx6qdl-tx6.d...

Have you configured GPIO3_21 as GPIO?

Also, does it help if you do "interrupts = <21 0>;" instead?

Regards,

Fabio Estevam

0 Kudos
Reply