e307b381a9eafe9c29b3bb6c8428dfe6359ea897
[openwrt/staging/dedeckeh.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 reg = <0x0 0x2000000>;
29 };
30
31 gpio-keys-polled {
32 compatible = "gpio-keys-polled";
33 #address-cells = <1>;
34 #size-cells = <0>;
35 poll-interval = <100>;
36
37 rfkill {
38 label = "rfkill";
39 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RFKILL>;
41 };
42 reset {
43 label = "reset";
44 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RESTART>;
46 };
47 };
48
49 gpio-leds {
50 compatible = "gpio-leds";
51
52 power_green: power {
53 label = "arv4519pw:green:power";
54 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
55 default-state = "keep";
56 };
57 power_red: power2 {
58 label = "arv4519pw:red:power";
59 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
60 };
61 wifi: wifi {
62 label = "arv4519pw:green:wlan";
63 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
64 };
65 dsl: dsl {
66 label = "arv4519pw:green:dsl";
67 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
68 };
69 internet_green: online {
70 label = "arv4519pw:green:internet";
71 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
72 };
73 online2 {
74 label = "arv4519pw:red:internet";
75 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
76 };
77 led_usb: usb {
78 label = "arv4519pw:green:usb";
79 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
80 };
81 voip {
82 label = "arv4519pw:green:voip";
83 gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
84 };
85 fxs1 {
86 label = "arv4519pw:green:phone1";
87 gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
88 };
89 fxs2 {
90 label = "arv4519pw:green:phone2";
91 gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
92 };
93 fxo {
94 label = "arv4519pw:green:line";
95 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
96 };
97 wps2 {
98 label = "arv4519pw:green:wps";
99 gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
100 };
101 wps {
102 label = "arv4519pw:orange:wps";
103 gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
104 };
105 wps3 {
106 label = "arv4519pw:red:wps";
107 gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
108 };
109 };
110
111 usb_vbus: regulator-usb-vbus {
112 compatible = "regulator-fixed";
113
114 regulator-name = "USB_VBUS";
115
116 regulator-min-microvolt = <5000000>;
117 regulator-max-microvolt = <5000000>;
118
119 gpio = <&gpio 14 GPIO_ACTIVE_HIGH>;
120 enable-active-high;
121 };
122 };
123
124 &gpio {
125 pinctrl-names = "default";
126 pinctrl-0 = <&state_default>;
127
128 state_default: pinmux {
129 ebu {
130 lantiq,groups = "ebu cs1";
131 lantiq,function = "ebu";
132 };
133 };
134 };
135
136 &gpiomm {
137 status = "okay";
138 lantiq,shadow = <0x400>;
139 };
140
141 &gsw {
142 phy-mode = "mii";
143 mtd-mac-address = <&boardconfig 0x16>;
144 };
145
146 &localbus {
147 nor@0 {
148 compatible = "lantiq,nor";
149 bank-width = <2>;
150 reg = <0 0x0 0x2000000>;
151 #address-cells = <1>;
152 #size-cells = <1>;
153
154 partitions {
155 compatible = "fixed-partitions";
156 #address-cells = <1>;
157 #size-cells = <1>;
158
159 partition@0 {
160 label = "uboot";
161 reg = <0x00000 0x10000>;
162 read-only;
163 };
164
165 partition@10000 {
166 label = "uboot_env";
167 reg = <0x10000 0x10000>;
168 };
169
170 partition@20000 {
171 label = "firmware";
172 reg = <0x20000 0x3d0000>;
173 };
174
175 boardconfig: partition@3f0000 {
176 label = "boardconfig";
177 reg = <0x3f0000 0x10000>;
178 read-only;
179 };
180 };
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 };