兄弟们,你们有碰到过屏幕触摸坐标不准的问题吗
-
&lcd0 { /* part 1 */ lcd_used = <1>; lcd_driver_name = "default_lcd"; lcd_backlight = <100>; /* part 2 */ lcd_if = <0>; lcd_hv_if = <0>; /* part 3 */ lcd_x = <1024>; lcd_y = <600>; lcd_width = <154>; lcd_height = <85>; lcd_dclk_freq = <51>; lcd_hbp = <140>; lcd_ht = <1344>; lcd_hspw = <20>; lcd_vbp = <20>; lcd_vt = <635>; lcd_vspw = <3>; lcd_pwm_used = <1>; lcd_pwm_ch = <7>; lcd_pwm_freq = <500>; lcd_pwm_pol = <1>; /* part 5 */ lcd_frm = <1>; lcd_io_phase = <0x0000>; lcd_gamma_en = <0>; lcd_cmap_en = <0>; lcd_hv_clk_phase = <0>; lcd_hv_sync_polarity= <0>; /* part 6 */ lcd_power = "vcc-lcd"; lcd_pin_power = "vcc-pd"; pinctrl-0 = <&rgb18_pins_a>; pinctrl-1 = <&rgb18_pins_b>; };
触摸节点
&twi2 { status = "okay"; /* goodix { * status = "okay"; * compatible = "goodix,gt911"; * reg = <0x5d>; * int-gpios = <&pio PH 7 0 0 1 0>; * reset-gpios = <&pio PH 8 0 0 1 0>; * touchscreen-size-x = <720>; * touchscreen-size-y = <1280>; * }; */ ctp@14 { compatible = "allwinner,goodix"; device_type = "ctp"; reg = <0x14>; status = "okay"; ctp_name = "gt9xxnew_ts"; ctp_twi_id = <0x2>; ctp_twi_addr = <0x14>; ctp_screen_max_x = <0x400>; ctp_screen_max_y = <0x258>; ctp_revert_x_flag = <0x0>; ctp_revert_y_flag = <0x0>; ctp_exchange_x_y_flag = <0x0>; ctp_int_port = <&pio PH 7 6 1 3 0xffffffff>; ctp_wakeup = <&pio PH 8 1 1 3 0xffffffff>; /* ctp-supply = <®_aldo2>;*/ /* ctp_power_ldo = <®_dldo1>; */ /* ctp_power_ldo_vol = <3300>; */ }; };
屏幕可以触摸,但是不准
-
gt911和gsl的一样需要下载固件,固件不对就会导致偏移。例如gsl的这个补丁
固件具体可以询问屏厂看看他们能不能提供
-
问厂家要固件,否则要自己做一个:下单买了一个 汇顶 GT911/GT9xx 电容触摸屏产测工具
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号