openwrt/target/linux/bcm27xx/patches-6.6/950-1238-piscreen-overlay-Add-invert-x-y-and-swapxy.patch

38 lines
1.4 KiB
Diff
Raw Permalink Normal View History

From 31be188fb945560c193020b19773625421847112 Mon Sep 17 00:00:00 2001
From: Satadru Pramanik <satadru@gmail.com>
Date: Wed, 4 Sep 2024 08:40:42 -0400
Subject: [PATCH 1238/1350] piscreen-overlay: Add invert[x,y] and swapxy
Signed-off-by: Satadru Pramanik <satadru@gmail.com>
---
arch/arm/boot/dts/overlays/README | 6 ++++++
arch/arm/boot/dts/overlays/piscreen-overlay.dts | 3 +++
2 files changed, 9 insertions(+)
--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -3694,6 +3694,12 @@ Params: speed Display
drm Select the DRM/KMS driver instead of the FBTFT
one
+ invx Touchscreen inverted x axis
+
+ invy Touchscreen inverted y axis
+
+ swapxy Touchscreen swapped x y axis
+
Name: piscreen2r
Info: PiScreen 2 with resistive TP display by OzzMaker.com
--- a/arch/arm/boot/dts/overlays/piscreen-overlay.dts
+++ b/arch/arm/boot/dts/overlays/piscreen-overlay.dts
@@ -103,5 +103,8 @@
xohms = <&piscreen_ts>,"ti,x-plate-ohms;0";
drm = <&piscreen>,"compatible=waveshare,rpi-lcd-35",
<&piscreen>,"reset-gpios:8=",<GPIO_ACTIVE_HIGH>;
+ invx = <&piscreen_ts>,"touchscreen-inverted-x?";
+ invy = <&piscreen_ts>,"touchscreen-inverted-y?";
+ swapxy = <&piscreen_ts>,"touchscreen-swapped-x-y!";
};
};