arptables: Bump to 0.0.4
[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                 sysc@0 {
15                         ralink,pinmux = "uartlite", "spi";
16                         ralink,gpiomux = "i2c", "jtag";
17                         ralink,uartmux = "gpio";
18                         ralink,wdtmux = <1>;
19                 };
20
21                 timer@100 {
22                         status = "okay";
23                 };
24
25                 gpio0: gpio@600 {
26                         status = "okay";
27                 };
28
29                 spi@b00 {
30                         status = "okay";
31
32                         m25p80@0 {
33                                 compatible = "macronix,mx25l12805d";
34                                 spi-max-frequency = <25000000>;
35                                 reg = <0>;
36
37                                 #address-cells = <1>;
38                                 #size-cells = <1>;
39
40                                 partition@0 {
41                                         reg = <0x0 0x0030000>;
42                                         label = "u-boot";
43                                         read-only;
44                                 };
45
46                                 partition@30000 {
47                                         reg = <0x00030000 0x00010000>;
48                                         label = "config";
49                                         read-only;
50                                 };
51
52                                 partition@40000 {
53                                         reg = <0x00040000 0x00010000>;
54                                         label = "factory";
55                                         read-only;
56                                 };
57
58                                 partition@50000 {
59                                         reg = <0x00050000 0x00fb0000>;
60                                         label = "firmware";
61                                 };
62                         };
63                 };
64         };
65
66         ethernet@10100000 {
67                 status = "okay";
68
69                 phy-handle = <&phy0>;
70                 phy-mode = "rgmii";
71
72                 mdio-bus {
73                         status = "okay";
74
75                         phy0: ethernet-phy@4 {
76                                 reg = <4>;
77                         };
78                 };
79         };
80
81         wmac@10180000 {
82                 status = "okay";
83         };
84
85         ehci@101c0000 {
86                 status = "okay";
87         };
88
89         ohci@101c1000 {
90                 status = "okay";
91         };
92
93         gpio-keys-polled {
94                 compatible = "gpio-keys-polled";
95                 #address-cells = <1>;
96                 #size-cells = <0>;
97                 poll-interval = <100>;
98                 reset {
99                         label = "reset";
100                         gpios = <&gpio0 14 0>;
101                         linux,code = <0x198>;
102                 };
103         };
104
105         gpio-leds {
106                 compatible = "gpio-leds";
107
108                 power {
109                         label = "emb:orange:power";
110                         gpios = <&gpio0 7 1>;
111                 };
112                 status {
113                         label = "emb:green:status";
114                         gpios = <&gpio0 21 1>;
115                 };
116                 eth {
117                         label = "emb:green:eth";
118                         gpios = <&gpio0 20 1>;
119                 };
120                 eth2 {
121                         label = "emb:red:eth";
122                         gpios = <&gpio0 18 1>;
123                 };
124                 wifi {
125                         label = "emb:green:wifi";
126                         gpios = <&gpio0 17 1>;
127                 };
128                 wifi2 {
129                         label = "emb:red:wifi";
130                         gpios = <&gpio0 19 1>;
131                 };
132         };
133
134         /* gpio 12 and 13 handle the OC input */
135         usb0: gpio-regulator {
136                 compatible = "regulator-gpio";
137
138                 regulator-name = "usb0-power";
139                 regulator-min-microvolt = <5000000>;
140                 regulator-max-microvolt = <5000000>;
141                 regulator-boot-on;
142
143                 enable-active-high;
144                 enable-gpio = <&gpio0 2 0>;
145         };
146
147         usb1: gpio-regulator {
148                 compatible = "regulator-gpio";
149
150                 regulator-name = "usb1-power";
151                 regulator-min-microvolt = <5000000>;
152                 regulator-max-microvolt = <5000000>;
153                 regulator-boot-on;
154
155                 enable-active-high;
156                 enable-gpio = <&gpio0 1 0>;
157         };
158 };