97836e92e03eaa43938176eeeeaaeb4f9275c756
[openwrt/staging/hauke.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 led@13 {
63 /* Front USB port */
64 label = "green:usb2";
65 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
66 };
67
68 led@14 {
69 /* Back USB port */
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 };
89
90 led@26 {
91 label = "green:wifi2g";
92 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
93 };
94
95 led@27 {
96 label = "blue:wifi5g";
97 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
98 };
99 };
100 };
101
102 &ehci {
103 status = "okay";
104 };
105
106 &ethernet {
107 status = "okay";
108
109 nvmem-cells = <&macaddr_cfe_6a0>;
110 nvmem-cell-names = "mac-address";
111 };
112
113 &lsspi {
114 status = "okay";
115
116 switch@1 {
117 compatible = "brcm,bcm53115";
118 reg = <1>;
119 spi-max-frequency = <781000>;
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 = "lan4";
134 };
135
136 port@2 {
137 reg = <2>;
138 label = "lan3";
139 };
140
141 port@3 {
142 reg = <3>;
143 label = "lan2";
144 };
145
146 port@4 {
147 reg = <4>;
148 label = "lan1";
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 &nflash {
167 status = "okay";
168
169 nandcs@0 {
170 compatible = "brcm,nandcs";
171 reg = <0>;
172 nand-ecc-step-size = <512>;
173 nand-ecc-strength = <15>;
174 nand-on-flash-bbt;
175 brcm,nand-oob-sector-size = <64>;
176
177 partitions {
178 compatible = "fixed-partitions";
179 #address-cells = <1>;
180 #size-cells = <1>;
181
182 partition@0 {
183 label = "storage";
184 reg = <0 0>; /* autodetected size */
185 };
186 };
187 };
188 };
189
190 &ohci {
191 status = "okay";
192 };
193
194 &pci {
195 status = "okay";
196 };
197
198 &pflash {
199 status = "okay";
200
201 partitions {
202 compatible = "fixed-partitions";
203 #address-cells = <1>;
204 #size-cells = <1>;
205
206 cfe: partition@0 {
207 label = "CFE";
208 reg = <0x0000000 0x0020000>;
209 read-only;
210
211 nvmem-layout {
212 compatible = "fixed-layout";
213 #address-cells = <1>;
214 #size-cells = <1>;
215
216 macaddr_cfe_6a0: macaddr@6a0 {
217 reg = <0x6a0 0x6>;
218 };
219 };
220 };
221
222 partition@20000 {
223 compatible = "brcm,bcm963xx-imagetag";
224 label = "firmware";
225 reg = <0x0020000 0x1e20000>;
226 };
227
228 partition@1e40000 {
229 label = "board_data";
230 reg = <0x1e40000 0x1a0000>;
231 read-only;
232 };
233
234 partition@1fe0000 {
235 label = "nvram";
236 reg = <0x1fe0000 0x020000>;
237 };
238 };
239 };
240
241 &switch0 {
242 dsa,member = <0 0>;
243
244 ports {
245 switch0port5: port@5 {
246 reg = <5>;
247 label = "extsw";
248
249 phy-mode = "rgmii";
250
251 fixed-link {
252 speed = <1000>;
253 full-duplex;
254 };
255 };
256 };
257 };
258
259 &uart0 {
260 status = "okay";
261 };
262
263 &usbh {
264 status = "okay";
265 };