89f175da1d731416f8af3d3cfc0d795407eb1bd0
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / ARV7518PW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv7518pw", "lantiq,xway", "lantiq,danube";
9 model = "Astoria Networks ARV7518PW";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power_green;
17 led-failsafe = &power_red;
18 led-running = &power_green;
19 led-upgrade = &power_green;
20
21 led-dsl = &dsl;
22 led-internet = &online_green;
23 led-usb = &led_usb;
24 led-wifi = &wifi;
25 };
26
27 memory@0 {
28 device_type = "memory";
29 reg = <0x0 0x4000000>;
30 };
31
32 gpio-keys-polled {
33 compatible = "gpio-keys-polled";
34 #address-cells = <1>;
35 #size-cells = <0>;
36 poll-interval = <100>;
37
38 rfkill {
39 label = "rfkill";
40 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RFKILL>;
42 };
43 reset {
44 label = "reset";
45 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
47 };
48 };
49
50 gpio-leds {
51 compatible = "gpio-leds";
52 power_green: power {
53 label = "arv7518pw:green:power";
54 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
55 default-state = "keep";
56 };
57 dsl: dsl {
58 label = "arv7518pw:green:dsl";
59 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
60 };
61 online_green: online {
62 label = "arv7518pw:green:internet";
63 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
64 };
65 wifi: wifi {
66 label = "arv7518pw:green:wlan";
67 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
68 };
69 power_red: power2 {
70 label = "arv7518pw:red:power";
71 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
72 };
73 online2 {
74 label = "arv7518pw:red:internet";
75 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
76 };
77 led_usb: usb {
78 label = "arv7518pw:green:usb";
79 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
80 };
81 voice {
82 label = "arv7518pw:green:voip";
83 gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
84 };
85 fxs1 {
86 label = "arv7518pw:green:phone1";
87 gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
88 };
89 fxs2 {
90 label = "arv7518pw:green:phone2";
91 gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
92 };
93 unlabeled {
94 label = "arv7518pw:amber:unlabeled";
95 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
96 };
97 wps {
98 label = "arv7518pw:amber:wps";
99 gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
100 };
101 wps2 {
102 label = "arv7518pw:green:wps";
103 gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
104 };
105 wps3 {
106 label = "arv7518pw:red:wps";
107 gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
108 };
109 };
110 };
111
112 &gpio {
113 pinctrl-names = "default";
114 pinctrl-0 = <&state_default>;
115
116 state_default: pinmux {
117 ebu {
118 lantiq,groups = "ebu cs1";
119 lantiq,function = "ebu";
120 };
121 pci_in {
122 lantiq,groups = "req1";
123 lantiq,function = "pci";
124 lantiq,open-drain = <1>;
125 lantiq,pull = <2>;
126 lantiq,output = <0>;
127 };
128 pci_out {
129 lantiq,groups = "gnt1";
130 lantiq,function = "pci";
131 lantiq,pull = <0>;
132 lantiq,output = <1>;
133 };
134 pci_rst {
135 lantiq,pins = "io21";
136 lantiq,pull = <2>;
137 lantiq,output = <1>;
138 };
139 leds {
140 lantiq,pins = "io2", "io4", "io5", "io6", "io7", "io8", "io19";
141 lantiq,output = <1>;
142 };
143 keys {
144 lantiq,pins = "io28", "io30";
145 lantiq,output = <0>;
146 lantiq,pull = <2>;
147 lantiq,open-drain = <1>;
148 };
149 };
150
151 usb_vbus: regulator-usb-vbus {
152 compatible = "regulator-fixed";
153
154 regulator-name = "USB_VBUS";
155
156 regulator-min-microvolt = <5000000>;
157 regulator-max-microvolt = <5000000>;
158
159 gpio = <&gpio 14 GPIO_ACTIVE_HIGH>;
160 enable-active-high;
161 };
162 };
163
164 &gpiomm {
165 status = "okay";
166 lantiq,shadow = <0x0>;
167 };
168
169 /*
170 #define SWITCH_RESET 13
171 */
172 &gsw {
173 phy-mode = "mii";
174 mtd-mac-address = <&boardconfig 0x16>;
175 };
176
177 &localbus {
178 nor@0 {
179 compatible = "lantiq,nor";
180 bank-width = <2>;
181 reg = <0 0x0 0x2000000>;
182 #address-cells = <1>;
183 #size-cells = <1>;
184
185 partitions {
186 compatible = "fixed-partitions";
187 #address-cells = <1>;
188 #size-cells = <1>;
189
190 partition@0 {
191 label = "uboot";
192 reg = <0x00000 0x10000>;
193 read-only;
194 };
195
196 partition@10000 {
197 label = "uboot_env";
198 reg = <0x10000 0x10000>;
199 };
200
201 partition@20000 {
202 label = "firmware";
203 reg = <0x20000 0x7d0000>;
204 };
205
206 boardconfig: partition@400000 {
207 label = "boardconfig";
208 reg = <0x7f0000 0x10000>;
209 read-only;
210 };
211 };
212 };
213 };
214
215 &pci0 {
216 status = "okay";
217 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
218 lantiq,external-clock;
219 req-mask = <0xf>;
220
221 wifi@168c,0029 {
222 compatible = "pci168c,0029";
223 reg = <0x7000 0 0 0 0>;
224 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
225 mtd-mac-address = <&boardconfig 0x16>;
226 mtd-mac-address-increment = <1>;
227 };
228 };
229
230 &usb_phy {
231 status = "okay";
232 };
233
234 &usb {
235 status = "okay";
236 vbus-supply = <&usb_vbus>;
237 };
238
239 &vmmc {
240 status = "okay";
241 };