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