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_arv4519pw.dts
1 #include "danube.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 compatible = "arcadyan,arv4519pw", "lantiq,xway", "lantiq,danube";
7 model = "Vodafone Netfaster IAD 2, Pirelli P.RG A4201G";
8
9 chosen {
10 bootargs = "console=ttyLTQ0,115200";
11 };
12
13 aliases {
14 led-boot = &power_green;
15 led-failsafe = &power_red;
16 led-running = &power_green;
17 led-upgrade = &power_green;
18
19 led-dsl = &dsl;
20 led-internet = &internet_green;
21 led-usb = &led_usb;
22 led-wifi = &wifi;
23 };
24
25 memory@0 {
26 device_type = "memory";
27 reg = <0x0 0x2000000>;
28 };
29
30 keys {
31 compatible = "gpio-keys-polled";
32 poll-interval = <100>;
33
34 rfkill {
35 label = "rfkill";
36 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RFKILL>;
38 };
39 reset {
40 label = "reset";
41 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
43 };
44 };
45
46 leds {
47 compatible = "gpio-leds";
48
49 power_green: power {
50 label = "arv4519pw:green:power";
51 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
52 default-state = "keep";
53 };
54 power_red: power2 {
55 label = "arv4519pw:red:power";
56 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
57 };
58 wifi: wifi {
59 label = "arv4519pw:green:wlan";
60 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
61 };
62 dsl: dsl {
63 label = "arv4519pw:green:dsl";
64 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
65 };
66 internet_green: online {
67 label = "arv4519pw:green:internet";
68 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
69 };
70 online2 {
71 label = "arv4519pw:red:internet";
72 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
73 };
74 led_usb: usb {
75 label = "arv4519pw:green:usb";
76 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
77 };
78 voip {
79 label = "arv4519pw:green:voip";
80 gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
81 };
82 fxs1 {
83 label = "arv4519pw:green:phone1";
84 gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
85 };
86 fxs2 {
87 label = "arv4519pw:green:phone2";
88 gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
89 };
90 fxo {
91 label = "arv4519pw:green:line";
92 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
93 };
94 wps2 {
95 label = "arv4519pw:green:wps";
96 gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
97 };
98 wps {
99 label = "arv4519pw:orange:wps";
100 gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
101 };
102 wps3 {
103 label = "arv4519pw:red:wps";
104 gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
105 };
106 };
107
108 usb_vbus: regulator-usb-vbus {
109 compatible = "regulator-fixed";
110
111 regulator-name = "USB_VBUS";
112
113 regulator-min-microvolt = <5000000>;
114 regulator-max-microvolt = <5000000>;
115
116 gpio = <&gpio 14 GPIO_ACTIVE_HIGH>;
117 enable-active-high;
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 cs1";
128 lantiq,function = "ebu";
129 };
130 };
131 };
132
133 &gsw {
134 phy-mode = "mii";
135 mtd-mac-address = <&boardconfig 0x16>;
136 };
137
138 &localbus {
139 flash@0 {
140 compatible = "lantiq,nor";
141 bank-width = <2>;
142 reg = <0 0x0 0x2000000>;
143
144 partitions {
145 compatible = "fixed-partitions";
146 #address-cells = <1>;
147 #size-cells = <1>;
148
149 partition@0 {
150 label = "uboot";
151 reg = <0x00000 0x10000>;
152 read-only;
153 };
154
155 partition@10000 {
156 label = "u-boot-env";
157 reg = <0x10000 0x10000>;
158 };
159
160 partition@20000 {
161 label = "firmware";
162 reg = <0x20000 0x3d0000>;
163 };
164
165 boardconfig: partition@3f0000 {
166 label = "boardconfig";
167 reg = <0x3f0000 0x10000>;
168 read-only;
169 };
170 };
171 };
172
173 gpiomm: gpio@1 {
174 compatible = "lantiq,gpio-mm";
175 reg = <1 0x0 0x10 >;
176 #address-cells = <1>;
177 #size-cells = <1>;
178 #gpio-cells = <2>;
179 gpio-controller;
180 lantiq,shadow = <0x400>;
181 };
182 };
183
184 &pci0 {
185 status = "okay";
186 lantiq,external-clock;
187 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
188 req-mask = <0xf>;
189 };
190
191 &usb_phy {
192 status = "okay";
193 };
194
195 &usb {
196 status = "okay";
197 vbus-supply = <&usb_vbus>;
198 };
199
200 &vmmc {
201 status = "okay";
202 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
203 };