lantiq: dts: drop falcon clock node
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / ARV752DPW22.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv752dpw22", "lantiq,xway", "lantiq,danube";
9 model = "Arcor 803";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power_red;
17 led-failsafe = &power_blue;
18 led-running = &power_red;
19 led-upgrade = &power_red;
20
21 led-dsl = &internet_red;
22 led-usb = &umts;
23 led-wifi = &wifi;
24 };
25
26 memory@0 {
27 device_type = "memory";
28 reg = <0x0 0x4000000>;
29 };
30
31 gpio-keys-polled {
32 compatible = "gpio-keys-polled";
33 poll-interval = <100>;
34
35 wps {
36 label = "wps";
37 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_WPS_BUTTON>;
39 };
40 restart {
41 label = "restart";
42 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_POWER>;
44 };
45 dsl {
46 label = "dsl";
47 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
48 linux,code = <BTN_0>;
49 };
50 reset {
51 label = "reset";
52 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
54 };
55 };
56
57 gpio-leds {
58 compatible = "gpio-leds";
59 power_blue: power1 {
60 label = "arv752dpw22:blue:power";
61 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
62 };
63 internet_red: internet {
64 label = "arv752dpw22:red:internet";
65 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
66 };
67 message {
68 label = "arv752dpw22:red:message";
69 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
70 };
71 power_red: power {
72 label = "arv752dpw22:red:power";
73 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
74 default-state = "keep";
75 };
76 voice1 {
77 label = "arv752dpw22:red:voice";
78 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
79 };
80 umts: umts {
81 label = "arv752dpw22:red:umts";
82 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
83 };
84 wifi: wifi {
85 label = "arv752dpw22:red:wifi";
86 gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
87 };
88 fxs1 {
89 label = "arv752dpw22:green:tae-n";
90 gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
91 };
92 fxs2 {
93 label = "arv752dpw22:green:tae-u";
94 gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
95 };
96 fxo {
97 label = "arv752dpw22:green:isdn";
98 gpios = <&gpiomm 7 GPIO_ACTIVE_LOW>;
99 };
100 internet2 {
101 label = "arv752dpw22:blue:internet";
102 gpios = <&gpiomm 8 GPIO_ACTIVE_LOW>;
103 };
104 voice2 {
105 label = "arv752dpw22:blue:voice";
106 gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
107 };
108 eth1 {
109 label = "arv752dpw22:green:lan1";
110 gpios = <&gpiomm 11 GPIO_ACTIVE_LOW>;
111 };
112 eth2 {
113 label = "arv752dpw22:green:lan2";
114 gpios = <&gpiomm 12 GPIO_ACTIVE_LOW>;
115 };
116 eth3 {
117 label = "arv752dpw22:green:lan3";
118 gpios = <&gpiomm 13 GPIO_ACTIVE_LOW>;
119 };
120 eth4 {
121 label = "arv752dpw22:green:lan4";
122 gpios = <&gpiomm 14 GPIO_ACTIVE_LOW>;
123 };
124 };
125
126 usb_vbus: regulator-usb-vbus {
127 compatible = "regulator-fixed";
128
129 regulator-name = "USB_VBUS";
130
131 regulator-min-microvolt = <5000000>;
132 regulator-max-microvolt = <5000000>;
133
134 gpio = <&gpiomm 0 GPIO_ACTIVE_HIGH>;
135 enable-active-high;
136 };
137 };
138
139 &gpio {
140 pinctrl-names = "default";
141 pinctrl-0 = <&state_default>;
142
143 state_default: pinmux {
144 ebu {
145 lantiq,groups = "ebu cs1";
146 lantiq,function = "ebu";
147 };
148 exin {
149 lantiq,groups = "exin1";
150 lantiq,function = "exin";
151 lantiq,pull = <2>;
152 lantiq,output = <0>;
153 };
154 pci_in {
155 lantiq,groups = "req1";
156 lantiq,function = "pci";
157 lantiq,pull = <2>;
158 lantiq,output = <0>;
159 };
160 pci_out {
161 lantiq,groups = "gnt1";
162 lantiq,function = "pci";
163 lantiq,open-drain = <1>;
164 lantiq,output = <1>;
165 };
166 pci_rst {
167 lantiq,pins = "io21";
168 lantiq,open-drain = <1>;
169 lantiq,output = <1>;
170 };
171 leds {
172 lantiq,pins = "io3", "io5", "io6", "io8";
173 lantiq,open-drain = <1>;
174 lantiq,output = <1>;
175 };
176 buttons {
177 lantiq,pins = "io11", "io12", "io13", "io28";
178 lantiq,pull = <2>;
179 lantiq,output = <0>;
180 };
181 };
182 };
183
184 &gsw {
185 phy-mode = "mii";
186 mtd-mac-address = <&boardconfig 0x16>;
187 };
188
189 &localbus {
190 nor@0 {
191 compatible = "lantiq,nor";
192 bank-width = <2>;
193 reg = <0 0x0 0x800000>;
194
195 partitions {
196 compatible = "fixed-partitions";
197 #address-cells = <1>;
198 #size-cells = <1>;
199
200 partition@0 {
201 label = "uboot";
202 reg = <0x00000 0x30000>;
203 read-only;
204 };
205
206 partition@10000 {
207 label = "uboot_env";
208 reg = <0x30000 0x10000>;
209 read-only;
210 };
211
212 partition@20000 {
213 label = "firmware";
214 reg = <0x40000 0x7b0000>;
215 };
216
217 boardconfig: partition@7f0000 {
218 label = "board_config";
219 reg = <0x7f0000 0x10000>;
220 read-only;
221 };
222 };
223 };
224
225 gpiomm: gpiomm@1 {
226 compatible = "lantiq,gpio-mm";
227 reg = <1 0x0 0x10 >;
228 #address-cells = <1>;
229 #size-cells = <1>;
230 #gpio-cells = <2>;
231 gpio-controller;
232 lantiq,shadow = <3>;
233 };
234 };
235
236 &pci0 {
237 status = "okay";
238 lantiq,external-clock;
239 interrupt-map = <
240 0x7000 0 0 1 &icu0 30
241 0x7800 0 0 1 &icu0 135
242 0x7800 0 0 2 &icu0 135
243 0x7800 0 0 3 &icu0 135
244 >;
245 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
246 req-mask = <0x3>;
247
248 wifi@1814,3592 {
249 compatible = "pci1814,3592";
250 reg = <0x7000 0 0 0 0>;
251 ralink,mtd-eeprom = <&boardconfig 0x410>;
252 ralink,mtd-eeprom-swap;
253 mtd-mac-address = <&boardconfig 0x16>;
254 };
255 };
256
257 &usb_phy {
258 status = "okay";
259 };
260
261 &usb {
262 status = "okay";
263 vbus-supply = <&usb_vbus>;
264 };
265
266 &vmmc {
267 status = "okay";
268 gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
269 };