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