lantiq: remove mac-address-increment
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_arcadyan_vgv7510kw22.dtsi
1 #include "vr9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
5
6 / {
7 compatible = "arcadyan,vgv7510kw22", "lantiq,xway", "lantiq,vr9";
8
9 chosen {
10 bootargs = "console=ttyLTQ0,115200 mem=62M vpe1_load_addr=0x83e00000 vpe1_mem=2M maxvpes=1 maxtcs=1 nosmp";
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-wifi = &wifi;
22 };
23
24 memory@0 {
25 device_type = "memory";
26 reg = <0x0 0x4000000>;
27 };
28
29 keys {
30 compatible = "gpio-keys-polled";
31 poll-interval = <100>;
32
33 reset {
34 label = "reset";
35 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
37 };
38
39 wps {
40 label = "wps";
41 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WPS_BUTTON>;
43 };
44 };
45
46 leds {
47 compatible = "gpio-leds";
48
49 dsl: dsl {
50 label = "green:dsl";
51 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
52 };
53
54 internet_red {
55 label = "red:internet";
56 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
57 };
58
59 info_red {
60 label = "red:info";
61 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
62 };
63
64 power_green: power {
65 label = "green:power";
66 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
67 default-state = "keep";
68 };
69
70 info_green {
71 label = "green:info";
72 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
73 };
74
75 internet_green: internet_green {
76 label = "green:internet";
77 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
78 };
79
80 wifi: wifi {
81 label = "green:wlan";
82 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
83 linux,default-trigger = "phy0tpt";
84 };
85
86 power_red: power2 {
87 label = "red:power";
88 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
89 };
90
91 phone {
92 label = "green:telefon";
93 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
94 };
95 };
96
97 usb_vbus: regulator-usb-vbus {
98 compatible = "regulator-fixed";
99
100 regulator-name = "USB_VBUS";
101
102 regulator-min-microvolt = <5000000>;
103 regulator-max-microvolt = <5000000>;
104
105 gpio = <&gpio 47 GPIO_ACTIVE_HIGH>;
106 enable-active-high;
107 };
108 };
109
110 &eth0 {
111 nvmem-cells = <&macaddr_boardconfig_16 0>;
112 nvmem-cell-names = "mac-address";
113 };
114
115 &gphy0 {
116 lantiq,gphy-mode = <GPHY_MODE_FE>;
117 };
118
119 &gphy1 {
120 lantiq,gphy-mode = <GPHY_MODE_FE>;
121 };
122
123 &gpio {
124 pinctrl-names = "default";
125 pinctrl-0 = <&state_default>, <&gphy0_led1_pins>;
126
127 state_default: pinmux {
128 pci-rst {
129 lantiq,pins = "io21";
130 lantiq,open-drain = <0>;
131 lantiq,pull = <0>;
132 lantiq,output = <1>;
133 };
134 };
135 };
136
137 &gswip {
138 pinctrl-0 = <&mdio_pins>,
139 <&gphy0_led0_pins>,
140 <&gphy1_led0_pins>, <&gphy1_led1_pins>;
141 pinctrl-names = "default";
142 };
143
144 &gswip_mdio {
145 phy1: ethernet-phy@1 {
146 reg = <0x1>;
147 };
148 phy11: ethernet-phy@11 {
149 reg = <0x11>;
150 };
151 phy12: ethernet-phy@12 {
152 reg = <0x12>;
153 };
154 phy13: ethernet-phy@13 {
155 reg = <0x13>;
156 };
157 phy14: ethernet-phy@14 {
158 reg = <0x14>;
159 };
160 };
161
162 &gswip_ports {
163 port@0 {
164 reg = <0>;
165 label = "wan";
166 phy-mode = "mii";
167 phy-handle = <&phy1>;
168 };
169 port@2 {
170 reg = <2>;
171 label = "lan2";
172 phy-mode = "internal";
173 phy-handle = <&phy11>;
174 };
175 port@3 {
176 reg = <3>;
177 label = "lan1";
178 phy-mode = "internal";
179 phy-handle = <&phy12>;
180 };
181 port@4 {
182 reg = <4>;
183 label = "lan4";
184 phy-mode = "internal";
185 phy-handle = <&phy13>;
186 };
187 port@5 {
188 reg = <5>;
189 label = "lan3";
190 phy-mode = "internal";
191 phy-handle = <&phy14>;
192 };
193 };
194
195 &localbus {
196 flash@0 {
197 compatible = "lantiq,nor";
198 bank-width = <2>;
199 reg = <0 0x0 0x1000000>;
200
201 partitions {
202 compatible = "fixed-partitions";
203 #address-cells = <1>;
204 #size-cells = <1>;
205
206 boardconfig: partition@fe0000 {
207 label = "board_config";
208 reg = <0xfe0000 0x20000>;
209 read-only;
210
211 nvmem-layout {
212 compatible = "fixed-layout";
213 #address-cells = <1>;
214 #size-cells = <1>;
215
216 macaddr_boardconfig_16: macaddr@16 {
217 compatible = "mac-base";
218 reg = <0x16 0x6>;
219 #nvmem-cell-cells = <1>;
220 };
221 };
222 };
223 };
224 };
225 };
226
227 &pci0 {
228 status = "okay";
229 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
230
231 wifi@1814,3592 {
232 compatible = "pci1814,3592";
233 reg = <0x7000 0 0 0 0>;
234 ralink,mtd-eeprom = <&boardconfig 0x410>;
235 ralink,eeprom-swap;
236 nvmem-cells = <&macaddr_boardconfig_16 1>;
237 nvmem-cell-names = "mac-address";
238 };
239 };
240
241 &pcie0 {
242 status = "disabled";
243 };
244
245 &usb_phy0 {
246 status = "okay";
247 };
248
249 &usb0 {
250 status = "okay";
251 vbus-supply = <&usb_vbus>;
252 };
253
254 &vmmc {
255 status = "okay";
256 gpios = <&gpio 30 GPIO_ACTIVE_HIGH //fxs relay
257 &gpio 31 GPIO_ACTIVE_HIGH //still unknown
258 &gpio 3 GPIO_ACTIVE_HIGH>; //reset_slic?
259 };