lantiq: show xdsl line init status on shared dsl/internet led
[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 = "disabled";
95 };
96 };
97
98 gphy-xrx200 {
99 compatible = "lantiq,phy-xrx200";
100 firmware1 = "lantiq/vr9_phy22f_a1x.bin"; /*VR9 1.1*/
101 firmware2 = "lantiq/vr9_phy22f_a2x.bin"; /*VR9 1.2*/
102 phys = [ 00 01 ];
103 };
104
105 gpio-keys-polled {
106 compatible = "gpio-keys-polled";
107 #address-cells = <1>;
108 #size-cells = <0>;
109 poll-interval = <100>;
110
111 reset {
112 label = "reset";
113 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
114 linux,code = <KEY_RESTART>;
115 };
116 rfkill {
117 label = "rfkill";
118 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
119 linux,code = <KEY_RFKILL>;
120 };
121 wps {
122 label = "wps";
123 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
124 linux,code = <KEY_WPS_BUTTON>;
125 };
126 };
127
128 gpio-leds {
129 compatible = "gpio-leds";
130
131 lan_green {
132 label = "arv7519rw22:green:lan";
133 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
134 };
135 internet_red {
136 label = "arv7519rw22:red:internet";
137 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
138 };
139 power_green: power_green {
140 label = "arv7519rw22:green:power";
141 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
142 default-state = "keep";
143 };
144 alarm_blue {
145 label = "arv7519rw22:blue:alarm";
146 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
147 };
148 internet_orange {
149 label = "arv7519rw22:orange:internet";
150 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
151 };
152 internet_green: internet_green {
153 label = "arv7519rw22:green:internet";
154 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
155 };
156 voice_green {
157 label = "arv7519rw22:green:voice";
158 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
159 };
160 };
161 };
162
163 &eth0 {
164 lan: interface@0 {
165 compatible = "lantiq,xrx200-pdi";
166 #address-cells = <1>;
167 #size-cells = <0>;
168 reg = <0>;
169 mtd-mac-address = <&boardconfig 0x16>;
170 lantiq,switch;
171
172 ethernet@0 {
173 compatible = "lantiq,xrx200-pdi-port";
174 reg = <0>;
175 phy-mode = "rgmii";
176 phy-handle = <&phy0>;
177 };
178 ethernet@1 {
179 compatible = "lantiq,xrx200-pdi-port";
180 reg = <4>;
181 phy-mode = "mii";
182 phy-handle = <&phy13>;
183 };
184 ethernet@2 {
185 compatible = "lantiq,xrx200-pdi-port";
186 reg = <5>;
187 phy-mode = "mii";
188 phy-handle = <&phy14>;
189 };
190 ethernet@3 {
191 compatible = "lantiq,xrx200-pdi-port";
192 reg = <2>;
193 phy-mode = "mii";
194 phy-handle = <&phy11>;
195 };
196 ethernet@4 {
197 compatible = "lantiq,xrx200-pdi-port";
198 reg = <3>;
199 phy-mode = "mii";
200 phy-handle = <&phy12>;
201 };
202 };
203
204 mdio@0 {
205 #address-cells = <1>;
206 #size-cells = <0>;
207 compatible = "lantiq,xrx200-mdio";
208 phy0: ethernet-phy@0 {
209 reg = <0x0>;
210 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
211 };
212 phy11: ethernet-phy@11 {
213 reg = <0x11>;
214 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
215 };
216 phy12: ethernet-phy@12 {
217 reg = <0x12>;
218 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
219 };
220 phy13: ethernet-phy@13 {
221 reg = <0x13>;
222 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
223 };
224 phy14: ethernet-phy@14 {
225 reg = <0x14>;
226 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
227 };
228 };
229 };