ramips: basic support for Planex MZK-750DHP
[openwrt.git] / target / linux / ramips / dts / OMNI-EMB-HPM.dts
1 /dts-v1/;
2
3 /include/ "rt3883.dtsi"
4
5 / {
6         compatible = "OMNI-EMB-HPM", "ralink,rt3883-soc";
7         model = "Omnima EMB HPM";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         palmbus@10000000 {
14                 spi@b00 {
15                         status = "okay";
16
17                         m25p80@0 {
18                                 compatible = "macronix,mx25l12805d";
19                                 spi-max-frequency = <25000000>;
20                                 reg = <0>;
21
22                                 #address-cells = <1>;
23                                 #size-cells = <1>;
24
25                                 partition@0 {
26                                         reg = <0x0 0x0030000>;
27                                         label = "u-boot";
28                                         read-only;
29                                 };
30
31                                 partition@30000 {
32                                         reg = <0x00030000 0x00010000>;
33                                         label = "config";
34                                         read-only;
35                                 };
36
37                                 factory: partition@40000 {
38                                         reg = <0x00040000 0x00010000>;
39                                         label = "factory";
40                                         read-only;
41                                 };
42
43                                 partition@50000 {
44                                         reg = <0x00050000 0x00fb0000>;
45                                         label = "firmware";
46                                 };
47                         };
48                 };
49         };
50
51         pinctrl {
52                 state_default: pinctrl0 {
53                         gpio {
54                                 ralink,group = "i2c", "jtag", "uartf";
55                                 ralink,function = "gpio";
56                         };
57                 };
58         };
59
60         ethernet@10100000 {
61                 phy-handle = <&phy0>;
62                 phy-mode = "rgmii";
63                 mtd-mac-address = <&factory 0x28>;
64
65                 mdio-bus {
66                         status = "okay";
67
68                         phy0: ethernet-phy@4 {
69                                 reg = <4>;
70                         };
71                 };
72         };
73
74         ehci@101c0000 {
75                 status = "okay";
76         };
77
78         ohci@101c1000 {
79                 status = "okay";
80         };
81
82         gpio-keys-polled {
83                 compatible = "gpio-keys-polled";
84                 #address-cells = <1>;
85                 #size-cells = <0>;
86                 poll-interval = <100>;
87                 reset {
88                         label = "reset";
89                         gpios = <&gpio0 14 0>;
90                         linux,code = <0x198>;
91                 };
92         };
93
94         gpio-leds {
95                 compatible = "gpio-leds";
96
97                 power {
98                         label = "emb:orange:power";
99                         gpios = <&gpio0 7 1>;
100                 };
101                 status {
102                         label = "emb:green:status";
103                         gpios = <&gpio0 21 1>;
104                 };
105                 eth {
106                         label = "emb:green:eth";
107                         gpios = <&gpio0 20 1>;
108                 };
109                 eth2 {
110                         label = "emb:red:eth";
111                         gpios = <&gpio0 18 1>;
112                 };
113                 wifi {
114                         label = "emb:green:wifi";
115                         gpios = <&gpio0 17 1>;
116                 };
117                 wifi2 {
118                         label = "emb:red:wifi";
119                         gpios = <&gpio0 19 1>;
120                 };
121         };
122
123         gpio_export {
124                 compatible = "gpio-export";
125                 #size-cells = <0>;
126                 /* gpio 12 and 13 handle the OC input */
127                 usb0 {
128                         gpio-export,name = "usb0";
129                         gpio-export,output = <1>;
130                         gpios = <&gpio0 2 0>;
131                 };
132                 usb1 {
133                         gpio-export,name = "usb1";
134                         gpio-export,output = <1>;
135                         gpios = <&gpio0 1 0>;
136                 };
137         };
138 };