ae0d27a0426936d4af7ab1cdc6e4174315cb6867
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-5.4 / 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 = "arv7518pw:green:power";
52 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
53 default-state = "keep";
54 };
55 dsl: dsl {
56 label = "arv7518pw:green:dsl";
57 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
58 };
59 online_green: online {
60 label = "arv7518pw:green:internet";
61 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
62 };
63 wifi: wifi {
64 label = "arv7518pw:green:wlan";
65 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
66 };
67 power_red: power2 {
68 label = "arv7518pw:red:power";
69 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
70 };
71 online2 {
72 label = "arv7518pw:red:internet";
73 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
74 };
75 led_usb: usb {
76 label = "arv7518pw:green:usb";
77 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
78 };
79 voice {
80 label = "arv7518pw:green:voip";
81 gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
82 };
83 fxs1 {
84 label = "arv7518pw:green:phone1";
85 gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
86 };
87 fxs2 {
88 label = "arv7518pw:green:phone2";
89 gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
90 };
91 unlabeled {
92 label = "arv7518pw:amber:unlabeled";
93 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
94 };
95 wps {
96 label = "arv7518pw:amber:wps";
97 gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
98 };
99 wps2 {
100 label = "arv7518pw:green:wps";
101 gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
102 };
103 wps3 {
104 label = "arv7518pw:red:wps";
105 gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
106 };
107 };
108 };
109
110 &gpio {
111 pinctrl-names = "default";
112 pinctrl-0 = <&state_default>;
113
114 state_default: pinmux {
115 ebu {
116 lantiq,groups = "ebu cs1";
117 lantiq,function = "ebu";
118 };
119 pci_rst {
120 lantiq,pins = "io21";
121 lantiq,pull = <2>;
122 lantiq,output = <1>;
123 };
124 leds {
125 lantiq,pins = "io2", "io4", "io5", "io6", "io7", "io8", "io19";
126 lantiq,output = <1>;
127 };
128 keys {
129 lantiq,pins = "io28", "io30";
130 lantiq,output = <0>;
131 lantiq,pull = <2>;
132 lantiq,open-drain = <1>;
133 };
134 };
135
136 usb_vbus: regulator-usb-vbus {
137 compatible = "regulator-fixed";
138
139 regulator-name = "USB_VBUS";
140
141 regulator-min-microvolt = <5000000>;
142 regulator-max-microvolt = <5000000>;
143
144 gpio = <&gpio 14 GPIO_ACTIVE_HIGH>;
145 enable-active-high;
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 = "uboot_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 };