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