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