lantiq: dts: drop falcon clock node
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / ARV4520PW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv4520pw", "lantiq,xway", "lantiq,danube";
9 model = "Easybox 800, WAV-281";
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;
22 led-internet = &internet_blue;
23 led-usb = &led_usb;
24 led-wifi = &wifi;
25 };
26
27 memory@0 {
28 device_type = "memory";
29 reg = <0x0 0x2000000>;
30 };
31
32 gpio-keys-polled {
33 compatible = "gpio-keys-polled";
34 poll-interval = <100>;
35
36 rfkill {
37 label = "wps";
38 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_WPS_BUTTON>;
40 };
41 reset {
42 label = "reset";
43 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
45 };
46 };
47
48 gpio-leds {
49 compatible = "gpio-leds";
50
51 power_blue: power {
52 label = "arv4520pw:blue:power";
53 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
54 default-state = "keep";
55 };
56 dsl: dsl {
57 label = "arv4520pw:blue:dsl";
58 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
59 };
60 internet_blue: internet {
61 label = "arv4520pw:blue:internet";
62 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
63 };
64 power_red: power2 {
65 label = "arv4520pw:red:power";
66 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
67 };
68 wps {
69 label = "arv4520pw:yellow:wps";
70 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
71 };
72 wps2 {
73 label = "arv4520pw:red:wps";
74 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
75 };
76 /*
77 wps green is missing
78 */
79 fxs1 {
80 label = "arv4520pw:blue:telefon1";
81 gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
82 };
83 fxs2 {
84 label = "arv4520pw:blue:telefon2";
85 gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
86 };
87 isdn {
88 label = "arv4520pw:blue:isdn";
89 gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
90 };
91 fxo {
92 label = "arv4520pw:blue:line";
93 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
94 };
95 voice {
96 label = "arv4520pw:blue:sprache";
97 gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
98 };
99 led_usb: usb {
100 label = "arv4520pw:blue:usb";
101 gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
102 };
103 wifi: wifi {
104 label = "arv4520pw:blue:wifi";
105 gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
106 };
107 internet2 {
108 label = "arv4520pw:red:internet";
109 gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
110 };
111 /*
112 info is missing
113 */
114 };
115
116 usb_vbus: regulator-usb-vbus {
117 compatible = "regulator-fixed";
118
119 regulator-name = "USB_VBUS";
120
121 regulator-min-microvolt = <5000000>;
122 regulator-max-microvolt = <5000000>;
123
124 gpio = <&gpio 28 GPIO_ACTIVE_HIGH>;
125 enable-active-high;
126 };
127 };
128
129 &gpio {
130 pinctrl-names = "default";
131 pinctrl-0 = <&state_default>;
132
133 state_default: pinmux {
134 ebu {
135 lantiq,groups = "ebu cs1";
136 lantiq,function = "ebu";
137 };
138 pci_in {
139 lantiq,groups = "req1";
140 lantiq,function = "pci";
141 lantiq,open-drain = <1>;
142 lantiq,pull = <2>;
143 lantiq,output = <0>;
144 };
145 pci_out {
146 lantiq,groups = "gnt1";
147 lantiq,function = "pci";
148 lantiq,output = <1>;
149 };
150 pci_rst {
151 lantiq,pins = "io21";
152 lantiq,open-drain = <0>;
153 lantiq,pull = <0>;
154 };
155 };
156 };
157
158 &gsw {
159 /* gpiomm 10 - switch */
160 phy-mode = "rmii";
161 mtd-mac-address = <&boardconfig 0x16>;
162 };
163
164 &localbus {
165 nor@0 {
166 compatible = "lantiq,nor";
167 bank-width = <2>;
168 reg = <0 0x0 0x800000>;
169
170 partitions {
171 compatible = "fixed-partitions";
172 #address-cells = <1>;
173 #size-cells = <1>;
174
175 partition@0 {
176 label = "uboot";
177 reg = <0x00000 0x20000>;
178 read-only;
179 };
180
181 partition@20000 {
182 label = "uboot_env";
183 reg = <0x20000 0x10000>;
184 read-only;
185 };
186
187 partition@30000 {
188 label = "firmware";
189 reg = <0x30000 0x3c0000>;
190 };
191
192 boardconfig: partition@7f0000 {
193 label = "boardconfig";
194 reg = <0x3f0000 0x10000>;
195 read-only;
196 };
197 };
198 };
199
200 gpiomm: gpiomm@1 {
201 compatible = "lantiq,gpio-mm";
202 reg = <1 0x0 0x10 >;
203 #address-cells = <1>;
204 #size-cells = <1>;
205 #gpio-cells = <2>;
206 gpio-controller;
207 lantiq,shadow = <0x400>;
208 };
209 };
210
211 &pci0 {
212 status = "okay";
213 lantiq,external-clock;
214 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
215 };
216
217 &usb_phy {
218 status = "okay";
219 };
220
221 &usb {
222 status = "okay";
223 vbus-supply = <&usb_vbus>;
224 };
225
226 &vmmc {
227 status = "okay";
228 gpios = <&gpio 31 GPIO_ACTIVE_HIGH
229 &gpiomm 7 GPIO_ACTIVE_HIGH>;
230 };