diff options
Diffstat (limited to 'target/linux/bcm27xx/patches-5.15/950-0690-overlays-Add-rotate-property-to-vc4-kms-dpi-panel.patch')
-rw-r--r-- | target/linux/bcm27xx/patches-5.15/950-0690-overlays-Add-rotate-property-to-vc4-kms-dpi-panel.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-5.15/950-0690-overlays-Add-rotate-property-to-vc4-kms-dpi-panel.patch b/target/linux/bcm27xx/patches-5.15/950-0690-overlays-Add-rotate-property-to-vc4-kms-dpi-panel.patch new file mode 100644 index 0000000000..c9c9e46d36 --- /dev/null +++ b/target/linux/bcm27xx/patches-5.15/950-0690-overlays-Add-rotate-property-to-vc4-kms-dpi-panel.patch @@ -0,0 +1,49 @@ +From 4aad06862bbd0a9871b747fbc7decf94a4815a57 Mon Sep 17 00:00:00 2001 +From: Chris Morgan <macromorgan@hotmail.com> +Date: Wed, 2 Feb 2022 10:42:00 -0600 +Subject: [PATCH] overlays: Add rotate property to vc4-kms-dpi-panel + +Allow a user to specify the panel rotation in devicetree as 0, 90, +180, or 270 by setting a parameter. + +Signed-off-by: Chris Morgan <macromorgan@hotmail.com> +--- + arch/arm/boot/dts/overlays/README | 2 ++ + arch/arm/boot/dts/overlays/vc4-kms-dpi.dtsi | 2 ++ + 2 files changed, 4 insertions(+) + +--- a/arch/arm/boot/dts/overlays/README ++++ b/arch/arm/boot/dts/overlays/README +@@ -3673,6 +3673,7 @@ Params: clock-frequency Display + backlight-def-brightness + Set the default brightness. Normal range 1-16. + (default 16). ++ rotate Display rotation {0,90,180,270} (default 0) + + + Name: vc4-kms-dpi-panel +@@ -3700,6 +3701,7 @@ Params: at056tn53v1 Enable a + backlight-def-brightness + Set the default brightness. Normal range 1-16. + (default 16). ++ rotate Display rotation {0,90,180,270} (default 0) + + + Name: vc4-kms-dsi-7inch +--- a/arch/arm/boot/dts/overlays/vc4-kms-dpi.dtsi ++++ b/arch/arm/boot/dts/overlays/vc4-kms-dpi.dtsi +@@ -10,6 +10,7 @@ + target-path = "/"; + __overlay__ { + panel: panel { ++ rotation = <0>; + port { + panel_in: endpoint { + remote-endpoint = <&dpi_out>; +@@ -105,5 +106,6 @@ + backlight-pwm-gpio = <&pwm_pins>, "brcm,pins:0"; + backlight-pwm-func = <&pwm_pins>, "brcm,function:0"; + backlight-def-brightness = <&backlight_pwm>, "default-brightness-level:0"; ++ rotate = <&panel>, "rotation:0"; + }; + }; |