Navigation

    全志在线开发者论坛

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

    t113s3_mq_r电容触摸

    其它全志芯片讨论区
    2
    3
    110
    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.
    • J
      Justyu666 LV 5 last edited by

      亲们,请教一下,电容触摸( GT911 )的配置流程是什么?哪位有详细教程,多谢……

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

        参考哪吒的SDK:

        board.dts配置:

        &twi2 {
                clock-frequency = <400000>;
                pinctrl-0 = <&twi2_pins_a>;
                pinctrl-1 = <&twi2_pins_b>;
                pinctrl-names = "default", "sleep";
                dmas = <&dma 45>, <&dma 45>;
                dma-names = "tx", "rx";
                status = "okay";
        
        
                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 = <0x320>;
                        ctp_screen_max_y = <0x500>;
                        ctp_revert_x_flag = <0x0>;
                        ctp_revert_y_flag = <0x1>;
                        ctp_exchange_x_y_flag = <0x0>;
                        ctp_int_port = <&pio PG 14 GPIO_ACTIVE_HIGH>;
                        ctp_wakeup = <&pio PG 15 GPIO_ACTIVE_HIGH>;
                };
        };
        

        驱动开启以下选项:

        CONFIG_TOUCHSCREEN_GT9XXNEW_TS
        CONFIG_TOUCHSCREEN_GT9XXNEWDUP_TS
        
        1 Reply Last reply Reply Quote Share 1
        • J
          Justyu666 LV 5 last edited by

          好的,谢谢,我试一下……

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

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

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