1/*
2 * Copyright (c) 2015 Hiroki Mori
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 *    notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 *    notice, this list of conditions and the following disclaimer in the
11 *    documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 *
25 * Buffalo WZR2-G300N Device Tree Source.
26 *
27 * $FreeBSD$
28 */
29
30/dts-v1/;
31
32#include "rt1310a.dtsi"
33
34/ {
35	compatible = "WZR2-G300N", "ralink,rt1310a-soc";
36	model = "WZR2-G300N";
37
38	flash@1f000000 {
39		#address-cells = <1>;
40		#size-cells = <1>;
41		compatible = "cfi-flash";
42		reg = <0x1f000000 0x400000>;		// 4M at 0x1f000000
43
44		partition@0 {
45			reg = <0x00000000 0x0000e000>;
46			label = "uboot";
47		};
48		partition@1 {
49			reg = <0x0000e000 0x00002000>;
50			label = "uboot_env";
51		};
52		partition@2 {
53			reg = <0x00010000 0x000f0000>;
54			label = "kernel";
55		};
56		partition@3 {
57			reg = <0x00100000 0x002d0000>;
58			label = "rootfs";
59		};
60		partition@4 {
61			reg = <0x003d0000 0x00010000>;
62			label = "config";
63		};
64		partition@5 {
65			reg = <0x00010000 0x003c0000>;
66			label = "upgrade";
67		};
68	};
69
70	gpio-leds {
71		compatible = "gpio-leds";
72
73		status {
74			label = "status";
75			gpios = <&gpio0 4 0>;
76		};
77	};
78
79	ip17x@0 {
80		compatible = "icplus,ip17x";
81		mii-poll = <0>;
82	};
83
84};
85
86&enet0 {
87	local-mac-address = [ 00 1a f1 01 1f 23 ];
88};
89
90&enet1 {
91	local-mac-address = [ 00 1a f1 01 1f 24 ];
92};
93