bcm53xx: rename patches modifying DTS files
[librecmc/librecmc.git] / target / linux / bcm53xx / patches-3.14 / 321-ARM-BCM5301X-Add-LEDs-for-Buffalo-devices.patch
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
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
10 ---
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(+)
14
15 --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
16 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
17 @@ -34,6 +34,73 @@
18                 };
19         };
20  
21 +       spi {
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>;
28 +               #size-cells = <0>;
29 +
30 +               hc595: gpio_spi@0 {
31 +                       compatible = "fairchild,74hc595";
32 +                       reg = <0>;
33 +                       registers-number = <1>;
34 +                       spi-max-frequency = <100000>;
35 +
36 +                       gpio-controller;
37 +                       #gpio-cells = <2>;
38 +
39 +               };
40 +       };
41 +
42 +       leds {
43 +               compatible = "gpio-leds";
44 +
45 +               power0 {
46 +                       label = "bcm53xx:red:power";
47 +                       gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
48 +                       linux,default-trigger = "default-off";
49 +               };
50 +
51 +               power1 {
52 +                       label = "bcm53xx:white:power";
53 +                       gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
54 +                       linux,default-trigger = "default-on";
55 +               };
56 +
57 +               router0 {
58 +                       label = "bcm53xx:blue:router";
59 +                       gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
60 +                       linux,default-trigger = "default-on";
61 +               };
62 +
63 +               router1 {
64 +                       label = "bcm53xx:amber:router";
65 +                       gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
66 +                       linux,default-trigger = "default-off";
67 +               };
68 +
69 +               wan {
70 +                       label = "bcm53xx:blue:wan";
71 +                       gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
72 +                       linux,default-trigger = "default-on";
73 +               };
74 +
75 +               wireless0 {
76 +                       label = "bcm53xx:blue:wireless";
77 +                       gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
78 +                       linux,default-trigger = "default-off";
79 +               };
80 +
81 +               wireless1 {
82 +                       label = "bcm53xx:amber:wireless";
83 +                       gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
84 +                       linux,default-trigger = "default-off";
85 +               };
86 +       };
87 +
88         gpio-keys {
89                 compatible = "gpio-keys-polled";
90                 #address-cells = <1>;
91 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
92 +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
93 @@ -34,6 +34,73 @@
94                 };
95         };
96  
97 +       spi {
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>;
104 +               #size-cells = <0>;
105 +
106 +               hc595: gpio_spi@0 {
107 +                       compatible = "fairchild,74hc595";
108 +                       reg = <0>;
109 +                       registers-number = <1>;
110 +                       spi-max-frequency = <100000>;
111 +
112 +                       gpio-controller;
113 +                       #gpio-cells = <2>;
114 +
115 +               };
116 +       };
117 +
118 +       leds {
119 +               compatible = "gpio-leds";
120 +
121 +               power0 {
122 +                       label = "bcm53xx:green:power";
123 +                       gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
124 +                       linux,default-trigger = "default-on";
125 +               };
126 +
127 +               power1 {
128 +                       label = "bcm53xx:red:power";
129 +                       gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
130 +                       linux,default-trigger = "default-off";
131 +               };
132 +
133 +               router0 {
134 +                       label = "bcm53xx:green:router";
135 +                       gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
136 +                       linux,default-trigger = "default-on";
137 +               };
138 +
139 +               router1 {
140 +                       label = "bcm53xx:amber:router";
141 +                       gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
142 +                       linux,default-trigger = "default-off";
143 +               };
144 +
145 +               wan {
146 +                       label = "bcm53xx:green:wan";
147 +                       gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
148 +                       linux,default-trigger = "default-on";
149 +               };
150 +
151 +               wireless0 {
152 +                       label = "bcm53xx:green:wireless";
153 +                       gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
154 +                       linux,default-trigger = "default-off";
155 +               };
156 +
157 +               wireless1 {
158 +                       label = "bcm53xx:amber:wireless";
159 +                       gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
160 +                       linux,default-trigger = "default-off";
161 +               };
162 +       };
163 +
164         gpio-keys {
165                 compatible = "gpio-keys-polled";
166                 #address-cells = <1>;