工具/软件:
您好、
我正在开发 SK-AM62B-P1、集成了触摸显示屏。
我正在努力执行以下操作:如果我使用 GPIO 扩展器的引脚作为触摸芯片的中断线路、则驱动程序可以正常工作。
如果我使用 MPU 本身的引脚作为中断、则不会检测到手指触摸。
Belo 工作设备树部分:
&main_i2c2 {
i2c-switch@71 {
i2c@0 {
touchscreen: focaltech@38 {
compatible = "edt,edt-ft5206";
reg = <0x38>;
interrupt-parent = <&exp1>;
interrupts = <22 GPIO_ACTIVE_LOW>; // TS_INT#
reset-gpios = <&main_gpio0 33 GPIO_ACTIVE_LOW>; // EXP_GPIO0_33
touchscreen-size-x = <1024>;
touchscreen-size-y = <600>;
};
};
};
};
以下为非工作器件
&main_i2c2 {
i2c-switch@71 {
i2c@0 {
touchscreen: focaltech@38 {
compatible = "edt,edt-ft5206";
reg = <0x38>;
interrupt-parent = <&main_gpio1>;
interrupts = <22 GPIO_ACTIVE_LOW>; // EXP_GPIO1_22
reset-gpios = <&main_gpio0 42 GPIO_ACTIVE_LOW>; // EXP_GPIO0_42
touchscreen-size-x = <1024>;
touchscreen-size-y = <600>;
};
};
};
};
是否有一些 GPIO 不能用作中断?