Files
openwrt-master/target/linux/bcm27xx/patches-6.6/950-1238-piscreen-overlay-Add-invert-x-y-and-swapxy.patch
domenico c06fb25d1f
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Initial commit
2025-06-24 14:35:53 +02:00

38 lines
1.4 KiB
Diff

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!";
};
};