新手上路
- 积分
- 25
- 金钱
- 25
- 注册时间
- 2021-4-15
- 在线时间
- 8 小时
|
1金钱
4.3寸的800*480的屏,用的是GT9147的驱动,按照教程第64章的内容,修改设备树和移植GT9147驱动到了内核里 pinctrl_tsc: tscgrp {
fsl,pins = <
/* 4.3寸RGB屏幕,GT9147 */
MX6UL_PAD_SNVS_TAMPER9__GPIO5_IO09 0x10B0 /* TSC_RST */
MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x10B0 /* TSC_INT */
>;
};
……
……
gt9147:gt9147@14 {
compatible = "goodix,gt9147", "goodix,gt9xx";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_tsc>;
reg = <0x14>;
interrupt-parent = <&gpio1>;
interrupts = <9 0>;
reset-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
interrupt-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
status = "okay";
};
启动后串口有显示:
……
GT9147 ID =0X3
input: gt9147 as /devices/platform/soc/2100000.aips-bus/21a4000.i2c/i2c-1/1-0014/input/input2
snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc0
i2c /dev entries driver
……
按理说应该是成功了
然后无论hexdump /dev/input/event1还是event0,event2在点击屏幕是均无任何反应
咋回事,不明白了,另外,我用出厂的系统操作触摸屏时按照快速上手的方法测试时成功的
|
|