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