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