aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Jirman <[email protected]>2020-07-02 10:14:32 +0200
committerMaxime Ripard <[email protected]>2020-07-03 14:15:30 +0200
commit60f2de5ffbf0ed7c0d9789bcc196884427e8cff5 (patch)
treeab4d054a1a14cc9ef91abe43417e30dbd16b7221
parenta6a22f82c90dab8966fc07bd7e798a0680803995 (diff)
arm64: dts: sun50i-a64-pinephone: Add touchscreen support
Pinephone has a Goodix GT917S capacitive touchscreen controller on I2C0 bus. Add support for it. Signed-off-by: Ondrej Jirman <[email protected]> Acked-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] [Maxime: Removed the redundant pinctrl nodes] Signed-off-by: Maxime Ripard <[email protected]>
-rw-r--r--arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
index a89425ad3727..a3b400ff972b 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
@@ -121,6 +121,23 @@
status = "okay";
};
+&i2c0 {
+ status = "okay";
+
+ touchscreen@5d {
+ compatible = "goodix,gt917s";
+ reg = <0x5d>;
+ interrupt-parent = <&pio>;
+ interrupts = <7 4 IRQ_TYPE_LEVEL_HIGH>; /* PH4 */
+ irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
+ reset-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
+ AVDD28-supply = <&reg_ldo_io0>;
+ VDDIO-supply = <&reg_ldo_io0>;
+ touchscreen-size-x = <720>;
+ touchscreen-size-y = <1440>;
+ };
+};
+
&i2c1 {
status = "okay";