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