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