aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-4.14/950-0145-add-backlight-control-to-media-center-overlay.patch
blob: 46ab9f7a9d8ae8e15e6d01a75c167209cb17693b (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
43
44
45
From 857e7afb6b7b60adb1f9ed9e05c3ced0c5ef7370 Mon Sep 17 00:00:00 2001
From: Aaron Shaw <shawaj@gmail.com>
Date: Thu, 28 Dec 2017 17:34:54 +0000
Subject: [PATCH 145/454] add backlight control to media-center overlay

---
 arch/arm/boot/dts/overlays/README                |  1 +
 .../boot/dts/overlays/media-center-overlay.dts   | 16 +++++++++-------
 2 files changed, 10 insertions(+), 7 deletions(-)

--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -1002,6 +1002,7 @@ Params: speed                   Display
         fps                     Delay between frame updates
         xohms                   Touchpanel sensitivity (X-plate resistance)
         swapxy                  Swap x and y axis
+        backlight               Change backlight GPIO pin {e.g. 12, 18}
         gpio_out_pin            GPIO for output (default "17")
         gpio_in_pin             GPIO for input (default "18")
         gpio_in_pull            Pull up/down/off on the input pin
--- a/arch/arm/boot/dts/overlays/media-center-overlay.dts
+++ b/arch/arm/boot/dts/overlays/media-center-overlay.dts
@@ -113,13 +113,15 @@
 	};
 
 	__overrides__ {
-		speed =   <&rpidisplay>,"spi-max-frequency:0";
-		rotate =  <&rpidisplay>,"rotate:0";
-		fps =     <&rpidisplay>,"fps:0";
-		debug =   <&rpidisplay>,"debug:0",
-		          <&lirc_rpi>,"rpi,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", 
+		            <&lirc_rpi>,"rpi,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";
 
 		gpio_out_pin =  <&lirc_pins>,"brcm,pins:0";
 		gpio_in_pin =   <&lirc_pins>,"brcm,pins:4";