ramips: add support for Planex MZK-WDPR.
[openwrt.git] / target / linux / ramips / dts / MZK-WDPR.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         compatible = "MZK-WDPR", "ralink,rt3052-soc";
7         model = "Planex MZK-WDPR";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         pinctrl {
14                 state_default: pinctrl0 {
15                         gpio {
16                                 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
17                                 ralink,function = "gpio";
18                         };
19                 };
20         };
21
22         cfi@1f000000 {
23                 compatible = "cfi-flash";
24                 reg = <0x1f000000 0x800000>;
25
26                 bank-width = <2>;
27                 device-width = <2>;
28                 #address-cells = <1>;
29                 #size-cells = <1>;
30
31                 partition@0 {
32                         label = "u-boot";
33                         reg = <0x0 0x30000>;
34                         read-only;
35                 };
36
37                 partition@30000 {
38                         label = "u-boot-env";
39                         reg = <0x30000 0x10000>;
40                         read-only;
41                 };
42
43                 factory: partition@40000 {
44                         label = "factory";
45                         reg = <0x40000 0x10000>;
46                         read-only;
47                 };
48
49                 partition@7f0000 {
50                         label = "Data3G";
51                         reg = <0x7f0000 0x10000>;
52                         read-only;
53                 };
54
55                 partition@50000 {
56                         label = "firmware";
57                         reg = <0x50000 0x680000>;
58                 };
59         };
60
61         ethernet@10100000 {
62                 mtd-mac-address = <&factory 0x28>;
63         };
64
65         esw@10110000 {
66                 mediatek,portmap = <0x2f>;
67         };
68
69         wmac@10180000 {
70                 ralink,mtd-eeprom = <&factory 0>;
71         };
72
73         otg@101c0000 {
74                 status = "okay";
75         };
76 };