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