bmips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / bmips / dts / bcm6369-netgear-evg2000.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "bcm6368.dtsi"
6
7 / {
8 model = "Netgear EVG2000";
9 compatible = "netgear,evg2000", "brcm,bcm6369", "brcm,bcm6368";
10
11 aliases {
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_red;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
16 };
17
18 keys {
19 compatible = "gpio-keys-polled";
20 poll-interval = <100>;
21
22 reset {
23 label = "reset";
24 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
26 debounce-interval = <60>;
27 };
28
29 wps {
30 label = "wps";
31 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
33 debounce-interval = <60>;
34 };
35 };
36
37 leds {
38 compatible = "gpio-leds";
39
40 led@2 {
41 label = "green:voip2";
42 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
43 };
44
45 led@4 {
46 label = "red:internet";
47 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
48 };
49
50 led@5 {
51 label = "green:internet";
52 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
53 };
54
55 led@14 {
56 label = "green:voip1";
57 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
58 };
59
60 led@15 {
61 function = LED_FUNCTION_USB;
62 color = <LED_COLOR_ID_GREEN>;
63 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
64 };
65
66 led_power_green: led@22 {
67 function = LED_FUNCTION_POWER;
68 color = <LED_COLOR_ID_GREEN>;
69 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
70 };
71
72 led_power_red: led@23 {
73 function = LED_FUNCTION_POWER;
74 color = <LED_COLOR_ID_RED>;
75 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
76 panic-indicator;
77 };
78
79 led@24 {
80 function = LED_FUNCTION_LAN;
81 color = <LED_COLOR_ID_GREEN>;
82 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
83 };
84
85 led@27 {
86 function = LED_FUNCTION_WAN;
87 color = <LED_COLOR_ID_GREEN>;
88 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
89 };
90 };
91
92 bcm4322-sprom {
93 compatible = "brcm,ssb-sprom";
94
95 pci-bus = <0>;
96 pci-dev = <1>;
97
98 nvmem-cells = <&macaddr_cfe_6a0 1>;
99 nvmem-cell-names = "mac-address";
100
101 brcm,sprom = "brcm/bcm4322-sprom.bin";
102 brcm,sprom-fixups = <219 0xec08>;
103 };
104 };
105
106 &ehci {
107 status = "okay";
108 };
109
110 &ethernet {
111 status = "okay";
112
113 nvmem-cells = <&macaddr_cfe_6a0 0>;
114 nvmem-cell-names = "mac-address";
115 };
116
117 &mdio_ext {
118 switch@1e {
119 compatible = "brcm,bcm53115";
120 reg = <30>;
121
122 dsa,member = <1 0>;
123
124 ports {
125 #address-cells = <1>;
126 #size-cells = <0>;
127
128 port@0 {
129 reg = <0>;
130 label = "wan";
131 };
132
133 port@1 {
134 reg = <1>;
135 label = "lan1";
136 };
137
138 port@2 {
139 reg = <2>;
140 label = "lan2";
141 };
142
143 port@3 {
144 reg = <3>;
145 label = "lan3";
146 };
147
148 port@4 {
149 reg = <4>;
150 label = "lan4";
151 };
152
153 port@8 {
154 reg = <8>;
155
156 phy-mode = "rgmii";
157 ethernet = <&switch0port5>;
158
159 fixed-link {
160 speed = <1000>;
161 full-duplex;
162 };
163 };
164 };
165 };
166 };
167
168 &switch0 {
169 dsa,member = <0 0>;
170
171 ports {
172 switch0port5: port@5 {
173 reg = <5>;
174 label = "extsw";
175
176 phy-mode = "rgmii";
177
178 fixed-link {
179 speed = <1000>;
180 full-duplex;
181 };
182 };
183 };
184 };
185
186 &pflash {
187 status = "okay";
188
189 partitions {
190 compatible = "fixed-partitions";
191 #address-cells = <1>;
192 #size-cells = <1>;
193
194 partition@0 {
195 label = "CFE";
196 reg = <0x000000 0x020000>;
197 read-only;
198
199 nvmem-layout {
200 compatible = "fixed-layout";
201 #address-cells = <1>;
202 #size-cells = <1>;
203
204 macaddr_cfe_6a0: macaddr@6a0 {
205 compatible = "mac-base";
206 reg = <0x6a0 0x6>;
207 #nvmem-cell-cells = <1>;
208 };
209 };
210 };
211
212 partition@20000 {
213 label = "firmware";
214 reg = <0x020000 0xf40000>;
215 compatible = "brcm,bcm963xx-imagetag";
216 };
217
218 partition@f60000 {
219 label = "board_data";
220 reg = <0xf60000 0x080000>;
221 read-only;
222 };
223
224 partition@fe0000 {
225 label = "nvram";
226 reg = <0xfe0000 0x020000>;
227 };
228 };
229 };
230
231 &ohci {
232 status = "okay";
233 };
234
235 &pci {
236 status = "okay";
237 };
238
239 &uart0 {
240 status = "okay";
241 };
242
243 &usbh {
244 status = "okay";
245 };