aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-4.14/950-0144-add-backlight-control-to-rpi-display-overlay.patch
blob: 6d7de6f51d88ca623dfab42eb99dedaff378ceae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From 68ad84eea4f5a100756faf1c393b16fbd1468b55 Mon Sep 17 00:00:00 2001
From: Aaron Shaw <shawaj@gmail.com>
Date: Thu, 28 Dec 2017 17:31:52 +0000
Subject: [PATCH 144/454] add backlight control to rpi-display overlay

---
 arch/arm/boot/dts/overlays/README                  |  1 +
 arch/arm/boot/dts/overlays/rpi-display-overlay.dts | 14 ++++++++------
 2 files changed, 9 insertions(+), 6 deletions(-)

--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -1329,6 +1329,7 @@ Params: speed                   Display
         debug                   Debug output level {0-7}
         xohms                   Touchpanel sensitivity (X-plate resistance)
         swapxy                  Swap x and y axis
+        backlight               Change backlight GPIO pin {e.g. 12, 18}
 
 
 Name:   rpi-ft5406
--- a/arch/arm/boot/dts/overlays/rpi-display-overlay.dts
+++ b/arch/arm/boot/dts/overlays/rpi-display-overlay.dts
@@ -79,11 +79,13 @@
 		};
 	};
 	__overrides__ {
-		speed =   <&rpidisplay>,"spi-max-frequency:0";
-		rotate =  <&rpidisplay>,"rotate:0";
-		fps =     <&rpidisplay>,"fps:0";
-		debug =   <&rpidisplay>,"debug:0";
-		xohms =   <&rpidisplay_ts>,"ti,x-plate-ohms;0";
-		swapxy =  <&rpidisplay_ts>,"ti,swap-xy?";
+		speed =     <&rpidisplay>,"spi-max-frequency:0";
+		rotate =    <&rpidisplay>,"rotate:0";
+		fps =       <&rpidisplay>,"fps:0";
+		debug =     <&rpidisplay>,"debug:0";
+		xohms =     <&rpidisplay_ts>,"ti,x-plate-ohms;0";
+		swapxy =    <&rpidisplay_ts>,"ti,swap-xy?";
+		backlight = <&rpidisplay>,"led-gpios:4",
+		            <&rpi_display_pins>,"brcm,pins:0";
 	};
 };