overlays: Add rotate property to vc4-kms-dpi-panel
authorChris Morgan <macromorgan@hotmail.com>
Wed, 2 Feb 2022 16:42:00 +0000 (10:42 -0600)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Wed, 2 Feb 2022 16:55:53 +0000 (16:55 +0000)
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
arch/arm/boot/dts/overlays/vc4-kms-dpi.dtsi

index 6a8d5c5f82c9b92b1b98d32adf87934343c6a22f..69cb31788b1ad96504dd5544a6cc6328a204f981 100644 (file)
@@ -3656,6 +3656,7 @@ Params: clock-frequency         Display clock frequency (Hz)
         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
@@ -3683,6 +3684,7 @@ Params: at056tn53v1             Enable an Innolux 5.6in VGA TFT
         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
index 02d7f7fb109c89fa7fdce4a2cab8e43ad26c5403..f78fa48b19f9029abed4369de9eea37636839984 100644 (file)
@@ -10,6 +10,7 @@
                target-path = "/";
                __overlay__ {
                        panel: panel {
+                               rotation = <0>;
                                port {
                                        panel_in: endpoint {
                                                remote-endpoint = <&dpi_out>;
                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";
        };
 };