4b7343207eee9c4bb145ff4e0085280d53da8e69
[openwrt/openwrt.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 mtd-mac-address = <&boardconfig 0x16>;
98 };
99
100 &gphy0 {
101 lantiq,gphy-mode = <GPHY_MODE_FE>;
102 };
103
104 &gphy1 {
105 lantiq,gphy-mode = <GPHY_MODE_FE>;
106 };
107
108 &gpio {
109 pinctrl-names = "default";
110 pinctrl-0 = <&state_default>;
111
112 state_default: pinmux {
113 pcie-rst {
114 lantiq,pins = "io21";
115 lantiq,pull = <0>;
116 lantiq,output = <1>;
117 };
118 };
119 };
120
121 &gswip {
122 pinctrl-0 = <&mdio_pins>;
123 pinctrl-names = "default";
124 };
125
126 &gswip_mdio {
127 phy0: ethernet-phy@0 {
128 reg = <0x0>;
129 };
130 phy11: ethernet-phy@11 {
131 reg = <0x11>;
132 };
133 phy12: ethernet-phy@12 {
134 reg = <0x12>;
135 };
136 phy13: ethernet-phy@13 {
137 reg = <0x13>;
138 };
139 phy14: ethernet-phy@14 {
140 reg = <0x14>;
141 };
142 };
143
144 &gswip_ports {
145 port@0 {
146 reg = <0>;
147 label = "lan5";
148 phy-mode = "rgmii";
149 phy-handle = <&phy0>;
150 };
151 port@2 {
152 reg = <2>;
153 label = "lan3";
154 phy-mode = "internal";
155 phy-handle = <&phy11>;
156 };
157 port@3 {
158 reg = <3>;
159 label = "lan4";
160 phy-mode = "internal";
161 phy-handle = <&phy12>;
162 };
163 port@4 {
164 reg = <4>;
165 label = "lan1";
166 phy-mode = "internal";
167 phy-handle = <&phy13>;
168 };
169 port@5 {
170 reg = <5>;
171 label = "lan2";
172 phy-mode = "internal";
173 phy-handle = <&phy14>;
174 };
175 };
176
177 &localbus {
178 flash@0 {
179 compatible = "lantiq,nor";
180 bank-width = <2>;
181 reg = <0 0x0 0x2000000>;
182
183 partitions {
184 compatible = "fixed-partitions";
185 #address-cells = <1>;
186 #size-cells = <1>;
187
188 partition@0 {
189 label = "uboot";
190 reg = <0x0 0x60000>;
191 read-only;
192 };
193
194 partition@60000 {
195 label = "u-boot-env";
196 reg = <0x60000 0x20000>;
197 read-only;
198 };
199
200 partition@80000 {
201 label = "firmware";
202 reg = <0x80000 0x1f00000>;
203 };
204
205 boardconfig: partition@1f80000 {
206 label = "boardconfig";
207 reg = <0x1f80000 0x80000>;
208 read-only;
209 };
210 };
211 };
212 };
213
214 &pcie0 {
215 status = "okay";
216 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
217 };
218
219 &usb_phy0 {
220 status = "okay";
221 };
222
223 &usb_phy1 {
224 status = "okay";
225 };
226
227 &usb0 {
228 status = "okay";
229 vbus-supply = <&usb_vbus>;
230 };
231
232 &usb1 {
233 status = "okay";
234 vbus-supply = <&usb_vbus>;
235 };