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