Navigation

    全志在线开发者论坛

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

    T113-S3适配GT9xx触摸

    其它全志芯片讨论区
    2
    2
    1049
    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.
    • N
      NathanLiu LV 5 last edited by

      f9a6167f-b316-48c8-873d-12a85b5dfe47-image.png

      &twi1 {
      	clock-frequency = <400000>;
      	pinctrl-0 = <&twi1_pins_a>;
      	pinctrl-1 = <&twi1_pins_b>;
      	pinctrl-names = "default", "sleep";
      	status = "okay";
      
      	ctp@5d {
      		compatible = "allwinner,goodix";
      		device_type = "ctp";
      		reg = <0x5d>;
      		status = "okay";
      		ctp_name = "gt9xxnew_ts";
      		ctp_twi_id = <0x1>;
      		ctp_twi_addr = <0x5d>;
      		ctp_screen_max_x = <0x1E0>;
      		ctp_screen_max_y = <0x1E0>;
      		ctp_revert_x_flag = <0x0>;
      		ctp_revert_y_flag = <0x0>;
      		ctp_exchange_x_y_flag = <0x0>;
      		ctp_int_port = <&pio PE 5 GPIO_ACTIVE_HIGH>;
      		ctp_wakeup = <&pio PE 4 GPIO_ACTIVE_HIGH>;
      	};
      }
      

      开启触摸驱动后,并且根据原理图使用了twi1,但是启动时候报错了,如果插上屏幕会导致串口中断,启动不起来,上面报错是将屏幕FPC拆下来看到的。

      L 1 Reply Last reply Reply Quote Share 1
      • L
        leokemp LV 3 @NathanLiu last edited by

        @nathanliu DTS中PE4 PE5 IO占用了?

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

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

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