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