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