lantiq: move partitions into partion table node
[oweals/openwrt.git] / target / linux / lantiq / dts / ARV752DPW22.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6         model = "ARV752DPW22 - Arcor 803";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11                 leds {
12                         boot = &power_red;
13                         failsafe = &power_blue;
14                         running = &power_red;
15
16                         internet = &internet_red;
17                         wifi = &wifi;
18                 };
19         };
20
21         memory@0 {
22                 reg = <0x0 0x4000000>;
23         };
24
25         sram@1F000000 {
26                 vmmc@107000 {
27                         status = "okay";
28                         gpios = <&gpiomm 1 0>;
29                 };
30         };
31
32         fpi@10000000 {
33                 localbus@0 {
34                         nor-boot@0 {
35                                 compatible = "lantiq,nor";
36                                 bank-width = <2>;
37                                 reg = <0 0x0 0x800000>;
38                                 #address-cells = <1>;
39                                 #size-cells = <1>;
40
41                                 partitions {
42                                         compatible = "fixed-partitions";
43                                         #address-cells = <1>;
44                                         #size-cells = <1>;
45
46                                         partition@0 {
47                                                 label = "uboot";
48                                                 reg = <0x00000 0x30000>;
49                                                 read-only;
50                                         };
51
52                                         partition@10000 {
53                                                 label = "uboot_env";
54                                                 reg = <0x30000 0x10000>;
55                                                 read-only;
56                                         };
57
58                                         partition@20000 {
59                                                 label = "firmware";
60                                                 reg = <0x40000 0x7b0000>;
61                                         };
62
63                                         partition@7f0000 {
64                                                 label = "board_config";
65                                                 reg = <0x7f0000 0x10000>;
66                                                 read-only;
67                                         };
68                                 };
69                         };
70
71                         mac_addr {
72                                 compatible = "lantiq,eth-mac";
73                                 reg = <0 0x7f0016 0x6>;
74                                 mac-increment = <2>;
75                         };
76
77                         gpiomm: gpiomm@4000000 {
78                                 compatible = "lantiq,gpio-mm";
79                                 reg = <1 0x0 0x10 >;
80                                 #address-cells = <1>;
81                                 #size-cells = <1>;
82                                 #gpio-cells = <2>;
83                                 gpio-controller;
84                                 lantiq,shadow = <3>;
85                         };
86                 };
87
88                 gpio: pinmux@E100B10 {
89                         pinctrl-names = "default";
90                         pinctrl-0 = <&state_default>;
91
92                         state_default: pinmux {
93                                 ebu {
94                                         lantiq,groups = "ebu cs1";
95                                         lantiq,function = "ebu";
96                                 };
97                                 exin {
98                                         lantiq,groups = "exin1";
99                                         lantiq,function = "exin";
100                                         lantiq,pull = <2>;
101                                         lantiq,output = <0>;
102                                 };
103                                 pci_in {
104                                         lantiq,groups = "req1";
105                                         lantiq,function = "pci";
106                                         lantiq,pull = <2>;
107                                         lantiq,output = <0>;
108                                 };
109                                 pci_out {
110                                         lantiq,groups = "gnt1";
111                                         lantiq,function = "pci";
112                                         lantiq,open-drain = <1>;
113                                         lantiq,output = <1>;
114                                 };
115                                 pci_rst {
116                                         lantiq,pins = "io21";
117                                         lantiq,open-drain = <1>;
118                                         lantiq,output = <1>;
119                                 };
120                                 leds {
121                                         lantiq,pins = "io3", "io5", "io6", "io8";
122                                         lantiq,open-drain = <1>;
123                                         lantiq,output = <1>;
124                                 };
125                                 buttons {
126                                         lantiq,pins = "io11", "io12", "io13", "io28";
127                                         lantiq,pull = <2>;
128                                         lantiq,output = <0>;
129                                 };
130                         };
131                 };
132
133                 ifxhcd@E101000 {
134                         status = "okay";
135                         gpios = <&gpiomm 0 0>;
136                 };
137
138                 etop@E180000 {
139                         phy-mode = "mii";
140                 };
141
142                 pci@E105400 {
143                         status = "okay";
144                         lantiq,external-clock;
145                         interrupt-map = <
146                                 0x7000 0 0 1 &icu0 30
147                                 0x7800 0 0 1 &icu0 135
148                                 0x7800 0 0 2 &icu0 135
149                                 0x7800 0 0 3 &icu0 135
150                         >;
151                         gpio-reset = <&gpio 21 0>;
152                         req-mask = <0x3>;
153                 };
154
155         };
156
157         ralink_eep {
158                 compatible = "ralink,eeprom";
159                 ralink,eeprom = "RT2860.eeprom";
160         };
161
162         gpio-keys-polled {
163                 compatible = "gpio-keys-polled";
164                 #address-cells = <1>;
165                 #size-cells = <0>;
166                 poll-interval = <100>;
167
168                 wps {
169                         label = "wps";
170                         gpios = <&gpio 11 1>;
171                         linux,code = <0x211>;
172                 };
173                 restart {
174                         label = "restart";
175                         gpios = <&gpio 12 1>;
176                         linux,code = <0x110>;
177                 };
178                 dsl {
179                         label = "dsl";
180                         gpios = <&gpio 13 1>;
181                         linux,code = <0x111>;
182                 };
183                 reset {
184                         label = "reset";
185                         gpios = <&gpio 28 1>;
186                         linux,code = <0x198>;
187                 };
188         };
189
190         gpio-leds {
191                 compatible = "gpio-leds";
192                 power_blue: power1 {
193                         label = "arv752dpw22:blue:power";
194                         gpios = <&gpio 3 1>;
195                 };
196                 internet_red: internet {
197                         label = "arv752dpw22:red:internet";
198                         gpios = <&gpio 4 1>;
199                 };
200                 message {
201                         label = "arv752dpw22:red:message";
202                         gpios = <&gpio 5 1>;
203                 };
204                 power_red: power {
205                         label = "arv752dpw22:red:power";
206                         gpios = <&gpio 6 1>;
207                         default-state = "keep";
208                 };
209                 voice1 {
210                         label = "arv752dpw22:red:voice";
211                         gpios = <&gpio 8 1>;
212                 };
213                 microphone {
214                         label = "arv752dpw22:red:umts";
215                         gpios = <&gpiomm 3 1>;
216                 };
217                 wifi: wifi {
218                         label = "arv752dpw22:red:wifi";
219                         gpios = <&gpiomm 4 1>;
220                 };
221                 fxs1 {
222                         label = "arv752dpw22:green:tae-n";
223                         gpios = <&gpiomm 5 1>;
224                 };
225                 fxs2 {
226                         label = "arv752dpw22:green:tae-u";
227                         gpios = <&gpiomm 6 1>;
228                 };
229                 fxo {
230                         label = "arv752dpw22:green:isdn";
231                         gpios = <&gpiomm 7 1>;
232                 };
233                 internet2 {
234                         label = "arv752dpw22:blue:internet";
235                         gpios = <&gpiomm 8 1>;
236                 };
237                 voice2 {
238                         label = "arv752dpw22:blue:voice";
239                         gpios = <&gpiomm 9 1>;
240                 };
241                 eth1 {
242                          label = "arv752dpw22:green:lan1";
243                          gpios = <&gpiomm 11 1>;
244                 };
245                 eth2 {
246                         label = "arv752dpw22:green:lan2";
247                         gpios = <&gpiomm 12 1>;
248                 };
249                 eth3 {
250                         label = "arv752dpw22:green:lan3";
251                         gpios = <&gpiomm 13 1>;
252                 };
253                 eth4 {
254                         label = "arv752dpw22:green:lan4";
255                         gpios = <&gpiomm 14 1>;
256                 };
257         };
258 };