基于rk3288平台的gt9xx 触摸驱动移植
一、硬件介绍:
1 core-rk3288j 核心板
2 外接lvds 1280*480的屏幕
3 触摸芯片GT928,I2C驱动,触摸驱动发布版本和时间* Version: 2.4 * Release Date: 2014/11/28 */
4 操作系统Ubuntu16.04
二、触摸芯片硬件电路描述
1 触摸零点右上角
2 触摸尺寸 1280*480
3 中断下降沿触发;
4 I2C1 接口
如:
GTP_INT GPIO7_A6 <&gpio7 6 GPIO_ACTIVE_HIGH>;
GTP_RST GPIO7_A5 <&gpio7 5 GPIO_ACTIVE_LOW>
I2C1_SDA
I2C1_SCL
三、开启驱动移植
1 dts 配置硬件
&i2c1 {
status = "okay";
goodix_ts@5d {
compatible = "goodix,gt9xx";
reg = <0x5d>;
interrupt-parent = <&gpio7>;
interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
goodix,rst-gpio = <&gpio7 5 GPIO_ACTIVE_LOW>;
goodix,irq-gpio = <&gpio7 6 GPIO_ACTIVE_HIGH>;
goodix,cfg-group2 = [
41 E0 01 00 05 05 05 00 02 08 28
05 5A 3C 03 05 00 00 00 00 00 00
00 00 00 00 00 90 30 66 36 2D 05
0D 00 00 00 00 03 25 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00
00 00 00 01 04 05 06 07 08 09 0C
0D 0E 0F FF FF FF FF FF
基于rk3288平台的gt9xx 触摸驱动移植
最新推荐文章于 2022-12-01 10:52:32 发布