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