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)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:41 +0000 (16:04 +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 cfc8bfb..24e684d 100644 (file)
@@ -3673,6 +3673,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
@@ -3700,6 +3701,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 02d7f7f..f78fa48 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";
        };
 };