3c7539651dde7129563d430266ab45809950e86d
[openwrt/staging/stintel.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 mac_addr {
74 compatible = "lantiq,eth-mac";
75 reg = <0 0x3f0016 0x6>;
76 };
77
78 ath5k_eep {
79 compatible = "ath5k,eeprom";
80 ath,eep-flash = <&boardconfig 0x400>;
81 ath,mac-offset = <0x0>;
82 ath,eep-swap;
83 };
84 gpiomm: gpiomm@4000000 {
85 compatible = "lantiq,gpio-mm";
86 reg = <1 0x0 0x10>;
87 #address-cells = <1>;
88 #size-cells = <1>;
89 #gpio-cells = <2>;
90 gpio-controller;
91 lantiq,shadow = <0x77f>;
92 };
93 };
94
95 gpio: pinmux@E100B10 {
96 pinctrl-names = "default";
97 pinctrl-0 = <&state_default>;
98
99 state_default: pinmux {
100 ebu {
101 lantiq,groups = "ebu cs1";
102 lantiq,function = "ebu";
103 };
104 pci_in {
105 lantiq,groups = "req1";
106 lantiq,function = "pci";
107 lantiq,open-drain = <1>;
108 lantiq,pull = <2>;
109 lantiq,output = <0>;
110 };
111 pci_out {
112 lantiq,groups = "gnt1";
113 lantiq,function = "pci";
114 lantiq,output = <1>;
115 };
116 pci_rst {
117 lantiq,pins = "io21";
118 lantiq,pull = <0>;
119 lantiq,output = <1>;
120 };
121 leds {
122 lantiq,pins = "io3", "io5", "io6", "io7", "io9";
123 lantiq,output = <1>;
124 };
125 };
126 };
127
128 ifxhcd@E101000 {
129 status = "okay";
130 gpios = <&gpio 28 0>;
131 };
132
133 etop@E180000 {
134 phy-mode = "rmii";
135 };
136
137 pci@E105400 {
138 status = "okay";
139 lantiq,external-clock;
140 gpio-reset = <&gpio 21 0>;
141 };
142
143 };
144
145 /*
146 #define ARV452CPW_SWITCH_RESET 110
147 */
148 gpio-keys-polled {
149 compatible = "gpio-keys-polled1";
150 #address-cells = <1>;
151 #size-cells = <0>;
152 poll-interval = <100>;
153
154 rfkill {
155 label = "rfkill";
156 gpios = <&gpio 11 1>;
157 linux,code = <0xf7>;
158 };
159 wps {
160 label = "wps";
161 gpios = <&gpio 29 1>;
162 linux,code = <0x101>;
163 };
164 reset {
165 label = "reset";
166 gpios = <&gpio 30 1>;
167 linux,code = <0x198>;
168 };
169 };
170
171 gpio-leds {
172 compatible = "gpio-leds";
173 power_blue: power0 {
174 label = "arv452cqw:blue:power";
175 gpios = <&gpio 3 1>;
176 default-state = "keep";
177 };
178 dsl_blue: dsl {
179 label = "arv452cqw:blue:dsl";
180 gpios = <&gpio 4 1>;
181 };
182 isdn {
183 label = "arv452cqw:blue:isdn";
184 gpios = <&gpio 5 1>;
185 };
186 power_red: power1 {
187 label = "arv452cqw:red:power";
188 gpios = <&gpio 6 1>;
189 };
190 wps {
191 label = "arv452cqw:blue:wps";
192 gpios = <&gpio 7 1>;
193 };
194 wps1 {
195 label = "arv452cqw:yellow:wps";
196 gpios = <&gpio 9 1>;
197 };
198 fxs1 {
199 label = "arv452cqw:blue:telefon1";
200 gpios = <&gpiomm 0 1>;
201 };
202 fxs2 {
203 label = "arv452cqw:blue:telefon2";
204 gpios = <&gpiomm 1 1>;
205 };
206 wps2 {
207 label = "arv452cqw:red:wps";
208 gpios = <&gpiomm 2 1>;
209 };
210 fxo {
211 label = "arv452cqw:blue:line";
212 gpios = <&gpiomm 3 1>;
213 };
214 voice {
215 label = "arv452cqw:blue:sprache";
216 gpios = <&gpiomm 4 1>;
217 };
218 usb: usb {
219 label = "arv452cqw:blue:usb";
220 gpios = <&gpiomm 5 1>;
221 };
222 wifi: wifi {
223 label = "arv452cqw:blue:wlan";
224 gpios = <&gpiomm 6 1>;
225 };
226 /*
227 internet blue and internet red are missing
228 dsl2 and dsl3 are not referenced in manual
229 */
230 dsl2 {
231 label = "arv452cqw:yellow:dsl";
232 gpios = <&gpiomm 8 1>;
233 };
234 dsl3 {
235 label = "arv452cqw:red:dsl";
236 gpios = <&gpiomm 9 1>;
237 };
238 };
239 };