mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 09:39:00 +00:00
61 lines
1.9 KiB
Diff
61 lines
1.9 KiB
Diff
|
From 97a59d460244efdb87b464b9f07c1e90e7e7129a Mon Sep 17 00:00:00 2001
|
||
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||
|
Date: Fri, 7 Jan 2022 11:12:08 +0000
|
||
|
Subject: [PATCH] dtoverlays: Add backlight-gpio parameter to
|
||
|
vc4-kms-dpi-generic
|
||
|
|
||
|
To allow for the cases where a simple panel does have a GPIO
|
||
|
controlled backlight. Defaults to having no backlight defined.
|
||
|
|
||
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||
|
---
|
||
|
arch/arm/boot/dts/overlays/README | 2 ++
|
||
|
.../overlays/vc4-kms-dpi-generic-overlay.dts | 19 +++++++++++++++++++
|
||
|
2 files changed, 21 insertions(+)
|
||
|
|
||
|
--- a/arch/arm/boot/dts/overlays/README
|
||
|
+++ b/arch/arm/boot/dts/overlays/README
|
||
|
@@ -3638,6 +3638,8 @@ Params: clock-frequency Display
|
||
|
rgb888 Change to RGB888 output on GPIOs 0-27
|
||
|
bus-format Override the bus format for a MEDIA_BUS_FMT_*
|
||
|
value. NB also overridden by rgbXXX overrides.
|
||
|
+ backlight-gpio Defines a GPIO to be used for backlight control
|
||
|
+ (default of none).
|
||
|
|
||
|
|
||
|
Name: vc4-kms-dsi-7inch
|
||
|
--- a/arch/arm/boot/dts/overlays/vc4-kms-dpi-generic-overlay.dts
|
||
|
+++ b/arch/arm/boot/dts/overlays/vc4-kms-dpi-generic-overlay.dts
|
||
|
@@ -63,6 +63,23 @@
|
||
|
};
|
||
|
};
|
||
|
|
||
|
+ fragment@2 {
|
||
|
+ target = <&panel>;
|
||
|
+ __dormant__ {
|
||
|
+ backlight = <&backlight>;
|
||
|
+ };
|
||
|
+ };
|
||
|
+
|
||
|
+ fragment@3 {
|
||
|
+ target-path = "/";
|
||
|
+ __dormant__ {
|
||
|
+ backlight: backlight {
|
||
|
+ compatible = "gpio-backlight";
|
||
|
+ gpios = <&gpio 255 GPIO_ACTIVE_HIGH>;
|
||
|
+ };
|
||
|
+ };
|
||
|
+ };
|
||
|
+
|
||
|
__overrides__ {
|
||
|
clock-frequency = <&timing>, "clock-frequency:0";
|
||
|
hactive = <&timing>, "hactive:0";
|
||
|
@@ -88,5 +105,7 @@
|
||
|
rgb888 = <&panel>, "bus-format:0=0x100a",
|
||
|
<&dpi_node>, "pinctrl-0:0=",<&dpi_gpio0>;
|
||
|
bus-format = <&panel>, "bus-format:0";
|
||
|
+ backlight-gpio = <0>, "+2+3",
|
||
|
+ <&backlight>, "gpios:4";
|
||
|
};
|
||
|
};
|