1 From 8115a4e8d687427fbc1aa3774f50551563bf87f9 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Wed, 14 Jan 2015 08:20: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>
10 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts | 67 ++++++++++++++++++++++
13 arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts | 67 ++++++++++++++++++++++
14 2 files changed, 134 insertions(+)
16 --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
17 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
19 reg = <0x00000000 0x08000000>;
23 + compatible = "spi-gpio";
24 + num-chipselects = <1>;
25 + gpio-sck = <&chipcommon 7 0>;
26 + gpio-mosi = <&chipcommon 4 0>;
27 + cs-gpios = <&chipcommon 6 0>;
28 + #address-cells = <1>;
32 + compatible = "fairchild,74hc595";
34 + registers-number = <1>;
35 + spi-max-frequency = <100000>;
44 + compatible = "gpio-leds";
47 + label = "bcm53xx:red:power";
48 + gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
49 + linux,default-trigger = "default-off";
53 + label = "bcm53xx:white:power";
54 + gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
55 + linux,default-trigger = "default-on";
59 + label = "bcm53xx:blue:router";
60 + gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
61 + linux,default-trigger = "default-on";
65 + label = "bcm53xx:amber:router";
66 + gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
67 + linux,default-trigger = "default-off";
71 + label = "bcm53xx:blue:wan";
72 + gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
73 + linux,default-trigger = "default-on";
77 + label = "bcm53xx:blue:wireless";
78 + gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
79 + linux,default-trigger = "default-off";
83 + label = "bcm53xx:amber:wireless";
84 + gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
85 + linux,default-trigger = "default-off";
90 compatible = "gpio-keys";
92 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
93 +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
95 reg = <0x00000000 0x08000000>;
99 + compatible = "spi-gpio";
100 + num-chipselects = <1>;
101 + gpio-sck = <&chipcommon 7 0>;
102 + gpio-mosi = <&chipcommon 4 0>;
103 + cs-gpios = <&chipcommon 6 0>;
104 + #address-cells = <1>;
107 + hc595: gpio_spi@0 {
108 + compatible = "fairchild,74hc595";
110 + registers-number = <1>;
111 + spi-max-frequency = <100000>;
120 + compatible = "gpio-leds";
123 + label = "bcm53xx:green:power";
124 + gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
125 + linux,default-trigger = "default-on";
129 + label = "bcm53xx:red:power";
130 + gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
131 + linux,default-trigger = "default-off";
135 + label = "bcm53xx:green:router";
136 + gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
137 + linux,default-trigger = "default-on";
141 + label = "bcm53xx:amber:router";
142 + gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
143 + linux,default-trigger = "default-off";
147 + label = "bcm53xx:green:wan";
148 + gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
149 + linux,default-trigger = "default-on";
153 + label = "bcm53xx:green:wireless";
154 + gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
155 + linux,default-trigger = "default-off";
159 + label = "bcm53xx:amber:wireless";
160 + gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
161 + linux,default-trigger = "default-off";
166 compatible = "gpio-keys";
167 #address-cells = <1>;