bmips: dts: improve and align device tree files
[openwrt/staging/hauke.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 label = "green:usb";
60 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
61 };
62
63 led_power_green: led@22 {
64 label = "green:power";
65 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
66 };
67
68 led_power_red: led@23 {
69 label = "red:power";
70 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
71 panic-indicator;
72 };
73
74 led@24 {
75 label = "green:lan";
76 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
77 };
78
79 led@27 {
80 label = "green:wan";
81 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
82 };
83 };
84
85 bcm4322-sprom {
86 compatible = "brcm,ssb-sprom";
87
88 pci-bus = <0>;
89 pci-dev = <1>;
90
91 nvmem-cells = <&macaddr_cfe_6a0>;
92 nvmem-cell-names = "mac-address";
93 mac-address-increment = <1>;
94
95 brcm,sprom = "brcm/bcm4322-sprom.bin";
96 brcm,sprom-fixups = <219 0xec08>;
97 };
98 };
99
100 &ehci {
101 status = "okay";
102 };
103
104 &ethernet {
105 status = "okay";
106
107 nvmem-cells = <&macaddr_cfe_6a0>;
108 nvmem-cell-names = "mac-address";
109 };
110
111 &mdio_ext {
112 switch@1e {
113 compatible = "brcm,bcm53115";
114 reg = <30>;
115
116 dsa,member = <1 0>;
117
118 ports {
119 #address-cells = <1>;
120 #size-cells = <0>;
121
122 port@0 {
123 reg = <0>;
124 label = "wan";
125 };
126
127 port@1 {
128 reg = <1>;
129 label = "lan1";
130 };
131
132 port@2 {
133 reg = <2>;
134 label = "lan2";
135 };
136
137 port@3 {
138 reg = <3>;
139 label = "lan3";
140 };
141
142 port@4 {
143 reg = <4>;
144 label = "lan4";
145 };
146
147 port@8 {
148 reg = <8>;
149
150 phy-mode = "rgmii";
151 ethernet = <&switch0port5>;
152
153 fixed-link {
154 speed = <1000>;
155 full-duplex;
156 };
157 };
158 };
159 };
160 };
161
162 &switch0 {
163 dsa,member = <0 0>;
164
165 ports {
166 switch0port5: port@5 {
167 reg = <5>;
168 label = "extsw";
169
170 phy-mode = "rgmii";
171
172 fixed-link {
173 speed = <1000>;
174 full-duplex;
175 };
176 };
177 };
178 };
179
180 &pflash {
181 status = "okay";
182
183 partitions {
184 compatible = "fixed-partitions";
185 #address-cells = <1>;
186 #size-cells = <1>;
187
188 cfe: partition@0 {
189 label = "CFE";
190 reg = <0x000000 0x020000>;
191 read-only;
192 };
193
194 partition@20000 {
195 label = "firmware";
196 reg = <0x020000 0xf40000>;
197 compatible = "brcm,bcm963xx-imagetag";
198 };
199
200 partition@f60000 {
201 label = "board_data";
202 reg = <0xf60000 0x080000>;
203 read-only;
204 };
205
206 partition@fe0000 {
207 label = "nvram";
208 reg = <0xfe0000 0x020000>;
209 };
210 };
211 };
212
213 &ohci {
214 status = "okay";
215 };
216
217 &pci {
218 status = "okay";
219 };
220
221 &uart0 {
222 status = "okay";
223 };
224
225 &usbh {
226 status = "okay";
227 };
228
229 &cfe {
230 compatible = "nvmem-cells";
231 #address-cells = <1>;
232 #size-cells = <1>;
233
234 macaddr_cfe_6a0: macaddr@6a0 {
235 reg = <0x6a0 0x6>;
236 };
237 };