lantiq: kernel 4.14: cleanup dts files
[openwrt/openwrt.git] / target / linux / lantiq / files-4.14 / 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
20 led-dsl = &adsl;
21 led-internet = &internet;
22 led-usb = &led_usb;
23 led-usb2 = &led_usb2;
24 led-wifi = &wifi;
25 };
26
27 memory@0 {
28 reg = <0x0 0x2000000>;
29 };
30
31 gpio-keys-polled {
32 compatible = "gpio-keys-polled";
33 #address-cells = <1>;
34 #size-cells = <0>;
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 gpio-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 stp {
135 lantiq,groups = "stp";
136 lantiq,function = "stp";
137 lantiq,open-drain = <0>;
138 lantiq,output = <1>;
139 };
140 exin {
141 lantiq,groups = "exin1", "exin2";
142 lantiq,function = "exin";
143 lantiq,output = <0>;
144 };
145 pci_in {
146 lantiq,groups = "req1", "req2";
147 lantiq,function = "pci";
148 lantiq,output = <0>;
149 };
150 pci_out {
151 lantiq,groups = "gnt1", "gnt2";
152 lantiq,function = "pci";
153 lantiq,open-drain = <0>;
154 lantiq,pull = <0>;
155 lantiq,output = <1>;
156 };
157 pci_rst {
158 lantiq,pins = "io21";
159 lantiq,open-drain = <0>;
160 lantiq,output = <1>;
161 };
162 buttons {
163 lantiq,pins = "io3", "io14";
164 lantiq,pull = <2>;
165 lantiq,output = <0>;
166 };
167 };
168 };
169
170 &gpios {
171 status = "okay";
172 lantiq,groups = <0x7>;
173 };
174
175 &gsw {
176 phy-mode = "rmii";
177 };
178
179 &localbus {
180 nor@0 {
181 compatible = "lantiq,nor";
182 bank-width = <2>;
183 reg = <0 0x0 0x1000000>;
184 #address-cells = <1>;
185 #size-cells = <1>;
186
187 lantiq,noxip;
188
189 partitions {
190 compatible = "fixed-partitions";
191 #address-cells = <1>;
192 #size-cells = <1>;
193
194 partition@0 {
195 label = "uboot";
196 reg = <0x00000 0x40000>;
197 read-only;
198 };
199
200 partition@40000 {
201 label = "uboot_env";
202 reg = <0x40000 0x20000>;
203 read-only;
204 };
205
206 partition@60000 {
207 label = "firmware";
208 reg = <0x60000 0xfa0000>;
209 };
210 };
211 };
212 };
213
214 &pci0 {
215 status = "okay";
216 lantiq,external-clock;
217 interrupt-map = <
218 0x6000 0 0 1 &icu0 135
219 0x7800 0 0 1 &icu0 66
220 0x7800 0 0 2 &icu0 66
221 0x7800 0 0 3 &icu0 66
222 >;
223 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
224 req-mask = <0x7>;
225 };
226
227 &vmmc {
228 status = "okay";
229 };