lantiq: dts: move memory node to board dts
[openwrt/staging/dedeckeh.git] / target / linux / lantiq / files / arch / mips / boot / dts / ARV4510PW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv4510pw", "lantiq,xway", "lantiq,danube";
9 model = "Wippies, Elisa";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power;
17 led-failsafe = &power2;
18 led-running = &power;
19 led-upgrade = &power;
20
21 led-dsl = &adsl;
22 led-internet = &internet;
23 led-usb = &led_usb;
24 led-usb2 = &led_usb2;
25 led-wifi = &wifi;
26 };
27
28 memory@0 {
29 device_type = "memory";
30 reg = <0x0 0x2000000>;
31 };
32
33 gpio-keys-polled {
34 compatible = "gpio-keys-polled";
35 #address-cells = <1>;
36 #size-cells = <0>;
37 poll-interval = <100>;
38
39 wps {
40 label = "wps";
41 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WPS_BUTTON>;
43 };
44 reset {
45 label = "reset";
46 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
48 };
49 };
50
51 gpio-leds {
52 compatible = "gpio-leds";
53 power: power {
54 label = "power";
55 gpios = <&gpios 21 GPIO_ACTIVE_HIGH>;
56 default-state = "keep";
57 };
58 power2: power2 {
59 label = "power2";
60 gpios = <&gpios 20 GPIO_ACTIVE_HIGH>;
61 };
62 lan1 {
63 label = "lan1";
64 gpios = <&gpios 19 GPIO_ACTIVE_HIGH>;
65 };
66 lan2 {
67 label = "lan2";
68 gpios = <&gpios 18 GPIO_ACTIVE_HIGH>;
69 };
70 lan3 {
71 label = "lan3";
72 gpios = <&gpios 17 GPIO_ACTIVE_HIGH>;
73 };
74 lan4 {
75 label = "lan4";
76 gpios = <&gpios 16 GPIO_ACTIVE_HIGH>;
77 };
78 wifi: wifi {
79 label = "wifi";
80 gpios = <&gpios 15 GPIO_ACTIVE_HIGH>;
81 };
82 adsl: adsl {
83 label = "adsl";
84 gpios = <&gpios 14 GPIO_ACTIVE_HIGH>;
85 };
86 internet: internet {
87 label = "internet";
88 gpios = <&gpios 13 GPIO_ACTIVE_HIGH>;
89 };
90 internet2 {
91 label = "internet2";
92 gpios = <&gpios 12 GPIO_ACTIVE_HIGH>;
93 };
94 voip {
95 label = "voip";
96 gpios = <&gpios 11 GPIO_ACTIVE_HIGH>;
97 };
98 phone {
99 label = "phone";
100 gpios = <&gpios 10 GPIO_ACTIVE_HIGH>;
101 };
102 phone2 {
103 label = "phone2";
104 gpios = <&gpios 9 GPIO_ACTIVE_HIGH>;
105 };
106 led_usb: usb {
107 label = "usb";
108 gpios = <&gpios 8 GPIO_ACTIVE_HIGH>;
109 };
110 led_usb2: usb2 {
111 label = "usb2";
112 gpios = <&gpios 7 GPIO_ACTIVE_HIGH>;
113 };
114 usb3 {
115 label = "usb3";
116 gpios = <&gpios 6 GPIO_ACTIVE_HIGH>;
117 };
118 unlabeled {
119 label = "unlabeled";
120 gpios = <&gpios 5 GPIO_ACTIVE_HIGH>;
121 };
122 };
123 };
124
125 &gpio {
126 pinctrl-names = "default";
127 pinctrl-0 = <&state_default>;
128
129 state_default: pinmux {
130 ebu {
131 lantiq,groups = "ebu a23";
132 lantiq,function = "ebu";
133 lantiq,open-drain = <0>;
134 lantiq,output = <1>;
135 };
136 stp {
137 lantiq,groups = "stp";
138 lantiq,function = "stp";
139 lantiq,open-drain = <0>;
140 lantiq,output = <1>;
141 };
142 exin {
143 lantiq,groups = "exin1", "exin2";
144 lantiq,function = "exin";
145 lantiq,output = <0>;
146 };
147 pci_in {
148 lantiq,groups = "req1", "req2";
149 lantiq,function = "pci";
150 lantiq,output = <0>;
151 };
152 pci_out {
153 lantiq,groups = "gnt1", "gnt2";
154 lantiq,function = "pci";
155 lantiq,open-drain = <0>;
156 lantiq,pull = <0>;
157 lantiq,output = <1>;
158 };
159 pci_rst {
160 lantiq,pins = "io21";
161 lantiq,open-drain = <0>;
162 lantiq,output = <1>;
163 };
164 buttons {
165 lantiq,pins = "io3", "io14";
166 lantiq,pull = <2>;
167 lantiq,output = <0>;
168 };
169 };
170 };
171
172 &gpios {
173 status = "okay";
174 lantiq,groups = <0x7>;
175 };
176
177 &gsw {
178 phy-mode = "rmii";
179 };
180
181 &localbus {
182 nor@0 {
183 compatible = "lantiq,nor";
184 bank-width = <2>;
185 reg = <0 0x0 0x1000000>;
186 #address-cells = <1>;
187 #size-cells = <1>;
188
189 lantiq,noxip;
190
191 partitions {
192 compatible = "fixed-partitions";
193 #address-cells = <1>;
194 #size-cells = <1>;
195
196 partition@0 {
197 label = "uboot";
198 reg = <0x00000 0x40000>;
199 read-only;
200 };
201
202 partition@40000 {
203 label = "uboot_env";
204 reg = <0x40000 0x20000>;
205 read-only;
206 };
207
208 partition@60000 {
209 label = "firmware";
210 reg = <0x60000 0xfa0000>;
211 };
212 };
213 };
214 };
215
216 &pci0 {
217 status = "okay";
218 lantiq,external-clock;
219 interrupt-map = <
220 0x6000 0 0 1 &icu0 135
221 0x7800 0 0 1 &icu0 66
222 0x7800 0 0 2 &icu0 66
223 0x7800 0 0 3 &icu0 66
224 >;
225 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
226 req-mask = <0x7>;
227 };
228
229 &vmmc {
230 status = "okay";
231 };