lantiq: dts: drop falcon clock node
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / ARV752DPW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv752dpw", "lantiq,xway", "lantiq,danube";
9 model = "Arcor 802";
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 30 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
54 };
55 };
56
57 gpio-leds {
58 compatible = "gpio-leds";
59 power_blue: power1 {
60 label = "arv752dpw:blue:power";
61 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
62 };
63 internet_red: internet {
64 label = "arv752dpw:red:internet";
65 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
66 };
67 message {
68 label = "arv752dpw:red:message";
69 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
70 };
71 power_red: power {
72 label = "arv752dpw:red:power";
73 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
74 default-state = "keep";
75 };
76 voice1 {
77 label = "arv752dpw:red:voice";
78 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
79 };
80 umts: umts {
81 label = "arv752dpw:red:umts";
82 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
83 };
84 wifi: wifi {
85 label = "arv752dpw:red:wifi";
86 gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
87 };
88 fxs1 {
89 label = "arv752dpw:green:tae-n";
90 gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
91 };
92 fxs2 {
93 label = "arv752dpw:green:tae-u";
94 gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
95 };
96 fxo {
97 label = "arv752dpw:green:isdn";
98 gpios = <&gpiomm 7 GPIO_ACTIVE_LOW>;
99 };
100 internet2 {
101 label = "arv752dpw:blue:internet";
102 gpios = <&gpiomm 8 GPIO_ACTIVE_LOW>;
103 };
104 voice2 {
105 label = "arv752dpw:blue:voice";
106 gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
107 };
108 };
109 };
110
111 &gpio {
112 pinctrl-names = "default";
113 pinctrl-0 = <&state_default>;
114
115 state_default: pinmux {
116 ebu {
117 lantiq,groups = "ebu cs1";
118 lantiq,function = "ebu";
119 };
120 exin {
121 lantiq,groups = "exin1";
122 lantiq,function = "exin";
123 lantiq,pull = <2>;
124 lantiq,output = <0>;
125 };
126 pci_in {
127 lantiq,groups = "req2", "req1";
128 lantiq,function = "pci";
129 lantiq,open-drain = <1>;
130 lantiq,pull = <2>;
131 lantiq,output = <0>;
132 };
133 pci_out {
134 lantiq,groups = "gnt1";
135 lantiq,function = "pci";
136 lantiq,output = <1>;
137 };
138 pci_rst {
139 lantiq,pins = "io21";
140 lantiq,pull = <2>;
141 lantiq,output = <1>;
142 };
143 leds {
144 lantiq,pins = "io3", "io5", "io6", "io8";
145 lantiq,output = <1>;
146 lantiq,pull = <0>;
147 };
148 keys {
149 lantiq,pins = "io11", "io12", "io13", "io28";
150 lantiq,output = <0>;
151 lantiq,pull = <2>;
152 lantiq,open-drain = <1>;
153 };
154 };
155
156 usb_vbus: regulator-usb-vbus {
157 compatible = "regulator-fixed";
158
159 regulator-name = "USB_VBUS";
160
161 regulator-min-microvolt = <5000000>;
162 regulator-max-microvolt = <5000000>;
163
164 gpio = <&gpiomm 0 GPIO_ACTIVE_HIGH>;
165 enable-active-high;
166 };
167 };
168
169 &gsw {
170 phy-mode = "rmii";
171 mtd-mac-address = <&boardconfig 0x16>;
172 };
173
174 &localbus {
175 nor@0 {
176 compatible = "lantiq,nor";
177 bank-width = <2>;
178 reg = <0 0x0 0x800000>;
179
180 partitions {
181 compatible = "fixed-partitions";
182 #address-cells = <1>;
183 #size-cells = <1>;
184
185 partition@0 {
186 label = "uboot";
187 reg = <0x00000 0x10000>;
188 read-only;
189 };
190
191 partition@10000 {
192 label = "uboot_env";
193 reg = <0x10000 0x10000>;
194 read-only;
195 };
196
197 partition@20000 {
198 label = "firmware";
199 reg = <0x20000 0x7d0000>;
200 };
201
202 boardconfig: partition@7f0000 {
203 label = "board_config";
204 reg = <0x7f0000 0x10000>;
205 read-only;
206 };
207 };
208 };
209
210 gpiomm: gpiomm@1 {
211 compatible = "lantiq,gpio-mm";
212 reg = <1 0x0 0x10 >;
213 #address-cells = <1>;
214 #size-cells = <1>;
215 #gpio-cells = <2>;
216 gpio-controller;
217 lantiq,shadow = <0x3>;
218 };
219 };
220
221 &pci0 {
222 status = "okay";
223 lantiq,external-clock;
224 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
225 interrupt-map = <0x7000 0 0 1 &icu0 135>;
226 req-mask = <0x3>;
227
228 wifi@1814,0601 {
229 compatible = "pci1814,0601";
230 reg = <0x7000 0 0 0 0>;
231 ralink,mtd-eeprom = <&boardconfig 0x410>;
232 ralink,mtd-eeprom-swap;
233 };
234 };
235
236 &usb_phy {
237 status = "okay";
238 };
239
240 &usb {
241 status = "okay";
242 vbus-supply = <&usb_vbus>;
243 };
244
245 &vmmc {
246 status = "okay";
247 gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
248 };