riscv: dts: starfive: Add gt9xx touchscreen support
authorChanghuang Liang <changhuang.liang@starfivetech.com>
Tue, 3 Jan 2023 06:17:16 +0000 (14:17 +0800)
committerChanghuang Liang <changhuang.liang@starfivetech.com>
Fri, 6 Jan 2023 02:04:00 +0000 (10:04 +0800)
Add gt9xx touchscreen support.

Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dtsi
arch/riscv/boot/dts/starfive/jh7110.dtsi

index 0df37ad..344ebae 100755 (executable)
                };
        };
 
+       gt9xx: gt9xx@14 {
+               compatible = "goodix,gt9xx";
+               reg = <0x14>;
+               touch-gpio = <&gpio 30 IRQ_TYPE_LEVEL_LOW>;
+               reset-gpio = <&gpio 31 GPIO_ACTIVE_HIGH>;
+               max-x = <800>;
+               max-y = <1280>;
+               tp-size = <9112>;
+       };
 };
 
 &i2c5 {
index 401a2cd..78734df 100644 (file)
@@ -11,6 +11,7 @@
 #include <dt-bindings/clock/starfive-jh7110-vout.h>
 #include <dt-bindings/clock/starfive-jh7110-isp.h>
 #include <dt-bindings/power/jh7110-power.h>
+#include <dt-bindings/interrupt-controller/irq.h>
 
 / {
        compatible = "starfive,jh7110";