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