Skip to content

Commit 0b8f3d9

Browse files
6by9popcornmix
authored andcommitted
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 <[email protected]>
1 parent 9d090f3 commit 0b8f3d9

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3638,6 +3638,8 @@ Params: clock-frequency Display clock frequency (Hz)
36383638
rgb888 Change to RGB888 output on GPIOs 0-27
36393639
bus-format Override the bus format for a MEDIA_BUS_FMT_*
36403640
value. NB also overridden by rgbXXX overrides.
3641+
backlight-gpio Defines a GPIO to be used for backlight control
3642+
(default of none).
36413643

36423644

36433645
Name: vc4-kms-dsi-7inch

arch/arm/boot/dts/overlays/vc4-kms-dpi-generic-overlay.dts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,23 @@
6363
};
6464
};
6565

66+
fragment@2 {
67+
target = <&panel>;
68+
__dormant__ {
69+
backlight = <&backlight>;
70+
};
71+
};
72+
73+
fragment@3 {
74+
target-path = "/";
75+
__dormant__ {
76+
backlight: backlight {
77+
compatible = "gpio-backlight";
78+
gpios = <&gpio 255 GPIO_ACTIVE_HIGH>;
79+
};
80+
};
81+
};
82+
6683
__overrides__ {
6784
clock-frequency = <&timing>, "clock-frequency:0";
6885
hactive = <&timing>, "hactive:0";
@@ -88,5 +105,7 @@
88105
rgb888 = <&panel>, "bus-format:0=0x100a",
89106
<&dpi_node>, "pinctrl-0:0=",<&dpi_gpio0>;
90107
bus-format = <&panel>, "bus-format:0";
108+
backlight-gpio = <0>, "+2+3",
109+
<&backlight>, "gpios:4";
91110
};
92111
};

0 commit comments

Comments
 (0)