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