lantiq: remove mac-address-increment
[openwrt/staging/hauke.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_arcadyan_arv7519rw22.dts
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,arv7519rw22", "lantiq,xway", "lantiq,vr9";
8 model = "Orange Livebox 2.1";
9
10 chosen {
11 bootargs = "console=ttyLTQ0,115200";
12 };
13
14 aliases {
15 led-boot = &power_green;
16 led-failsafe = &power_green;
17 led-running = &power_green;
18 led-upgrade = &power_green;
19
20 led-dsl = &internet_green;
21 };
22
23 memory@0 {
24 device_type = "memory";
25 reg = <0x0 0x8000000>;
26 };
27
28 keys {
29 compatible = "gpio-keys-polled";
30 poll-interval = <100>;
31
32 reset {
33 label = "reset";
34 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
36 };
37 rfkill {
38 label = "rfkill";
39 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RFKILL>;
41 };
42 wps {
43 label = "wps";
44 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_WPS_BUTTON>;
46 };
47 };
48
49 leds {
50 compatible = "gpio-leds";
51
52 lan_green {
53 label = "green:lan";
54 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
55 };
56 internet_red {
57 label = "red:internet";
58 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
59 };
60 power_green: power_green {
61 label = "green:power";
62 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
63 default-state = "keep";
64 };
65 alarm_blue {
66 label = "blue:alarm";
67 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
68 };
69 internet_orange {
70 label = "orange:internet";
71 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
72 };
73 internet_green: internet_green {
74 label = "green:internet";
75 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
76 };
77 voice_green {
78 label = "green:voice";
79 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
80 };
81 };
82
83 usb_vbus: regulator-usb-vbus {
84 compatible = "regulator-fixed";
85
86 regulator-name = "USB_VBUS";
87
88 regulator-min-microvolt = <5000000>;
89 regulator-max-microvolt = <5000000>;
90
91 gpio = <&gpio 32 GPIO_ACTIVE_HIGH>;
92 enable-active-high;
93 };
94 };
95
96 &eth0 {
97 nvmem-cells = <&macaddr_boardconfig_16>;
98 nvmem-cell-names = "mac-address";
99 };
100
101 &gphy0 {
102 lantiq,gphy-mode = <GPHY_MODE_FE>;
103 };
104
105 &gphy1 {
106 lantiq,gphy-mode = <GPHY_MODE_FE>;
107 };
108
109 &gpio {
110 pinctrl-names = "default";
111 pinctrl-0 = <&state_default>;
112
113 state_default: pinmux {
114 pcie-rst {
115 lantiq,pins = "io21";
116 lantiq,pull = <0>;
117 lantiq,output = <1>;
118 };
119 };
120 };
121
122 &gswip {
123 pinctrl-0 = <&mdio_pins>;
124 pinctrl-names = "default";
125 };
126
127 &gswip_mdio {
128 phy0: ethernet-phy@0 {
129 reg = <0x0>;
130 };
131 phy11: ethernet-phy@11 {
132 reg = <0x11>;
133 };
134 phy12: ethernet-phy@12 {
135 reg = <0x12>;
136 };
137 phy13: ethernet-phy@13 {
138 reg = <0x13>;
139 };
140 phy14: ethernet-phy@14 {
141 reg = <0x14>;
142 };
143 };
144
145 &gswip_ports {
146 port@0 {
147 reg = <0>;
148 label = "lan5";
149 phy-mode = "rgmii";
150 phy-handle = <&phy0>;
151 };
152 port@2 {
153 reg = <2>;
154 label = "lan3";
155 phy-mode = "internal";
156 phy-handle = <&phy11>;
157 };
158 port@3 {
159 reg = <3>;
160 label = "lan4";
161 phy-mode = "internal";
162 phy-handle = <&phy12>;
163 };
164 port@4 {
165 reg = <4>;
166 label = "lan1";
167 phy-mode = "internal";
168 phy-handle = <&phy13>;
169 };
170 port@5 {
171 reg = <5>;
172 label = "lan2";
173 phy-mode = "internal";
174 phy-handle = <&phy14>;
175 };
176 };
177
178 &localbus {
179 flash@0 {
180 compatible = "lantiq,nor";
181 bank-width = <2>;
182 reg = <0 0x0 0x2000000>;
183
184 partitions {
185 compatible = "fixed-partitions";
186 #address-cells = <1>;
187 #size-cells = <1>;
188
189 partition@0 {
190 label = "uboot";
191 reg = <0x0 0x60000>;
192 read-only;
193 };
194
195 partition@60000 {
196 label = "u-boot-env";
197 reg = <0x60000 0x20000>;
198 read-only;
199 };
200
201 partition@80000 {
202 label = "firmware";
203 reg = <0x80000 0x1f00000>;
204 };
205
206 boardconfig: partition@1f80000 {
207 label = "boardconfig";
208 reg = <0x1f80000 0x80000>;
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 reg = <0x16 0x6>;
218 };
219 };
220 };
221 };
222 };
223 };
224
225 &pcie0 {
226 status = "okay";
227 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
228 };
229
230 &usb_phy0 {
231 status = "okay";
232 };
233
234 &usb_phy1 {
235 status = "okay";
236 };
237
238 &usb0 {
239 status = "okay";
240 vbus-supply = <&usb_vbus>;
241 };
242
243 &usb1 {
244 status = "okay";
245 vbus-supply = <&usb_vbus>;
246 };