1 From af26d75225f8b1295d4dec74b9a6a703d582fa40 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Thu, 11 Dec 2014 12:13:49 +0100
4 Subject: [PATCH] ARM: BCM5301X: Add LEDs for Buffalo devices
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
11 arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts | 67 ++++++++++++++++++++++
12 arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts | 67 ++++++++++++++++++++++
13 2 files changed, 134 insertions(+)
15 --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
16 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
22 + compatible = "spi-gpio";
23 + num-chipselects = <1>;
24 + gpio-sck = <&chipcommon 7 0>;
25 + gpio-mosi = <&chipcommon 4 0>;
26 + cs-gpios = <&chipcommon 6 0>;
27 + #address-cells = <1>;
31 + compatible = "fairchild,74hc595";
33 + registers-number = <1>;
34 + spi-max-frequency = <100000>;
43 + compatible = "gpio-leds";
46 + label = "bcm53xx:red:power";
47 + gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
48 + linux,default-trigger = "default-off";
52 + label = "bcm53xx:white:power";
53 + gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
54 + linux,default-trigger = "default-on";
58 + label = "bcm53xx:blue:router";
59 + gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
60 + linux,default-trigger = "default-on";
64 + label = "bcm53xx:amber:router";
65 + gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
66 + linux,default-trigger = "default-off";
70 + label = "bcm53xx:blue:wan";
71 + gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
72 + linux,default-trigger = "default-on";
76 + label = "bcm53xx:blue:wireless";
77 + gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
78 + linux,default-trigger = "default-off";
82 + label = "bcm53xx:amber:wireless";
83 + gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
84 + linux,default-trigger = "default-off";
89 compatible = "gpio-keys-polled";
91 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
92 +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
98 + compatible = "spi-gpio";
99 + num-chipselects = <1>;
100 + gpio-sck = <&chipcommon 7 0>;
101 + gpio-mosi = <&chipcommon 4 0>;
102 + cs-gpios = <&chipcommon 6 0>;
103 + #address-cells = <1>;
106 + hc595: gpio_spi@0 {
107 + compatible = "fairchild,74hc595";
109 + registers-number = <1>;
110 + spi-max-frequency = <100000>;
119 + compatible = "gpio-leds";
122 + label = "bcm53xx:green:power";
123 + gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
124 + linux,default-trigger = "default-on";
128 + label = "bcm53xx:red:power";
129 + gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
130 + linux,default-trigger = "default-off";
134 + label = "bcm53xx:green:router";
135 + gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
136 + linux,default-trigger = "default-on";
140 + label = "bcm53xx:amber:router";
141 + gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
142 + linux,default-trigger = "default-off";
146 + label = "bcm53xx:green:wan";
147 + gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
148 + linux,default-trigger = "default-on";
152 + label = "bcm53xx:green:wireless";
153 + gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
154 + linux,default-trigger = "default-off";
158 + label = "bcm53xx:amber:wireless";
159 + gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
160 + linux,default-trigger = "default-off";
165 compatible = "gpio-keys-polled";
166 #address-cells = <1>;