请选择 进入手机版 | 继续访问电脑版

找回密码
立即注册
搜索
发新帖

17

积分

0

好友

1

主题
发表于 2019-4-29 14:53:49 | 查看: 5278| 回复: 4
够买了荣品RK3288的开发板,由于没有合适的屏幕,自己购买了10.1寸的lvds屏幕跟触摸。[size=13.3333px]按文档改了配置rp-rk3288.dts换了包含文件lcd-rpdzkj_lvds_1280x800_10.1inch.dtsi。屏现在工作正常了。但这个gt9xx的触摸,但触摸工作不正常。我看了默认的[size=13.3333px]rpdzkj_lvds_1280x800_10.1inch.dtsi包含的触摸驱动就是[size=13.3333px]goodix,gt9xx 的驱动。但触摸屏依然无法工作。在内核make menuconfig也添加gt的驱动了

发表于 2019-4-29 15:19:11
你们是自己买的屏跟触摸?如果是的话触摸要让屏的厂家调

回复 显示全部楼层 道具 举报

发表于 2019-4-30 08:41:22
跟厂家要了参数表,还是不行。我看串口打印信息应该是iic出错了,请协助
[    0.945478] <<-GTP-INFO->> GTP driver installing...
[    0.945659] <<-GTP-INFO->> GTP Driver Version: V2.4<2014/11/28>
[    0.945673] <<-GTP-INFO->> GTP Driver Built@16:00:08, Apr 29 2019
[    0.945685] <<-GTP-INFO->> GTP I2C Address: 0x5d
[    0.945782] <<-GTP-INFO->> Guitar reset

[    0.988827] hdmi output corlor mode is 3
[    0.988845] hdmi connect to lcdc1
[    0.988857] switch:en=1,lcdc_id=1,screen type=6,cur type=0
[    1.074112] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -11! Process reset.
[    1.074127] <<-GTP-INFO->> Guitar reset
[    1.188921] <<-GTP-ERROR->> GTP i2c test failed time 1.
[    1.188932] usb 1-1: new high-speed USB device number 2 using rockchip_ehci_host
[    1.212814] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -11! Process reset.
[    1.212828] <<-GTP-INFO->> Guitar reset
[    1.238120] rk_fb_switch_screen: wait update_regs_wait timeout
[    1.238216] rk3288-lcdc lcdc1: lcdc1: dclk:148500000>>fps:60
[    1.238268] pixel clk is 148500000 tmds clk is 148500000
[    1.238317] rockchip-hdmiv2 ff980000.hdmi: [hdmi_dev_config_video] sucess output HDMI.
[    1.326682] <<-GTP-ERROR->> GTP i2c test failed time 2.
[    1.338171] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    1.338191] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.338206] usb 1-1: Product: USB2.0 Hub
[    1.338907] hub 1-1:1.0: USB hub found
[    1.339278] hub 1-1:1.0: 4 ports detected
[    1.350754] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -11! Process reset.
[    1.350769] <<-GTP-INFO->> Guitar reset
[    1.464441] <<-GTP-ERROR->> GTP i2c test failed time 3.
[    1.488124] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -11! Process reset.
[    1.488138] <<-GTP-INFO->> Guitar reset

回复 显示全部楼层 道具 举报

发表于 2019-4-30 11:10:47
charles_wang 发表于 2019-4-30 08:41
跟厂家要了参数表,还是不行。我看串口打印信息应该是iic出错了,请协助
[    0.945478]  GTP driver inst ...

i2c通讯失败
建议你首先查查线序是否对应
然后量量电压,时序
还有可以贴上软件修改的内容吗

回复 显示全部楼层 道具 举报

发表于 2019-4-30 14:14:23
电压我量过了,3.3v。时序还没有

3288.dts 修改

//#include "lcd-rpdzkj_lvds.dtsi"
//#include "lcd-rpdzkj_lvds_1024_600_7.dtsi"
//#include "lcd-rpdzkj_lvds_1024_768_8.dtsi"
//#include "lcd-rpdzkj_lvds_bofan.dtsi"
#include "lcd-rpdzkj_lvds_1280x800_10.1inch.dtsi"
//#include "lcd-rpdzkj_mipi_7_bofan.dtsi"
//#include "lcd-rpdzkj_dual_lvds_1280_1024.dtsi"

lcd-rpdzkj_lvds_1280x800_10.1inch.dtsi修改如下
&i2c4 {
        status = "okay";

        goodix_ts@5d {
                compatible = "goodix,gt9xx";
                reg = <0x5d>;

                goodix,rst-gpio = <&gpio7 GPIO_A5 GPIO_ACTIVE_HIGH>;
                goodix,irq-gpio = <&gpio7 GPIO_A6 IRQ_TYPE_EDGE_FALLING>;
                goodix,cfg-group0 = [
                                42 D0 02 00 05 05 75 01 01 0F 24
                                0F 64 3C 03 05 00 00 00 02 00 00
                                00 16 19 1C 14 8C 0E 0E 24 00 31
                                0D 00 00 00 83 33 1D 00 41 00 00
                                00 00 00 08 0A 00 2B 1C 3C 94 D5
                                03 08 00 00 04 93 1E 00 82 23 00
                                74 29 00 69 2F 00 5F 37 00 5F 20
                                40 60 00 F0 40 30 55 50 27 00 00
                                00 00 00 00 00 00 00 00 00 00 00
                                00 00 00 00 00 00 00 14 19 00 00
                                50 50 02 04 06 08 0A 0C 0E 10 12
                                14 16 18 1A 1C 00 00 00 00 00 00
                                00 00 00 00 00 00 00 00 00 00 1D
                                1E 1F 20 21 22 24 26 28 29 2A 1C
                                18 16 14 13 12 10 0F 0C 0A 08 06
                                04 02 00 00 00 00 00 00 00 00 00
                                00 00 00 00 00 00 00 00 9C 01];
                        goodix,cfg-group2 = [
                                48 D0 02 00 05 05 75 01 01 0F 24
                                0F 64 3C 03 05 00 00 00 02 00 00
                                00 16 19 1C 14 8C 0E 0E 24 00 31
                                0D 00 00 00 83 33 1D 00 41 00 00
                                3C 0A 14 08 0A 00 2B 1C 3C 94 D5
                                03 08 00 00 04 93 1E 00 82 23 00
                                74 29 00 69 2F 00 5F 37 00 5F 20
                                40 60 00 F0 40 30 55 50 27 00 00
                                00 00 00 00 00 00 00 00 00 00 00
                                00 00 00 00 00 00 00 14 19 00 00
                                50 50 02 04 06 08 0A 0C 0E 10 12
                                14 16 18 1A 1C 00 00 00 00 00 00
                                00 00 00 00 00 00 00 00 00 00 1D
                                1E 1F 20 21 22 24 26 28 29 2A 1C
                                18 16 14 13 12 10 0F 0C 0A 08 06
                                04 02 00 00 00 00 00 00 00 00 00
                                00 00 00 00 00 00 00 00 3C 01];
        };
};

还有gt9xx.h文件中修改
#define GTP_DEBUG_ON          1

回复 显示全部楼层 道具 举报

您需要登录后才可以回帖 登录 | 立即注册

Archiver|手机版|小黑屋|深圳荣品电子  

GMT+8, 2019-10-20 02:09 , Processed in 0.060217 second(s), 24 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表