0
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-25 06:26:15 +00:00
openwrt/target/linux/bcm27xx/patches-6.6/950-1238-piscreen-overlay-Add-invert-x-y-and-swapxy.patch
Álvaro Fernández Rojas 538a1d740c bcm27xx: update to latest RPi patches
The patches were generated from the RPi repo with the following command:
git format-patch v6.6.58..rpi-6.6.y

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-10-31 13:44:23 +01: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!";
};
};