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