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