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