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