File upstream-rpi-ft5406-overlay.patch of Package raspberrypi-firmware-dt.9562

From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Date: Mon, 14 Jan 2019 18:45:23 +0100
Subject: dts: overlays: add upstream rpi-ft5406 support
Patch-mainline: No, this is specific to openSUSE
References: FATE#326921

The upstream version of the driver uses a different compatible string
and dt parameters. This joins both implementations in a single overlay
to make user's life easier.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
---
 arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts | 29 +++++++++++++++++++----
 1 file changed, 24 insertions(+), 5 deletions(-)

diff --git a/arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts b/arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts
index 1915ce188bf3..8ff42e06e81b 100644
--- a/arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts
+++ b/arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts
@@ -20,11 +20,30 @@
 		};
 	};
 
+
+	fragment@1 {
+		target-path = "/soc/firmware";
+		__overlay__ {
+			compatible = "raspberrypi,bcm2835-firmware", "simple-bus";
+
+			ts: touchscreen {
+				compatible = "raspberrypi,firmware-ts";
+				touchscreen-size-x = <800>;
+				touchscreen-size-y = <480>;
+			};
+		};
+	};
+
 	__overrides__ {
-		touchscreen-size-x = <&rpi_ft5406>,"touchscreen-size-x:0";
-		touchscreen-size-y = <&rpi_ft5406>,"touchscreen-size-y:0";
-		touchscreen-inverted-x = <&rpi_ft5406>,"touchscreen-inverted-x:0";
-		touchscreen-inverted-y = <&rpi_ft5406>,"touchscreen-inverted-y:0";
-		touchscreen-swapped-x-y = <&rpi_ft5406>,"touchscreen-swapped-x-y:0";
+		touchscreen-size-x = <&rpi_ft5406>,"touchscreen-size-x:0",
+				     <&ts>,"touchscreen-size-x:0";
+		touchscreen-size-y = <&rpi_ft5406>,"touchscreen-size-y:0",
+				     <&ts>,"touchscreen-size-y:0";
+		touchscreen-inverted-x = <&rpi_ft5406>,"touchscreen-inverted-x:0",
+					 <&ts>,"touchscreen-inverted-x?";
+		touchscreen-inverted-y = <&rpi_ft5406>,"touchscreen-inverted-y:0",
+					 <&ts>,"touchscreen-inverted-y?";
+		touchscreen-swapped-x-y = <&rpi_ft5406>,"touchscreen-swapped-x-y:0",
+					  <&ts>,"touchscreen-swapped-x-y?";
         };
 };

openSUSE Build Service is sponsored by