OpenWrt – Blame information for rev 4

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