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
>What the "126" at "clocks = <&clks 126>;" means?
it is IMX6QDL_CLK_I2C2 defined in .../include/dt-bindings/clock/imx6qdl-clock.h
~igor
Here is a imx6 dts that uses tsc2007:
Have you configured GPIO3_21 as GPIO?
Also, does it help if you do "interrupts = <21 0>;" instead?
Regards,
Fabio Estevam