Fresh pull from upstream
[librecmc/librecmc.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         cfi@1f000000 {
14                 compatible = "cfi-flash";
15                 reg = <0x1f000000 0x800000>;
16
17                 bank-width = <2>;
18                 device-width = <2>;
19                 #address-cells = <1>;
20                 #size-cells = <1>;
21
22                 partition@0 {
23                         label = "u-boot";
24                         reg = <0x0 0x30000>;
25                         read-only;
26                 };
27
28                 partition@30000 {
29                         label = "u-boot-env";
30                         reg = <0x30000 0x10000>;
31                         read-only;
32                 };
33
34                 factory: partition@40000 {
35                         label = "factory";
36                         reg = <0x40000 0x10000>;
37                         read-only;
38                 };
39
40                 partition@7f0000 {
41                         label = "Data3G";
42                         reg = <0x7f0000 0x10000>;
43                         read-only;
44                 };
45
46                 partition@50000 {
47                         label = "firmware";
48                         reg = <0x50000 0x680000>;
49                 };
50         };
51
52         gpio-export {
53                 compatible = "gpio-export";
54
55                 lcd_ctrl1 {
56                         gpio-export,name = "lcd_ctrl1";
57                         gpio-export,output = <0>;
58                         gpios = <&gpio0 1 0>;
59                 };
60         };
61 };
62
63 &pinctrl {
64         state_default: pinctrl0 {
65                 gpio {
66                         ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
67                         ralink,function = "gpio";
68                 };
69         };
70 };
71
72 &ethernet {
73         mtd-mac-address = <&factory 0x28>;
74 };
75
76 &esw {
77         mediatek,portmap = <0x2f>;
78 };
79
80 &wmac {
81         ralink,mtd-eeprom = <&factory 0>;
82 };
83
84 &otg {
85         status = "okay";
86 };