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