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/AM3352: TSC2007 integration

Part Number: AM3352
Other Parts Discussed in Thread: TSC2007

Tool/software: Linux

Hi,

We have a custom board designed with AM352 sitara processor. We are using linux v3.14.49. We want to integarete TSC2007 touch controller via I2C.

We have referred the below URL to configure it.

https://e2e.ti.com/support/arm/sitara_arm/f/791/p/368154/1298853#1298853

We have built our linux kernel with TSC2007 touch controller driver with inbuilt support.

The I2C configuration for our project in .dts file is as below:

i2c0_pins: pinmux_i2c0_pins {
pinctrl-single,pins = <
0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
0x54 (PIN_INPUT_PULLUP | MUX_MODE7) /* TSC2007PENIRQ-GPMC_A5_gpio_1_21 */
>;
};

The i2c node has been modified as below:

&i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins>;

status = "okay";
clock-frequency = <400000>;

tps: tps@2d {
reg = <0x2d>;
};

tsc2007: tsc2007@48 {
compatible = "ti,tsc2007";
reg = <0x48>;
interrupt-parent = <&gpio1>;
interrupts = <16>;
gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
ti,x-plate-ohms = <200>;
};
};

But when we are booting the kernel we are getting the kernel log as below.

[    2.226662] tsc2007 0-0048: Failed to request irq 0: -22

[    2.232153] tsc2007: probe of 0-0048 failed with error -22

 

Query1: Also want to know how to configure the interrupts in i2c node, as currently we have configured as 16 (interrupts = <16>;) as we referred in the above url. Whether the interrupt value could be the cause.

Can you please assist where we are going wrong and how to resolve the issue.

Regards

Sudipta.