mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
20ea6adbf1
Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
50 lines
1.7 KiB
Diff
50 lines
1.7 KiB
Diff
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";
|
|
};
|
|
};
|