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 --- 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(+) diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README index c1be40a23c7b6b..0815f8fd133213 100644 --- a/arch/arm/boot/dts/overlays/README +++ b/arch/arm/boot/dts/overlays/README @@ -5249,6 +5249,7 @@ Params: sizex Touchscreen size x (default 720) 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). diff --git 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 index d1eb31df1d6916..2c8eef6475f10f 100644 --- 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 = <>911>,"touchscreen-swapped-x-y?"; disable_touch = <>911>, "status=disabled"; + rotation = <&dsi_panel>, "rotation:0"; }; };