6ab251c6dfe7f81a59dbcc1260f3de4224a7ad9f
[openwrt.git] / target / linux / lantiq / image / ARV452CQW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6         model = "ARV452CQW - Arcor 801";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10         };
11
12         memory@0 {
13                 reg = <0x0 0x2000000>;
14         };
15
16         sram@1F000000 {
17                 vmmc@107000 {
18                         status = "okay";
19                         gpios = <&gpio 31 0
20                                 &gpiomm 7 0>;
21                 };
22         };
23
24         fpi@10000000 {
25                 localbus@0 {
26                         nor-boot@0 {
27                                 compatible = "lantiq,nor";
28                                 bank-width = <2>;
29                                 reg = <0 0x0 0x400000>;
30                                 #address-cells = <1>;
31                                 #size-cells = <1>;
32
33                                 partition@0 {
34                                         label = "uboot";
35                                         reg = <0x00000 0x10000>;
36                                         read-only;
37                                 };
38
39                                 partition@10000 {
40                                         label = "uboot_env";
41                                         reg = <0x10000 0x10000>;
42                                         read-only;
43                                 };
44
45                                 partition@20000 {
46                                         label = "linux";
47                                         reg = <0x20000 0x3d0000>;
48                                 };
49
50                                 partition@3f0000 {
51                                         label = "boardconfig";
52                                         reg = <0x3f0000 0x10000>;
53                                         read-only;
54                                 };
55                         };
56
57                         mac_addr {
58                                 compatible = "lantiq,eth-mac";
59                                 reg = <0 0x3f0016 0x6>;
60                                 mac-increment = <2>;
61                         };
62
63                         ath5k_eep {
64                                 compatible = "ath5k,eeprom";
65                                 reg = <0 0x3f0400 0x800>;
66                                 ath,mac-offset = <0>;
67                                 ath,eep-swap;
68                         };
69                         gpiomm: gpiomm@4000000 {
70                                 compatible = "lantiq,gpio-mm";
71                                 reg = <1 0x0 0x10>;
72                                 #address-cells = <1>;
73                                 #size-cells = <1>;
74                                 #gpio-cells = <2>;
75                                 gpio-controller;
76                                 lantiq,shadow = <0x77f>;
77                         };
78                 };
79
80                 gpio: pinmux@E100B10 {
81                         pinctrl-names = "default";
82                         pinctrl-0 = <&state_default>;
83
84                         state_default: pinmux {
85                                 ebu {
86                                         lantiq,groups = "ebu cs1";
87                                         lantiq,function = "ebu";
88                                 };
89                                 pci_in {
90                                         lantiq,groups = "req1";
91                                         lantiq,function = "pci";
92                                         lantiq,open-drain = <1>;
93                                         lantiq,pull = <2>;
94                                         lantiq,output = <0>;
95                                 };
96                                 pci_out {
97                                         lantiq,groups = "gnt1";
98                                         lantiq,function = "pci";
99                                         lantiq,output = <1>;
100                                 };
101                                 pci_rst {
102                                         lantiq,pins = "io21";
103                                         lantiq,pull = <0>;
104                                         lantiq,output = <1>;
105                                 };
106                                 leds {
107                                         lantiq,pins = "io3", "io5", "io6", "io7", "io9";
108                                         lantiq,output = <1>;
109                                 };
110                         };
111                 };
112
113                 ifxhcd@E101000 {
114                         status = "okay";
115                         gpios = <&gpio 28 0>;
116                 };
117
118                 etop@E180000 {
119                         phy-mode = "rmii";
120                 };
121
122                 pci@E105400 {
123                         status = "okay";
124                         lantiq,external-clock;
125                         gpio-reset = <&gpio 21 0>;
126                 };
127
128         };
129
130 /*
131 #define ARV452CPW_SWITCH_RESET          110
132 */
133         gpio-keys-polled {
134                 compatible = "gpio-keys-polled1";
135                 #address-cells = <1>;
136                 #size-cells = <0>;
137                 poll-interval = <100>;
138                 
139                 wps {
140                         label = "wps";
141                         gpios = <&gpio 11 1>;
142                         linux,code = <0x101>;
143                 };
144                 restart {
145                         label = "restart";
146                         gpios = <&gpio 12 1>;
147                         linux,code = <0x110>;
148                 };
149                 reset {
150                         label = "reset";
151                         gpios = <&gpio 28 1>;
152                         linux,code = <0x100>;
153                 };
154         };
155
156         gpio-leds {
157                 compatible = "gpio-leds";
158                 power0 {
159                         label = "power0";
160                         gpios = <&gpio 3 1>;
161                 };
162                 dsl {
163                         label = "dsl";
164                         gpios = <&gpio 4 1>;
165                 };
166                 isdn {
167                         label = "isdn";
168                         gpios = <&gpio 5 1>;
169                 };
170                 power1 {
171                         label = "power1";
172                         gpios = <&gpio 6 1>;
173                 };
174                 wps {
175                         label = "wps";
176                         gpios = <&gpio 7 1>;
177                 };
178                 wps1 {
179                         label = "wps1";
180                         gpios = <&gpio 9 1>;
181                 };
182                 fxs1 {
183                         label = "fxs1";
184                         gpios = <&gpiomm 0 1>;
185                 };
186                 fxs2 {
187                         label = "fxs2";
188                         gpios = <&gpiomm 1 1>;
189                 };
190                 wps2 {
191                         label = "wps2";
192                         gpios = <&gpiomm 2 1>;
193                 };
194                 fxo {
195                         label = "fxo";
196                         gpios = <&gpiomm 3 1>;
197                 };
198                 voice {
199                         label = "voice";
200                         gpios = <&gpiomm 4  1>;
201                 };
202                 usb {
203                         label = "usb";
204                         gpios = <&gpiomm 5 1>;
205                 };
206                 wifi {
207                         label = "wifi";
208                         gpios = <&gpiomm 6 1>;
209                 };
210                 dsl2 {
211                         label = "dsl2";
212                         gpios = <&gpiomm 8 1>;
213                 };
214                 dsl3 {
215                         label = "dsl3";
216                         gpios = <&gpiomm 9 1>;
217                 };
218         };
219 };