aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm27xx/patches-5.15/950-0690-overlays-Add-rotate-property-to-vc4-kms-dpi-panel.patch
blob: c9c9e46d366cfbd467206b046a78f94478e52dd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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";
 	};
 };