9a1c8b1bcb218d80a6bc67eb2a9929bf90fa1bfc
[openwrt/staging/hauke.git] / target / linux / lantiq / files / 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 = "blue:power";
51 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
52 default-state = "keep";
53 };
54 dsl: dsl {
55 label = "blue:dsl";
56 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
57 };
58 internet_blue: internet {
59 label = "blue:internet";
60 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
61 };
62 power_red: power2 {
63 label = "red:power";
64 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
65 };
66 wps {
67 label = "yellow:wps";
68 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
69 };
70 wps2 {
71 label = "red:wps";
72 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
73 };
74 /*
75 wps green is missing
76 */
77 fxs1 {
78 label = "blue:telefon1";
79 gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
80 };
81 fxs2 {
82 label = "blue:telefon2";
83 gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
84 };
85 isdn {
86 label = "blue:isdn";
87 gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
88 };
89 fxo {
90 label = "blue:line";
91 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
92 };
93 voice {
94 label = "blue:sprache";
95 gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
96 };
97 led_usb: usb {
98 label = "blue:usb";
99 gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
100 };
101 wifi: wifi {
102 label = "blue:wifi";
103 gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
104 };
105 internet2 {
106 label = "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 nvmem-cells = <&macaddr_boardconfig_16>;
148 nvmem-cell-names = "mac-address";
149 };
150
151 &localbus {
152 flash@0 {
153 compatible = "lantiq,nor";
154 bank-width = <2>;
155 reg = <0 0x0 0x800000>;
156
157 partitions {
158 compatible = "fixed-partitions";
159 #address-cells = <1>;
160 #size-cells = <1>;
161
162 partition@0 {
163 label = "uboot";
164 reg = <0x00000 0x20000>;
165 read-only;
166 };
167
168 partition@20000 {
169 label = "u-boot-env";
170 reg = <0x20000 0x10000>;
171 read-only;
172 };
173
174 partition@30000 {
175 label = "firmware";
176 reg = <0x30000 0x3c0000>;
177 };
178
179 boardconfig: partition@7f0000 {
180 label = "boardconfig";
181 reg = <0x3f0000 0x10000>;
182 read-only;
183 };
184 };
185 };
186
187 gpiomm: gpio@1 {
188 compatible = "lantiq,gpio-mm";
189 reg = <1 0x0 0x10 >;
190 #address-cells = <1>;
191 #size-cells = <1>;
192 #gpio-cells = <2>;
193 gpio-controller;
194 lantiq,shadow = <0x400>;
195 };
196 };
197
198 &pci0 {
199 status = "okay";
200
201 pinctrl-0 = <&pci_gnt1_pins>, <&pci_req1_pins>;
202 pinctrl-names = "default";
203
204 lantiq,external-clock;
205 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
206 };
207
208 &usb_phy {
209 status = "okay";
210 };
211
212 &usb {
213 status = "okay";
214 vbus-supply = <&usb_vbus>;
215 };
216
217 &vmmc {
218 status = "okay";
219 gpios = <&gpio 31 GPIO_ACTIVE_HIGH
220 &gpiomm 7 GPIO_ACTIVE_HIGH>;
221 };
222
223 &boardconfig {
224 compatible = "nvmem-cells";
225 #address-cells = <1>;
226 #size-cells = <1>;
227
228 macaddr_boardconfig_16: macaddr@16 {
229 reg = <0x16 0x6>;
230 };
231 };