05de6890615f3b9822034d1ddf06391759142d7c
[openwrt/staging/linusw.git] /
1 From 4a5782a889cfbc8523d7097c3f147572ed5129a6 Mon Sep 17 00:00:00 2001
2 From: Aditya Xavier <adityaxavier@gmail.com>
3 Date: Sat, 28 Jan 2017 20:07:49 +0530
4 Subject: [PATCH] ARM: dts: BCM5301X: Add missing Netgear R8000 LEDs and Keys
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Added two WAN status LEDs and a GPIO key for brightness which were
10 missing.
11
12 Signed-off-by: Aditya Xavier <adityaxavier@gmail.com>
13 Acked-by: Rafał Miłecki <rafal@milecki.pl>
14 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
15 ---
16 arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 22 ++++++++++++++++++++--
17 1 file changed, 20 insertions(+), 2 deletions(-)
18
19 --- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
20 +++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
21 @@ -38,18 +38,30 @@
22 leds {
23 compatible = "gpio-leds";
24
25 - power0 {
26 + power-white {
27 label = "bcm53xx:white:power";
28 gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
29 linux,default-trigger = "default-on";
30 };
31
32 - power1 {
33 + power-amber {
34 label = "bcm53xx:amber:power";
35 gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "default-off";
37 };
38
39 + wan-white {
40 + label = "bcm53xx:white:wan";
41 + gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
42 + linux,default-trigger = "default-on";
43 + };
44 +
45 + wan-amber {
46 + label = "bcm53xx:amber:wan";
47 + gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
48 + linux,default-trigger = "default-off";
49 + };
50 +
51 5ghz-1 {
52 label = "bcm53xx:white:5ghz-1";
53 gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
54 @@ -115,6 +127,12 @@
55 linux,code = <KEY_RESTART>;
56 gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
57 };
58 +
59 + brightness {
60 + label = "Backlight";
61 + linux,code = <KEY_BRIGHTNESS_ZERO>;
62 + gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
63 + };
64 };
65 };
66