Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    兄弟们,你们有碰到过屏幕触摸坐标不准的问题吗

    V853系列-AI视觉
    3
    3
    114
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fanfan LV 5 last edited by

      &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 = <&reg_aldo2>;*/
                      /* ctp_power_ldo = <&reg_dldo1>; */
                      /* ctp_power_ldo_vol = <3300>; */
              };   
      };
      

      屏幕可以触摸,但是不准

      W 1 Reply Last reply Reply Quote Share 0
      • WhycanService
        WhycanService LV 7 last edited by xiaowenge

        gt911和gsl的一样需要下载固件,固件不对就会导致偏移。例如gsl的这个补丁
        d2cc84e5-3796-4a67-924d-6c9161e3e109-图片.png

        固件具体可以询问屏厂看看他们能不能提供

        1 Reply Last reply Reply Quote Share 0
        • W
          whycan晕哥 LV 9 @fanfan last edited by

          @fanfan

          问厂家要固件,否则要自己做一个:下单买了一个 汇顶 GT911/GT9xx 电容触摸屏产测工具

          1 Reply Last reply Reply Quote Share 0
          • 1 / 1
          • First post
            Last post

          Copyright © 2022 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

          行为准则 | 用户协议 | 隐私权政策