summaryrefslogtreecommitdiffstats
path: root/0001-arm64-dts-sun50i-a64-pinephone-Add-touchscreen-suppo.patch
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@fedoraproject.org>2020-08-04 17:00:01 -0500
committerJustin M. Forbes <jforbes@fedoraproject.org>2020-08-04 17:00:01 -0500
commit9ab9ea2db0b13375d3d7114d5c82eb298a118740 (patch)
treeeb4615cacf3e4ee8bd71c2522241011baa6c56fe /0001-arm64-dts-sun50i-a64-pinephone-Add-touchscreen-suppo.patch
parentbf5b588422a50d970ea8660d368cc6cdd2c377c9 (diff)
downloadkernel-9ab9ea2db0b13375d3d7114d5c82eb298a118740.tar.gz
kernel-9ab9ea2db0b13375d3d7114d5c82eb298a118740.tar.xz
kernel-9ab9ea2db0b13375d3d7114d5c82eb298a118740.zip
Linux v5.8 rebase
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
Diffstat (limited to '0001-arm64-dts-sun50i-a64-pinephone-Add-touchscreen-suppo.patch')
-rw-r--r--0001-arm64-dts-sun50i-a64-pinephone-Add-touchscreen-suppo.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/0001-arm64-dts-sun50i-a64-pinephone-Add-touchscreen-suppo.patch b/0001-arm64-dts-sun50i-a64-pinephone-Add-touchscreen-suppo.patch
new file mode 100644
index 000000000..d2511ae64
--- /dev/null
+++ b/0001-arm64-dts-sun50i-a64-pinephone-Add-touchscreen-suppo.patch
@@ -0,0 +1,46 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Ondrej Jirman <megous@megous.com>
+Date: Fri, 26 Jun 2020 02:56:01 +0200
+Subject: [PATCH] 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 <megous@megous.com>
+---
+ .../dts/allwinner/sun50i-a64-pinephone.dtsi | 19 +++++++++++++++++++
+ 1 file changed, 19 insertions(+)
+
+diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
+index 85a7aa5efd32..2d5694446d17 100644
+--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
+@@ -123,6 +123,25 @@ &ehci1 {
+ status = "okay";
+ };
+
++&i2c0 {
++ pinctrl-names = "default";
++ pinctrl-0 = <&i2c0_pins>;
++ status = "okay";
++
++ touchscreen@5d {
++ compatible = "goodix,gt917s", "goodix,gt911";
++ 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";
+
+--
+2.26.2
+