2020-06-27 16:21:07 +00:00
|
|
|
Some devkits have inverted touchscreen X axis. Support them
|
2019-06-01 15:18:59 +00:00
|
|
|
diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
|
2020-02-08 07:36:31 +00:00
|
|
|
index 7806eee28..cb2bc2450 100644
|
2019-06-01 15:18:59 +00:00
|
|
|
--- a/arch/arm64/boot/dts/allwinner/Makefile
|
|
|
|
+++ b/arch/arm64/boot/dts/allwinner/Makefile
|
2020-02-08 07:36:31 +00:00
|
|
|
@@ -2,6 +2,7 @@
|
|
|
|
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-amarula-relic.dtb
|
|
|
|
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-bananapi-m64.dtb
|
2019-06-01 15:18:59 +00:00
|
|
|
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-dontbeevil.dtb
|
|
|
|
+dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-dontbeevil-longts.dtb
|
2020-02-08 07:36:31 +00:00
|
|
|
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-nanopi-a64.dtb
|
|
|
|
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-oceanic-5205-5inmfd.dtb
|
|
|
|
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-olinuxino.dtb
|
2019-06-01 15:18:59 +00:00
|
|
|
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-dontbeevil-longts.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-dontbeevil-longts.dts
|
|
|
|
new file mode 100644
|
2020-02-08 07:36:31 +00:00
|
|
|
index 000000000..49f715366
|
2019-06-01 15:18:59 +00:00
|
|
|
--- /dev/null
|
|
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-dontbeevil-longts.dts
|
|
|
|
@@ -0,0 +1,14 @@
|
|
|
|
+/dts-v1/;
|
|
|
|
+
|
|
|
|
+#include "sun50i-a64-dontbeevil.dts"
|
|
|
|
+
|
|
|
|
+/ {
|
|
|
|
+ model = "PinePhone Don't be evil development kit with long touch cable";
|
|
|
|
+ compatible = "pine64,sopine-baseboard", "pine64,sopine",
|
|
|
|
+ "allwinner,sun50i-a64";
|
|
|
|
+
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&touchscreen {
|
|
|
|
+ touchscreen-inverted-x;
|
|
|
|
+};
|
|
|
|
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-dontbeevil.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-dontbeevil.dts
|
2020-02-08 07:36:31 +00:00
|
|
|
index 8e9121a26..15bd36528 100644
|
2019-06-01 15:18:59 +00:00
|
|
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-dontbeevil.dts
|
|
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-dontbeevil.dts
|
2020-02-08 07:36:31 +00:00
|
|
|
@@ -262,7 +262,7 @@ &i2c0 {
|
2019-06-01 15:18:59 +00:00
|
|
|
pinctrl-0 = <&i2c0_pins>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
- ft6236@38 {
|
|
|
|
+ touchscreen: ft6236@38 {
|
|
|
|
compatible = "focaltech,ft6236", "edt,edt-6236";
|
|
|
|
reg = <0x38>;
|