lantiq: xrx200: switch the subtarget to the mainline DSA driver
[openwrt/staging/mkresin.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_buffalo_wbmr-300hpd.dts
1 #include "vr9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
5
6 / {
7 compatible = "buffalo,wbmr-300hpd", "lantiq,xway", "lantiq,vr9";
8 model = "Buffalo WBMR-300HPD";
9
10 chosen {
11 bootargs = "console=ttyLTQ0,115200";
12 };
13
14 aliases {
15 led-boot = &power_g;
16 led-failsafe = &diag_r;
17 led-running = &power_g;
18 led-upgrade = &power_g;
19
20 led-dsl = &dsl;
21 led-internet = &router_g;
22 led-wifi = &wifi_g;
23 };
24
25 memory@0 {
26 device_type = "memory";
27 reg = <0x0 0x4000000>;
28 };
29
30 gpio_poweroff {
31 compatible = "gpio-poweroff";
32 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
33 };
34
35 keys {
36 compatible = "gpio-keys-polled";
37 poll-interval = <100>;
38
39 power {
40 label = "power";
41 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_POWER>;
43 };
44
45 reset {
46 label = "reset";
47 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
49 };
50
51 wps {
52 label = "wps";
53 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_WPS_BUTTON>;
55 };
56
57 auto {
58 label = "auto";
59 gpios = <&gpio 48 GPIO_ACTIVE_HIGH>;
60 linux,code = <BTN_0>;
61 linux,input-type = <EV_SW>;
62 };
63
64 router {
65 label = "router";
66 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
67 linux,code = <BTN_1>;
68 linux,input-type = <EV_SW>;
69 };
70 };
71
72 leds {
73 compatible = "gpio-leds";
74
75 diag_r: diag_r {
76 label = "red:diag";
77 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
78 default_state = "off";
79 };
80
81 wifi_g: wifi_g {
82 label = "green:wifi";
83 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
84 };
85
86 dsl: dsl {
87 label = "dsl";
88 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
89 };
90
91 router_y: router_y {
92 label = "yellow:router";
93 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
94 };
95
96 wifi_y: wifi_y {
97 label = "yellow:wifi";
98 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
99 };
100
101 lan1: lan1 {
102 label = "green:lan1";
103 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
104 };
105
106 wan: wan {
107 label = "green:wan";
108 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
109 };
110
111 lan3: lan3 {
112 label = "green:lan3";
113 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
114 };
115
116 lan2: lan2 {
117 label = "green:lan2";
118 gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
119 };
120
121 internet_g: internet_g {
122 label = "green:internet";
123 gpios = <&gpio 34 GPIO_ACTIVE_HIGH>;
124 };
125
126 internet_y: internet_y {
127 label = "yellow:internet";
128 gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
129 };
130
131 router_g: router_g {
132 label = "green:router";
133 gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
134 };
135
136 power_g: power_g {
137 label = "green:power";
138 gpios = <&gpio 49 GPIO_ACTIVE_HIGH>;
139 };
140 };
141
142 usb_vbus: regulator-usb-vbus {
143 compatible = "regulator-fixed";
144
145 regulator-name = "USB_VBUS";
146
147 regulator-min-microvolt = <5000000>;
148 regulator-max-microvolt = <5000000>;
149
150 gpio = <&gpio 33 GPIO_ACTIVE_HIGH>;
151 enable-active-high;
152 };
153 };
154
155 &gphy0 {
156 lantiq,gphy-mode = <GPHY_MODE_FE>;
157 };
158
159 &gphy1 {
160 lantiq,gphy-mode = <GPHY_MODE_FE>;
161 };
162
163 &gpio {
164 pinctrl-names = "default";
165 pinctrl-0 = <&state_default>;
166
167 state_default: pinmux {
168 phy-rst {
169 lantiq,pins = "io42";
170 lantiq,pull = <0>;
171 lantiq,open-drain = <0>;
172 lantiq,output = <1>;
173 };
174 pcie-rst {
175 lantiq,pins = "io38";
176 lantiq,pull = <0>;
177 lantiq,output = <1>;
178 };
179 };
180 };
181
182 &gswip_mdio {
183 phy11: ethernet-phy@11 {
184 reg = <0x11>;
185 };
186 phy12: ethernet-phy@12 {
187 reg = <0x12>;
188 };
189 phy13: ethernet-phy@13 {
190 reg = <0x13>;
191 };
192 phy14: ethernet-phy@14 {
193 reg = <0x14>;
194 };
195 };
196
197 &gswip_ports {
198 port@2 {
199 reg = <2>;
200 label = "lan3";
201 phy-mode = "internal";
202 phy-handle = <&phy11>;
203 };
204 port@3 {
205 reg = <3>;
206 label = "lan4";
207 phy-mode = "internal";
208 phy-handle = <&phy12>;
209 };
210 port@4 {
211 reg = <4>;
212 label = "lan1";
213 phy-mode = "internal";
214 phy-handle = <&phy13>;
215 };
216 port@5 {
217 reg = <5>;
218 label = "lan2";
219 phy-mode = "internal";
220 phy-handle = <&phy14>;
221 };
222 };
223
224 &spi {
225 status = "okay";
226
227 flash@4 {
228 compatible = "jedec,spi-nor";
229 reg = <4>;
230 spi-max-frequency = <20000000>;
231
232 partitions {
233 #address-cells = <1>;
234 #size-cells = <1>;
235
236 partition@0 {
237 reg = <0x0 0x10000>;
238 label = "u-boot";
239 read-only;
240 };
241
242 partition@10000 {
243 reg = <0x10000 0x10000>;
244 label = "gphyfirmware";
245 read-only;
246 };
247
248 partition@20000 {
249 reg = <0x20000 0x80000>;
250 label = "dsl_fw";
251 };
252
253 partition@de0000 {
254 reg = <0xa0000 0xf40000>;
255 label = "firmware";
256 };
257
258 partition@fe0000 {
259 reg = <0xfe0000 0x10000>;
260 label = "sysconfig";
261 read-only;
262 };
263
264 partition@ff0000 {
265 reg = <0xff0000 0x2000>;
266 label = "u-boot-env";
267 };
268
269 partition@ff3000 {
270 reg = <0xff3000 0x2000>;
271 label = "board_config";
272 read-only;
273 };
274 };
275 };
276 };
277
278 &usb_phy0 {
279 status = "okay";
280 };
281
282 &usb_phy1 {
283 status = "okay";
284 };
285
286 &usb0 {
287 status = "okay";
288 vbus-supply = <&usb_vbus>;
289 };
290
291 &usb1 {
292 status = "okay";
293 vbus-supply = <&usb_vbus>;
294 };