lantiq: remove mac-address-increment
[openwrt/openwrt.git] / target / linux / lantiq / files / 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 = "green:power";
51 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
52 default-state = "keep";
53 };
54 power_red: power2 {
55 label = "red:power";
56 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
57 };
58 wifi: wifi {
59 label = "green:wlan";
60 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
61 };
62 dsl: dsl {
63 label = "green:dsl";
64 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
65 };
66 internet_green: online {
67 label = "green:internet";
68 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
69 };
70 online2 {
71 label = "red:internet";
72 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
73 };
74 led_usb: usb {
75 label = "green:usb";
76 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
77 };
78 voip {
79 label = "green:voip";
80 gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
81 };
82 fxs1 {
83 label = "green:phone1";
84 gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
85 };
86 fxs2 {
87 label = "green:phone2";
88 gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
89 };
90 fxo {
91 label = "green:line";
92 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
93 };
94 wps2 {
95 label = "green:wps";
96 gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
97 };
98 wps {
99 label = "orange:wps";
100 gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
101 };
102 wps3 {
103 label = "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 nvmem-cells = <&macaddr_boardconfig_16>;
136 nvmem-cell-names = "mac-address";
137 };
138
139 &localbus {
140 flash@0 {
141 compatible = "lantiq,nor";
142 bank-width = <2>;
143 reg = <0 0x0 0x2000000>;
144
145 partitions {
146 compatible = "fixed-partitions";
147 #address-cells = <1>;
148 #size-cells = <1>;
149
150 partition@0 {
151 label = "uboot";
152 reg = <0x00000 0x10000>;
153 read-only;
154 };
155
156 partition@10000 {
157 label = "u-boot-env";
158 reg = <0x10000 0x10000>;
159 };
160
161 partition@20000 {
162 label = "firmware";
163 reg = <0x20000 0x3d0000>;
164 };
165
166 boardconfig: partition@3f0000 {
167 label = "boardconfig";
168 reg = <0x3f0000 0x10000>;
169 read-only;
170
171 nvmem-layout {
172 compatible = "fixed-layout";
173 #address-cells = <1>;
174 #size-cells = <1>;
175
176 macaddr_boardconfig_16: macaddr@16 {
177 reg = <0x16 0x6>;
178 };
179 };
180 };
181 };
182 };
183
184 gpiomm: gpio@1 {
185 compatible = "lantiq,gpio-mm";
186 reg = <1 0x0 0x10 >;
187 #address-cells = <1>;
188 #size-cells = <1>;
189 #gpio-cells = <2>;
190 gpio-controller;
191 lantiq,shadow = <0x400>;
192 };
193 };
194
195 &pci0 {
196 status = "okay";
197 lantiq,external-clock;
198 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
199 req-mask = <0xf>;
200 };
201
202 &usb_phy {
203 status = "okay";
204 };
205
206 &usb {
207 status = "okay";
208 vbus-supply = <&usb_vbus>;
209 };
210
211 &vmmc {
212 status = "okay";
213 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
214 };