ramips: Add support for Omnima MiniPlug
[openwrt.git] / target / linux / ramips / dts / OMNI-PLUG.dts
1 /dts-v1/;
2
3 /include/ "rt5350.dtsi"
4
5 / {
6         compatible = "OMNI-PLUG", "ralink,rt5350-soc";
7         model = "Omnima MiniPlug";
8         
9         pinctrl {
10                 state_default: pinctrl0 {
11                         gpio {
12                                 ralink,group = "i2c", "jtag", "uartf";
13                                 ralink,function = "gpio";
14                         };
15                 };
16         };
17         
18         gpio-leds {
19                 compatible = "gpio-leds";
20                 wlan {
21                         label = "miniplug:red:wlan";
22                         gpios = <&gpio0 9 0>;
23                 };
24                 mobile {
25                         label = "miniplug:green:mobile";
26                         gpios = <&gpio0 13 1>;
27                 };
28         };
29
30         gpio-keys-polled {
31                 compatible = "gpio-keys-polled";
32                 #address-cells = <1>;
33                 #size-cells = <0>;
34                 poll-interval = <20>;
35                 wps {
36                         label = "wps";
37                         gpios = <&gpio0 0 1>;
38                         linux,code = <0x211>;
39                 };
40                 reset {
41                         label = "reset";
42                         gpios = <&gpio0 10 1>;
43                         linux,code = <0x211>;
44                 };
45                 mode-one {
46                         label = "mode1";
47                         gpios = <&gpio0 11 1>;
48                         linux,code = <0x211>;
49                 };
50                 mode-two {
51                         label = "mode2";
52                         gpios = <&gpio0 12 1>;
53                         linux,code = <0x211>;
54                 };
55         };
56
57         palmbus@10000000 {
58                 gpio0: gpio@600 {
59                         status = "okay";
60                 };
61
62                 spi@b00 {
63                         status = "okay";
64                         m25p80@0 {
65                                 #address-cells = <1>;
66                                 #size-cells = <1>;
67                                 compatible = "mx25l6405d";
68                                 reg = <0 0>;
69                                 linux,modalias = "m25p80", "mx25l6405d";
70                                 spi-max-frequency = <10000000>;
71
72                                 partition@0 {
73                                         label = "u-boot";
74                                         reg = <0x0 0x30000>;
75                                         read-only;
76                                 };
77
78                                 partition@30000 {
79                                         label = "u-boot-env";
80                                         reg = <0x30000 0x10000>;
81                                         read-only;
82                                 };
83
84                                 factory: partition@40000 {
85                                         label = "factory";
86                                         reg = <0x40000 0x10000>;
87                                         read-only;
88                                 };
89
90                                 partition@50000 {
91                                         label = "firmware";
92                                         reg = <0x50000 0x7b0000>;
93                                 };
94                         };
95                 };
96         };
97         
98         ethernet@10100000 {
99                 mtd-mac-address = <&factory 0x4>;
100         };
101
102         esw@10110000 {
103                 ralink,portmap = <0x2f>;
104         };
105
106         wmac@10180000 {
107                 ralink,mtd-eeprom = <&factory 0>;
108         };
109         
110         otg@101c0000 {
111                 status = "okay";
112         };
113 };
114 /dts-v1/;
115
116 /include/ "rt5350.dtsi"
117
118 / {
119         compatible = "OMNI-PLUG", "ralink,rt5350-soc";
120         model = "Omnima MiniPlug";
121         
122         pinctrl {
123                 state_default: pinctrl0 {
124                         gpio {
125                                 ralink,group = "i2c", "jtag", "uartf";
126                                 ralink,function = "gpio";
127                         };
128                 };
129         };
130         
131         gpio-leds {
132                 compatible = "gpio-leds";
133                 wlan {
134                         label = "miniplug:red:wlan";
135                         gpios = <&gpio0 9 0>;
136                 };
137                 mobile {
138                         label = "miniplug:green:mobile";
139                         gpios = <&gpio0 13 1>;
140                 };
141         };
142
143         gpio-keys-polled {
144                 compatible = "gpio-keys-polled";
145                 #address-cells = <1>;
146                 #size-cells = <0>;
147                 poll-interval = <20>;
148                 wps {
149                         label = "wps";
150                         gpios = <&gpio0 0 1>;
151                         linux,code = <0x211>;
152                 };
153                 reset {
154                         label = "reset";
155                         gpios = <&gpio0 10 1>;
156                         linux,code = <0x211>;
157                 };
158                 mode-one {
159                         label = "mode1";
160                         gpios = <&gpio0 11 1>;
161                         linux,code = <0x211>;
162                 };
163                 mode-two {
164                         label = "mode2";
165                         gpios = <&gpio0 12 1>;
166                         linux,code = <0x211>;
167                 };
168         };
169
170         palmbus@10000000 {
171                 gpio0: gpio@600 {
172                         status = "okay";
173                 };
174
175                 spi@b00 {
176                         status = "okay";
177                         m25p80@0 {
178                                 #address-cells = <1>;
179                                 #size-cells = <1>;
180                                 compatible = "mx25l6405d";
181                                 reg = <0 0>;
182                                 linux,modalias = "m25p80", "mx25l6405d";
183                                 spi-max-frequency = <10000000>;
184
185                                 partition@0 {
186                                         label = "u-boot";
187                                         reg = <0x0 0x30000>;
188                                         read-only;
189                                 };
190
191                                 partition@30000 {
192                                         label = "u-boot-env";
193                                         reg = <0x30000 0x10000>;
194                                         read-only;
195                                 };
196
197                                 factory: partition@40000 {
198                                         label = "factory";
199                                         reg = <0x40000 0x10000>;
200                                         read-only;
201                                 };
202
203                                 partition@50000 {
204                                         label = "firmware";
205                                         reg = <0x50000 0x7b0000>;
206                                 };
207                         };
208                 };
209         };
210         
211         ethernet@10100000 {
212                 mtd-mac-address = <&factory 0x4>;
213         };
214
215         esw@10110000 {
216                 ralink,portmap = <0x2f>;
217         };
218
219         wmac@10180000 {
220                 ralink,mtd-eeprom = <&factory 0>;
221         };
222         
223         otg@101c0000 {
224                 status = "okay";
225         };
226 };