From f60409ef7c6a0c3e24ce444508ffde4505a23b5f Mon Sep 17 00:00:00 2001 From: foonerd Date: Wed, 20 Nov 2024 08:42:52 +0000 Subject: [PATCH 1/3] Enable Raspberry Touch 2 rotation with overlay --- 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..30a8fdac797223 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 + rotatation 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"; }; }; From db4824b907123a1142aed657abe6e6fde03078cc Mon Sep 17 00:00:00 2001 From: foonerd Date: Wed, 20 Nov 2024 13:44:13 +0000 Subject: [PATCH 2/3] dtoverlays: Enable Raspberry Touch 2 rotation --- arch/arm/boot/dts/overlays/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README index 30a8fdac797223..63700accf268a2 100644 --- a/arch/arm/boot/dts/overlays/README +++ b/arch/arm/boot/dts/overlays/README @@ -5249,7 +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 - rotatation Display rotation {0,90,180,270} (default 0) + 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). From 7ef80ae8c5ab3dd1fe3fa4a341a4a2c5d1f3d18a Mon Sep 17 00:00:00 2001 From: foonerd Date: Wed, 20 Nov 2024 13:47:59 +0000 Subject: [PATCH 3/3] dtoverlays: Enable Raspberry Touch 2 rotation --- arch/arm/boot/dts/overlays/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README index 63700accf268a2..0815f8fd133213 100644 --- a/arch/arm/boot/dts/overlays/README +++ b/arch/arm/boot/dts/overlays/README @@ -5249,7 +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) + 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).