53f0a5f2407bf8c7f36041628b31520eeaa19322
[openwrt/staging/hauke.git] /
1 From 8be4bcd743bb37336f83979fe0834ad601446a13 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Mon, 21 Mar 2022 18:27:45 +0000
4 Subject: [PATCH] dtoverlays: Connect the backlight to the pitft35
5 display
6
7 DRM will automatically handle the backlight with the display if
8 told about the linking, so link the two together.
9
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
11 ---
12 arch/arm/boot/dts/overlays/pitft35-resistive-overlay.dts | 5 +++--
13 1 file changed, 3 insertions(+), 2 deletions(-)
14
15 --- a/arch/arm/boot/dts/overlays/pitft35-resistive-overlay.dts
16 +++ b/arch/arm/boot/dts/overlays/pitft35-resistive-overlay.dts
17 @@ -102,7 +102,7 @@
18 fragment@5 {
19 target-path = "/soc";
20 __overlay__ {
21 - backlight {
22 + backlight: backlight {
23 compatible = "gpio-backlight";
24 gpios = <&stmpe_gpio 2 0>;
25 default-on;
26 @@ -115,6 +115,7 @@
27 rotate = <&pitft>,"rotate:0";
28 fps = <&pitft>,"fps:0";
29 debug = <&pitft>,"debug:0";
30 - drm = <&pitft>,"compatible=adafruit,yx350hv15";
31 + drm = <&pitft>,"compatible=adafruit,yx350hv15",
32 + <&pitft>,"backlight:0=",<&backlight>;
33 };
34 };