bcm63xx: fix NETGEAR DGND3700v2 boot loop
[openwrt/openwrt.git] / target / linux / bcm63xx / dts / bcm6362-netgear-dgnd3700-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6362.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Netgear DGND3700v2";
9 compatible = "netgear,dgnd3700-v2", "brcm,bcm6362";
10
11 aliases {
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_green;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
16 };
17
18 chosen {
19 bootargs = "rootfstype=squashfs,ubifs noinitrd console=ttyS0,115200";
20 stdout-path = "serial0:115200n8";
21 };
22
23 keys {
24 compatible = "gpio-keys-polled";
25 #address-cells = <1>;
26 #size-cells = <0>;
27 poll-interval = <20>;
28
29 reset {
30 label = "reset";
31 gpios = <&pinctrl 24 1>;
32 linux,code = <KEY_RESTART>;
33 debounce-interval = <60>;
34 };
35
36 wlan {
37 label = "wlan";
38 gpios = <&pinctrl 25 1>;
39 linux,code = <KEY_WLAN>;
40 debounce-interval = <60>;
41 };
42
43 wps {
44 label = "wps";
45 gpios = <&pinctrl 26 1>;
46 linux,code = <KEY_WPS_BUTTON>;
47 debounce-interval = <60>;
48 };
49 };
50
51 leds {
52 compatible = "gpio-leds";
53
54 led@28 {
55 label = "green:dsl";
56 gpios = <&pinctrl 28 1>;
57 };
58
59 led@34 {
60 label = "red:power";
61 gpios = <&pinctrl 34 1>;
62 };
63 };
64 };
65
66 &leds {
67 status = "okay";
68 brcm,serial-leds;
69 brcm,serial-dat-low;
70 brcm,serial-shift-inv;
71 brcm,serial-mux;
72
73 pinctrl-names = "default";
74 pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led>;
75
76 led@1 {
77 reg = <1>;
78 active-low;
79 label = "green:internet";
80 };
81
82 led_power_green: led@8 {
83 reg = <8>;
84 label = "green:power";
85 default-state = "on";
86 };
87
88 led@9 {
89 reg = <9>;
90 active-low;
91 label = "green:wps";
92 };
93
94 led@10 {
95 reg = <10>;
96 active-low;
97 label = "green:usb1";
98 };
99
100 led@11 {
101 reg = <11>;
102 active-low;
103 label = "green:usb2";
104 };
105
106 led@12 {
107 reg = <12>;
108 active-low;
109 label = "amber:internet";
110 };
111
112 led@13 {
113 reg = <13>;
114 active-low;
115 label = "green:ethernet";
116 };
117
118 led@14 {
119 reg = <14>;
120 active-low;
121 label = "amber:dsl";
122 };
123
124 led@16 {
125 reg = <16>;
126 active-low;
127 label = "amber:usb1";
128 };
129
130 led@17 {
131 reg = <17>;
132 active-low;
133 label = "amber:usb2";
134 };
135
136 led@18 {
137 reg = <18>;
138 active-low;
139 label = "amber:ethernet";
140 };
141 };
142
143 &nflash {
144 status = "okay";
145
146 nandcs@0 {
147 compatible = "brcm,nandcs";
148 #size-cells = <1>;
149 #address-cells = <1>;
150 reg = <0>;
151 nand-ecc-step-size = <512>;
152 nand-ecc-strength = <15>;
153 nand-on-flash-bbt;
154
155 partitions {
156 compatible = "fixed-partitions";
157 #address-cells = <1>;
158 #size-cells = <1>;
159
160 partition@0 {
161 label = "cferom";
162 reg = <0x0000000 0x0004000>;
163 read-only;
164 };
165
166 partition@4000 {
167 compatible = "brcm,wfi";
168 label = "wfi";
169 reg = <0x0004000 0x1c7c000>;
170 brcm,cferam = "cfe";
171 };
172
173 partition@1c80000 {
174 label = "flag";
175 reg = <0x1c80000 0x0040000>;
176 read-only;
177 };
178
179 partition@1cc0000 {
180 label = "pcbasn";
181 reg = <0x1cc0000 0x0040000>;
182 read-only;
183 };
184
185 partition@1d00000 {
186 label = "xxx";
187 reg = <0x1d00000 0x0080000>;
188 read-only;
189 };
190
191 partition@1d80000 {
192 label = "language_dev";
193 reg = <0x1d80000 0x0040000>;
194 read-only;
195 };
196
197 partition@1dc0000 {
198 label = "scnvram";
199 reg = <0x1dc0000 0x0100000>;
200 read-only;
201 };
202 };
203 };
204 };
205
206 &pinctrl {
207 pinctrl_leds: leds {
208 function = "led";
209 pins = "gpio1";
210 };
211 };
212
213 &uart0 {
214 status = "okay";
215 };