aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Braam <[email protected]>2023-03-28 09:33:09 +0200
committerHeiko Stuebner <[email protected]>2023-03-30 13:24:02 +0200
commit17a23ce930e35d5a84889441efd9208d0445bf18 (patch)
treebab06d34191eac6cd02ef5f05fbc0b9fd075d60c
parent3e987e1f22b9b9fdb652a5f3f4aff24265c9af05 (diff)
arm64: dts: rockchip: Add touchscreen support to rk3399-pinephone-pro
The phone has a Goodix GT1158 touchscreen, add a DT node for it. Signed-off-by: Martijn Braam <[email protected]> Co-developed-by: Kamil Trzciński <[email protected]> Signed-off-by: Kamil Trzciński <[email protected]> Co-developed-by: Ondrej Jirman <[email protected]> Signed-off-by: Ondrej Jirman <[email protected]> Signed-off-by: Javier Martinez Canillas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
index 539b36e8bff5..475ba78acc09 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
@@ -367,6 +367,25 @@
};
};
+&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";