mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +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>
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";
|
|
};
|
|
};
|