bmips: backport accepted pinctrl patches
[openwrt/staging/dedeckeh.git] / target / linux / bmips / dts / bcm63168-comtrend-vr-3032u.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm63268.dtsi"
4
5 / {
6 model = "Comtrend VR-3032u";
7 compatible = "comtrend,vr-3032u", "brcm,bcm63168", "brcm,bcm63268";
8
9 aliases {
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_green;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_green;
14
15 led-usb = &led_usb_green;
16 };
17
18 keys {
19 compatible = "gpio-keys-polled";
20 poll-interval = <20>;
21
22 reset {
23 label = "reset";
24 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
26 debounce-interval = <60>;
27 };
28
29 wps {
30 label = "wps";
31 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
33 debounce-interval = <60>;
34 };
35 };
36 };
37
38 &ehci {
39 status = "okay";
40 };
41
42 &ethernet {
43 status = "okay";
44
45 mtd-mac-address = <&cferom 0x6a0>;
46 };
47
48 &leds {
49 status = "okay";
50
51 brcm,serial-leds;
52 brcm,serial-dat-low;
53 brcm,serial-shift-inv;
54
55 pinctrl-names = "default";
56 pinctrl-0 = <&pinctrl_serial_led>;
57
58 led@0 {
59 /* GPHY0 Spd 0 */
60 reg = <0>;
61 brcm,hardware-controlled;
62 brcm,link-signal-sources = <0>;
63 };
64
65 led@1 {
66 /* GPHY0 Spd 1 */
67 reg = <1>;
68 brcm,hardware-controlled;
69 brcm,link-signal-sources = <1>;
70 };
71
72 led@2 {
73 reg = <2>;
74 active-low;
75 label = "red:internet";
76 };
77
78 led@3 {
79 reg = <3>;
80 active-low;
81 label = "green:dsl";
82 };
83
84 led_usb_green: led@4 {
85 reg = <4>;
86 active-low;
87 label = "green:usb";
88 };
89
90 led@7 {
91 reg = <7>;
92 active-low;
93 label = "green:wps";
94 };
95
96 led@8 {
97 reg = <8>;
98 active-low;
99 label = "green:internet";
100 };
101
102 led@9 {
103 /* EPHY0 Act */
104 reg = <9>;
105 brcm,hardware-controlled;
106 };
107
108 led@10 {
109 /* EPHY1 Act */
110 reg = <10>;
111 brcm,hardware-controlled;
112 };
113
114 led@11 {
115 /* EPHY2 Act */
116 reg = <11>;
117 brcm,hardware-controlled;
118 };
119
120 led@12 {
121 /* GPHY0 Act */
122 reg = <12>;
123 brcm,hardware-controlled;
124 };
125
126 led@13 {
127 /* EPHY0 Spd */
128 reg = <13>;
129 brcm,hardware-controlled;
130 };
131
132 led@14 {
133 /* EPHY1 Spd */
134 reg = <14>;
135 brcm,hardware-controlled;
136 };
137
138 led@15 {
139 /* EPHY2 Spd */
140 reg = <15>;
141 brcm,hardware-controlled;
142 };
143
144 led_power_green: led@20 {
145 reg = <20>;
146 active-low;
147 label = "green:power";
148 };
149 };
150
151 &nflash {
152 status = "okay";
153
154 nandcs@0 {
155 compatible = "brcm,nandcs";
156 reg = <0>;
157 nand-ecc-step-size = <512>;
158 nand-ecc-strength = <15>;
159 nand-on-flash-bbt;
160 brcm,nand-oob-sector-size = <64>;
161
162 partitions {
163 compatible = "fixed-partitions";
164 #address-cells = <1>;
165 #size-cells = <1>;
166
167 cferom: partition@0 {
168 label = "cferom";
169 reg = <0x0000000 0x0020000>;
170 read-only;
171 };
172
173 partition@20000 {
174 compatible = "brcm,wfi-split";
175 label = "wfi";
176 reg = <0x0020000 0x7ac0000>;
177 };
178 };
179 };
180 };
181
182 &ohci {
183 status = "okay";
184 };
185
186 &switch0 {
187 ports {
188 port@0 {
189 reg = <0>;
190 label = "lan2";
191
192 phy-handle = <&phy1>;
193 };
194
195 port@1 {
196 reg = <1>;
197 label = "lan3";
198
199 phy-handle = <&phy2>;
200 };
201
202 port@2 {
203 reg = <2>;
204 label = "lan4";
205
206 phy-handle = <&phy3>;
207 };
208
209 port@3 {
210 reg = <3>;
211 label = "lan1";
212
213 phy-handle = <&phy4>;
214 };
215 };
216 };
217
218 &uart0 {
219 status = "okay";
220 };
221
222 &usbh {
223 status = "okay";
224 };