11e57e14a0e635aad7cd8f093c44f868d0dbfc52
[openwrt/openwrt.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
20 led-dsl = &dsl;
21 led-internet = &internet_green;
22 led-usb = &led_usb;
23 led-wifi = &wifi;
24 };
25
26 memory@0 {
27 reg = <0x0 0x2000000>;
28 };
29
30 gpio-keys-polled {
31 compatible = "gpio-keys-polled";
32 #address-cells = <1>;
33 #size-cells = <0>;
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 gpio-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
111 &gpio {
112 pinctrl-names = "default";
113 pinctrl-0 = <&state_default>;
114
115 state_default: pinmux {
116 ebu {
117 lantiq,groups = "ebu cs1";
118 lantiq,function = "ebu";
119 };
120 };
121 };
122
123 &gpiomm {
124 status = "okay";
125 lantiq,shadow = <0x400>;
126 };
127
128 &gsw {
129 phy-mode = "mii";
130 mtd-mac-address = <&boardconfig 0x16>;
131 };
132
133 &localbus {
134 nor@0 {
135 compatible = "lantiq,nor";
136 bank-width = <2>;
137 reg = <0 0x0 0x2000000>;
138 #address-cells = <1>;
139 #size-cells = <1>;
140
141 partitions {
142 compatible = "fixed-partitions";
143 #address-cells = <1>;
144 #size-cells = <1>;
145
146 partition@0 {
147 label = "uboot";
148 reg = <0x00000 0x10000>;
149 read-only;
150 };
151
152 partition@10000 {
153 label = "uboot_env";
154 reg = <0x10000 0x10000>;
155 };
156
157 partition@20000 {
158 label = "firmware";
159 reg = <0x20000 0x3d0000>;
160 };
161
162 boardconfig: partition@3f0000 {
163 label = "boardconfig";
164 reg = <0x3f0000 0x10000>;
165 read-only;
166 };
167 };
168 };
169 };
170
171 &pci0 {
172 status = "okay";
173 lantiq,external-clock;
174 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
175 req-mask = <0xf>;
176 };
177
178 &usb {
179 status = "okay";
180 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
181 };
182
183 &vmmc {
184 status = "okay";
185 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
186 };