bmips: add support for Netgear DGND3700 v1, DGND3800B
[openwrt/staging/jow.git] / target / linux / bmips / dts / bcm6368-netgear-dgnd3700.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6368.dtsi"
4
5 / {
6 aliases {
7 led-boot = &led_power_green;
8 led-failsafe = &led_power_red;
9 led-running = &led_power_green;
10 led-upgrade = &led_power_green;
11 };
12
13 keys {
14 compatible = "gpio-keys-polled";
15 poll-interval = <100>;
16
17 rfkill {
18 label = "rfkill";
19 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RFKILL>;
21 debounce-interval = <60>;
22 };
23
24 reset {
25 label = "reset";
26 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
28 debounce-interval = <60>;
29 };
30
31 wps {
32 label = "wps";
33 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_WPS_BUTTON>;
35 debounce-interval = <60>;
36 };
37 };
38
39 leds {
40 compatible = "gpio-leds";
41
42 led@2 {
43 label = "green:dsl";
44 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
45 };
46
47 led@4 {
48 label = "red:wan";
49 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
50 };
51
52 led@5 {
53 label = "green:wan";
54 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
55 };
56
57 led@11 {
58 label = "green:wps";
59 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
60 };
61
62 /* usb front */
63 led@13 {
64 label = "green:usb2";
65 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
66 };
67
68 /* usb back */
69 led@14 {
70 label = "green:usb1";
71 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
72 };
73
74 led_power_red: led@22 {
75 label = "red:power";
76 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
77 panic-indicator;
78 };
79
80 led@23 {
81 label = "green:lan";
82 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
83 };
84
85 led_power_green: led@24 {
86 label = "green:power";
87 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
88 default-state = "on";
89 };
90
91 led@26 {
92 label = "green:wifi2g";
93 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
94 };
95
96 led@27 {
97 label = "blue:wifi5g";
98 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
99 };
100 };
101 };
102
103 &ehci {
104 status = "okay";
105 };
106
107 &ethernet {
108 status = "okay";
109
110 nvmem-cells = <&macaddr_cfe_6a0>;
111 nvmem-cell-names = "mac-address";
112 };
113
114 &lsspi {
115 status = "okay";
116
117 switch@1 {
118 compatible = "brcm,bcm53115";
119 reg = <1>;
120 spi-max-frequency = <781000>;
121 dsa,member = <1 0>;
122
123 ports {
124 #address-cells = <1>;
125 #size-cells = <0>;
126
127 wan@0 {
128 reg = <0>;
129 label = "wan";
130 };
131
132 port@1 {
133 reg = <1>;
134 label = "lan4";
135 };
136
137 port@2 {
138 reg = <2>;
139 label = "lan3";
140 };
141
142 port@3 {
143 reg = <3>;
144 label = "lan2";
145 };
146
147 port@4 {
148 reg = <4>;
149 label = "lan1";
150 };
151
152 port@8 {
153 reg = <8>;
154
155 phy-mode = "rgmii";
156 ethernet = <&switch0port5>;
157
158 fixed-link {
159 speed = <1000>;
160 full-duplex;
161 };
162 };
163 };
164 };
165 };
166
167 &nflash {
168 status = "okay";
169
170 nandcs@0 {
171 compatible = "brcm,nandcs";
172 reg = <0>;
173 nand-ecc-step-size = <512>;
174 nand-ecc-strength = <15>;
175 nand-on-flash-bbt;
176 brcm,nand-oob-sector-size = <64>;
177
178 partitions {
179 compatible = "fixed-partitions";
180 #address-cells = <1>;
181 #size-cells = <1>;
182
183 partition@0 {
184 label = "storage";
185 reg = <0 0>; /* autodetected size */
186 };
187 };
188 };
189 };
190
191 &ohci {
192 status = "okay";
193 };
194
195 &pci {
196 status = "okay";
197 };
198
199 &pflash {
200 status = "okay";
201
202 partitions {
203 compatible = "fixed-partitions";
204 #address-cells = <1>;
205 #size-cells = <1>;
206
207 cfe: partition@0 {
208 label = "CFE";
209 reg = <0x0000000 0x0020000>;
210 read-only;
211 };
212
213 partition@20000 {
214 compatible = "brcm,bcm963xx-imagetag";
215 label = "firmware";
216 reg = <0x0020000 0x1e20000>;
217 };
218
219 partition@1e40000 {
220 label = "board_data";
221 reg = <0x1e40000 0x1a0000>;
222 read-only;
223 };
224
225 partition@1fe0000 {
226 label = "nvram";
227 reg = <0x1fe0000 0x020000>;
228 };
229 };
230 };
231
232 &switch0 {
233 dsa,member = <0 0>;
234
235 ports {
236 switch0port5: port@5 {
237 reg = <5>;
238 label = "extsw";
239
240 phy-mode = "rgmii";
241
242 fixed-link {
243 speed = <1000>;
244 full-duplex;
245 };
246 };
247 };
248 };
249
250 &uart0 {
251 status = "okay";
252 };
253
254 &usbh {
255 status = "okay";
256 };
257
258 &cfe {
259 compatible = "nvmem-cells";
260 #address-cells = <1>;
261 #size-cells = <1>;
262
263 macaddr_cfe_6a0: macaddr@6a0 {
264 reg = <0x6a0 0x6>;
265 };
266 };