Hi all,
I am trying to integrate capacitive touch panel with ft5306 on am335x custom board using android. but i am not getting any events on touching the screen.
The wake pin is connected to reset pin on the board, this pin has low signal at power on time and gets high after power on. The touch panel interrupt is connected to a gpio, this pin has high value signal at power on and remains on low after boot up.
The touchscreen driver and gpio interrupt seems registered.
root@android:/ # getevent
add device 1: /dev/input/event0
name: "ft5x06_ts"
could not get driver version for /dev/input/mice, Not a typewriter
add device 2: /dev/input/event1
name: "gpio-keys"
^C
130|root@android:/ # cat /proc/bus/input/devices
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="ft5x06_ts"
P: Phys=
S: Sysfs=/devices/virtual/input/input0
U: Uniq=
H: Handlers=event0
B: PROP=0
B: EV=b
B: KEY=0
B: ABS=650000 0
I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="gpio-keys"
P: Phys=gpio-keys/input0
S: Sysfs=/devices/platform/gpio-keys/input/input1
U: Uniq=
H: Handlers=kbd event1
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0
root@android:/ # cat /proc/interrupts
CPU0
12: 5512 INTC edma
14: 0 INTC edma_error
18: 1 INTC musb-hdrc.0
19: 0 INTC musb-hdrc.1
36: 9337 INTC da8xx_lcdc
37: 4700 INTC SGX ISR
59: 0 INTC ehrpwm_evt
64: 20947 INTC mmc0
68: 6192 INTC gp timer
70: 18 INTC omap_i2c
71: 0 INTC omap_i2c
72: 1317 INTC OMAP UART0
75: 0 INTC rtc0
76: 0 INTC rtc0
77: 0 INTC wkup_m3
78: 1 INTC wkup_m3_txev
87: 0 INTC ehrpwmTZ
166: 0 GPIO ft5x0x_ts
211: 0 GPIO power
Err: 0
root@android:/ #
But i am not getting any interrupts from the touch screen.
On the board_am335xevm.c file i made the following changes-
#define CAP_TSC_INT GPIO_TO_PIN(0,6)
static void cap_tsc_init(int evm_id,int profile)
{
setup_pin_mux(cap_tsc_pin_mux);
return;
}
static struct pinmux_config cap_tsc_pin_mux[] = {
{"spi0_cs1.gpio0_6", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT},
{NULL,0},
};
static struct i2c_board_info am335x_i2c_boardinfo1[] = {
{
I2C_BOARD_INFO("ft5x06_ts",0x38),
.irq = OMAP_GPIO_IRQ(CAP_TSC_INT),
},
};
static void i2c1_init(int evm_id, int profile)
{
setup_pin_mux(i2c1_pin_mux);
omap_register_i2c_bus(2, 100, am335x_i2c_boardinfo1,
ARRAY_SIZE(am335x_i2c_boardinfo1));
return;
}
Could anyone please provide some points to proceed further.
Regards,
Ebin