openwrt/target/linux/bcm27xx/patches-6.6/950-1401-overlays-Enable-Raspberry-Touch-2-rotation-with-over.patch
Álvaro Fernández Rojas 692205305d bcm27xx: pull 6.6 patches from RPi repo
Adds latest 6.6 patches from the Raspberry Pi repository.

These patches were generated from:
https://github.com/raspberrypi/linux/commits/rpi-6.6.y/
With the following command:
git format-patch -N v6.6.67..HEAD
(HEAD -> 811ff707533bcd67cdcd368bbd46223082009b12)

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-12-28 09:06:30 +01:00

32 lines
1.4 KiB
Diff

From fa6ad4bcad4e8db18493a4af640b4b5c95434e70 Mon Sep 17 00:00:00 2001
From: Just a nerd <157698061+foonerd@users.noreply.github.com>
Date: Wed, 20 Nov 2024 14:08:48 +0000
Subject: [PATCH] overlays: Enable Raspberry Touch 2 rotation with overlay
See: https://github.com/raspberrypi/linux/pull/6480
Signed-off-by: foonerd <foonerd@github.com>
---
arch/arm/boot/dts/overlays/README | 1 +
arch/arm/boot/dts/overlays/vc4-kms-dsi-ili9881-7inch-overlay.dts | 1 +
2 files changed, 2 insertions(+)
--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -5249,6 +5249,7 @@ Params: sizex Touchscr
invy Touchscreen inverted y axis
swapxy Touchscreen swapped x y axis
disable_touch Disables the touch screen overlay driver
+ rotation Display rotation {0,90,180,270} (default 0)
dsi0 Use DSI0 and i2c_csi_dsi0 (rather than
the default DSI1 and i2c_csi_dsi).
--- a/arch/arm/boot/dts/overlays/vc4-kms-dsi-ili9881-7inch-overlay.dts
+++ b/arch/arm/boot/dts/overlays/vc4-kms-dsi-ili9881-7inch-overlay.dts
@@ -118,5 +118,6 @@
invy = <0>, "+11";
swapxy = <&gt911>,"touchscreen-swapped-x-y?";
disable_touch = <&gt911>, "status=disabled";
+ rotation = <&dsi_panel>, "rotation:0";
};
};