arm64: dts: rockchip: Add touchscreen support to rk3399-pinephone-pro
authorMartijn Braam <martijn@brixit.nl>
Tue, 28 Mar 2023 07:33:09 +0000 (09:33 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 30 Mar 2023 11:24:02 +0000 (13:24 +0200)
The phone has a Goodix GT1158 touchscreen, add a DT node for it.

Signed-off-by: Martijn Braam <martijn@brixit.nl>
Co-developed-by: Kamil Trzciński <ayufan@ayufan.eu>
Signed-off-by: Kamil Trzciński <ayufan@ayufan.eu>
Co-developed-by: Ondrej Jirman <megi@xff.cz>
Signed-off-by: Ondrej Jirman <megi@xff.cz>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20230328073309.1743112-3-javierm@redhat.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts

index 539b36e8bff57d18843d83939444d63016ea0e1b..475ba78acc0907bde77203b2cbe5f9c930d0de17 100644 (file)
        };
 };
 
+&i2c3 {
+       i2c-scl-rising-time-ns = <450>;
+       i2c-scl-falling-time-ns = <15>;
+       status = "okay";
+
+       touchscreen@14 {
+               compatible = "goodix,gt1158";
+               reg = <0x14>;
+               interrupt-parent = <&gpio3>;
+               interrupts = <RK_PB5 IRQ_TYPE_EDGE_RISING>;
+               irq-gpios = <&gpio3 RK_PB5 GPIO_ACTIVE_HIGH>;
+               reset-gpios = <&gpio3 RK_PB4 GPIO_ACTIVE_HIGH>;
+               AVDD28-supply = <&vcc3v0_touch>;
+               VDDIO-supply = <&vcc3v0_touch>;
+               touchscreen-size-x = <720>;
+               touchscreen-size-y = <1440>;
+       };
+};
+
 &cluster0_opp {
        opp04 {
                status = "disabled";