152b7af992d25dfacd100c24653cad474f979299
[openwrt/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 partitions {
44 compatible = "fixed-partitions";
45 #address-cells = <1>;
46 #size-cells = <1>;
47
48 partition@0 {
49 label = "uboot";
50 reg = <0x00000 0x10000>;
51 read-only;
52 };
53
54 partition@10000 {
55 label = "uboot_env";
56 reg = <0x10000 0x10000>;
57 read-only;
58 };
59
60 partition@20000 {
61 label = "firmware";
62 reg = <0x20000 0x3d0000>;
63 };
64
65 boardconfig: partition@3f0000 {
66 label = "boardconfig";
67 reg = <0x3f0000 0x10000>;
68 read-only;
69 };
70 };
71 };
72
73 ath5k_eep {
74 compatible = "ath5k,eeprom";
75 ath,eep-flash = <&boardconfig 0x400>;
76 ath,mac-offset = <0x0>;
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 mtd-mac-address = <&boardconfig 0x16>;
131 };
132
133 pci@E105400 {
134 status = "okay";
135 lantiq,external-clock;
136 gpio-reset = <&gpio 21 0>;
137 };
138
139 };
140
141 /*
142 #define ARV452CPW_SWITCH_RESET 110
143 */
144 gpio-keys-polled {
145 compatible = "gpio-keys-polled1";
146 #address-cells = <1>;
147 #size-cells = <0>;
148 poll-interval = <100>;
149
150 rfkill {
151 label = "rfkill";
152 gpios = <&gpio 11 1>;
153 linux,code = <0xf7>;
154 };
155 wps {
156 label = "wps";
157 gpios = <&gpio 29 1>;
158 linux,code = <0x101>;
159 };
160 reset {
161 label = "reset";
162 gpios = <&gpio 30 1>;
163 linux,code = <0x198>;
164 };
165 };
166
167 gpio-leds {
168 compatible = "gpio-leds";
169 power_blue: power0 {
170 label = "arv452cqw:blue:power";
171 gpios = <&gpio 3 1>;
172 default-state = "keep";
173 };
174 dsl_blue: dsl {
175 label = "arv452cqw:blue:dsl";
176 gpios = <&gpio 4 1>;
177 };
178 isdn {
179 label = "arv452cqw:blue:isdn";
180 gpios = <&gpio 5 1>;
181 };
182 power_red: power1 {
183 label = "arv452cqw:red:power";
184 gpios = <&gpio 6 1>;
185 };
186 wps {
187 label = "arv452cqw:blue:wps";
188 gpios = <&gpio 7 1>;
189 };
190 wps1 {
191 label = "arv452cqw:yellow:wps";
192 gpios = <&gpio 9 1>;
193 };
194 fxs1 {
195 label = "arv452cqw:blue:telefon1";
196 gpios = <&gpiomm 0 1>;
197 };
198 fxs2 {
199 label = "arv452cqw:blue:telefon2";
200 gpios = <&gpiomm 1 1>;
201 };
202 wps2 {
203 label = "arv452cqw:red:wps";
204 gpios = <&gpiomm 2 1>;
205 };
206 fxo {
207 label = "arv452cqw:blue:line";
208 gpios = <&gpiomm 3 1>;
209 };
210 voice {
211 label = "arv452cqw:blue:sprache";
212 gpios = <&gpiomm 4 1>;
213 };
214 usb: usb {
215 label = "arv452cqw:blue:usb";
216 gpios = <&gpiomm 5 1>;
217 };
218 wifi: wifi {
219 label = "arv452cqw:blue:wlan";
220 gpios = <&gpiomm 6 1>;
221 };
222 /*
223 internet blue and internet red are missing
224 dsl2 and dsl3 are not referenced in manual
225 */
226 dsl2 {
227 label = "arv452cqw:yellow:dsl";
228 gpios = <&gpiomm 8 1>;
229 };
230 dsl3 {
231 label = "arv452cqw:red:dsl";
232 gpios = <&gpiomm 9 1>;
233 };
234 };
235 };