4710a0148680ab918efe834c0c442149500a5ca1
[openwrt/staging/wigyori.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
12 aliases {
13 led-boot = &power_blue;
14 led-failsafe = &power_red;
15 led-running = &power_blue;
16
17 led-internet = &dsl_blue;
18 led-usb = &usb;
19 led-wifi = &wifi;
20 };
21
22 memory@0 {
23 reg = <0x0 0x2000000>;
24 };
25
26 sram@1F000000 {
27 vmmc@107000 {
28 status = "okay";
29 gpios = <&gpio 31 GPIO_ACTIVE_HIGH
30 &gpiomm 7 GPIO_ACTIVE_HIGH>;
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 GPIO_ACTIVE_HIGH>;
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 GPIO_ACTIVE_HIGH>;
137 };
138 };
139
140 /*
141 #define ARV452CPW_SWITCH_RESET 110
142 */
143 gpio-keys-polled {
144 compatible = "gpio-keys-polled";
145 #address-cells = <1>;
146 #size-cells = <0>;
147 poll-interval = <100>;
148
149 rfkill {
150 label = "rfkill";
151 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
152 linux,code = <KEY_RFKILL>;
153 };
154 wps {
155 label = "wps";
156 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
157 linux,code = <BTN_1>;
158 };
159 reset {
160 label = "reset";
161 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
162 linux,code = <KEY_RESTART>;
163 };
164 };
165
166 gpio-leds {
167 compatible = "gpio-leds";
168 power_blue: power0 {
169 label = "arv452cqw:blue:power";
170 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
171 default-state = "keep";
172 };
173 dsl_blue: dsl {
174 label = "arv452cqw:blue:dsl";
175 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
176 };
177 isdn {
178 label = "arv452cqw:blue:isdn";
179 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
180 };
181 power_red: power1 {
182 label = "arv452cqw:red:power";
183 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
184 };
185 wps {
186 label = "arv452cqw:blue:wps";
187 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
188 };
189 wps1 {
190 label = "arv452cqw:yellow:wps";
191 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
192 };
193 fxs1 {
194 label = "arv452cqw:blue:telefon1";
195 gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
196 };
197 fxs2 {
198 label = "arv452cqw:blue:telefon2";
199 gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
200 };
201 wps2 {
202 label = "arv452cqw:red:wps";
203 gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
204 };
205 fxo {
206 label = "arv452cqw:blue:line";
207 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
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 GPIO_ACTIVE_LOW>;
216 };
217 wifi: wifi {
218 label = "arv452cqw:blue:wlan";
219 gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
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 GPIO_ACTIVE_LOW>;
228 };
229 dsl3 {
230 label = "arv452cqw:red:dsl";
231 gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
232 };
233 };
234 };