f31c03f451806ec2c27e32a9e1f0acbd87001824
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV7519RW22.dts
1 /dts-v1/;
2
3 #include "vr9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "ARV7519RW22 - 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
19 led-dsl = &internet_green;
20 };
21
22 memory@0 {
23 reg = <0x0 0x8000000>;
24 };
25
26 fpi@10000000 {
27 localbus@0 {
28 nor-boot@0 {
29 compatible = "lantiq,nor";
30 bank-width = <2>;
31 reg = <0 0x0 0x2000000>;
32 #address-cells = <1>;
33 #size-cells = <1>;
34
35 partitions {
36 compatible = "fixed-partitions";
37 #address-cells = <1>;
38 #size-cells = <1>;
39
40 partition@0 {
41 label = "uboot";
42 reg = <0x0 0x60000>;
43 read-only;
44 };
45
46 partition@60000 {
47 label = "uboot-env";
48 reg = <0x60000 0x20000>;
49 read-only;
50 };
51
52 partition@80000 {
53 label = "firmware";
54 reg = <0x80000 0x1f00000>;
55 };
56
57 boardconfig: partition@1f80000 {
58 label = "boardconfig";
59 reg = <0x1f80000 0x80000>;
60 read-only;
61 };
62 };
63 };
64 };
65
66 gpio: pinmux@E100B10 {
67 pinctrl-names = "default";
68 pinctrl-0 = <&state_default>;
69
70 state_default: pinmux {
71 mdio {
72 lantiq,groups = "mdio";
73 lantiq,function = "mdio";
74 };
75 pcie-rst {
76 lantiq,pins = "io21";
77 lantiq,pull = <0>;
78 lantiq,output = <1>;
79 };
80 };
81 };
82
83 ifxhcd@E101000 {
84 status = "okay";
85 gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
86 };
87
88 ifxhcd@E106000 {
89 status = "okay";
90 gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
91 };
92
93 pcie@d900000 {
94 status = "okay";
95 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
96 };
97 };
98
99 gphy-xrx200 {
100 compatible = "lantiq,phy-xrx200";
101 firmware1 = "lantiq/vr9_phy22f_a1x.bin"; /*VR9 1.1*/
102 firmware2 = "lantiq/vr9_phy22f_a2x.bin"; /*VR9 1.2*/
103 phys = [ 00 01 ];
104 };
105
106 gpio-keys-polled {
107 compatible = "gpio-keys-polled";
108 #address-cells = <1>;
109 #size-cells = <0>;
110 poll-interval = <100>;
111
112 reset {
113 label = "reset";
114 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
115 linux,code = <KEY_RESTART>;
116 };
117 rfkill {
118 label = "rfkill";
119 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
120 linux,code = <KEY_RFKILL>;
121 };
122 wps {
123 label = "wps";
124 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
125 linux,code = <KEY_WPS_BUTTON>;
126 };
127 };
128
129 gpio-leds {
130 compatible = "gpio-leds";
131
132 lan_green {
133 label = "arv7519rw22:green:lan";
134 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
135 };
136 internet_red {
137 label = "arv7519rw22:red:internet";
138 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
139 };
140 power_green: power_green {
141 label = "arv7519rw22:green:power";
142 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
143 default-state = "keep";
144 };
145 alarm_blue {
146 label = "arv7519rw22:blue:alarm";
147 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
148 };
149 internet_orange {
150 label = "arv7519rw22:orange:internet";
151 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
152 };
153 internet_green: internet_green {
154 label = "arv7519rw22:green:internet";
155 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
156 };
157 voice_green {
158 label = "arv7519rw22:green:voice";
159 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
160 };
161 };
162 };
163
164 &eth0 {
165 lan: interface@0 {
166 compatible = "lantiq,xrx200-pdi";
167 #address-cells = <1>;
168 #size-cells = <0>;
169 reg = <0>;
170 mtd-mac-address = <&boardconfig 0x16>;
171 lantiq,switch;
172
173 ethernet@0 {
174 compatible = "lantiq,xrx200-pdi-port";
175 reg = <0>;
176 phy-mode = "rgmii";
177 phy-handle = <&phy0>;
178 };
179 ethernet@1 {
180 compatible = "lantiq,xrx200-pdi-port";
181 reg = <4>;
182 phy-mode = "mii";
183 phy-handle = <&phy13>;
184 };
185 ethernet@2 {
186 compatible = "lantiq,xrx200-pdi-port";
187 reg = <5>;
188 phy-mode = "mii";
189 phy-handle = <&phy14>;
190 };
191 ethernet@3 {
192 compatible = "lantiq,xrx200-pdi-port";
193 reg = <2>;
194 phy-mode = "mii";
195 phy-handle = <&phy11>;
196 };
197 ethernet@4 {
198 compatible = "lantiq,xrx200-pdi-port";
199 reg = <3>;
200 phy-mode = "mii";
201 phy-handle = <&phy12>;
202 };
203 };
204
205 mdio@0 {
206 #address-cells = <1>;
207 #size-cells = <0>;
208 compatible = "lantiq,xrx200-mdio";
209 phy0: ethernet-phy@0 {
210 reg = <0x0>;
211 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
212 };
213 phy11: ethernet-phy@11 {
214 reg = <0x11>;
215 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
216 };
217 phy12: ethernet-phy@12 {
218 reg = <0x12>;
219 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
220 };
221 phy13: ethernet-phy@13 {
222 reg = <0x13>;
223 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
224 };
225 phy14: ethernet-phy@14 {
226 reg = <0x14>;
227 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
228 };
229 };
230 };