lantiq: re-enable spi-xway for TD-W89X0 now that it is fixed
[openwrt/openwrt.git] / target / linux / lantiq / dts / TDW89X0.dtsi
1 /include/ "vr9.dtsi"
2
3 / {
4 chosen {
5 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
6 };
7
8 memory@0 {
9 reg = <0x0 0x4000000>;
10 };
11
12 fpi@10000000 {
13 spi@E100800 {
14 compatible = "lantiq,spi-xway";
15 reg = <0xE100800 0x100>;
16 interrupt-parent = <&icu0>;
17 interrupts = <22 23 24>;
18 #address-cells = <1>;
19 m25p80@0 {
20 #address-cells = <1>;
21 #size-cells = <1>;
22 compatible = "jedec,spi-nor";
23 reg = <3>;
24 spi-max-frequency = <20000000>;
25
26 partition@0 {
27 reg = <0x0 0x20000>;
28 label = "u-boot";
29 read-only;
30 };
31
32 partition@20000 {
33 reg = <0x20000 0x6a0000>;
34 label = "firmware";
35 };
36
37 partition@6c0000 {
38 reg = <0x6c0000 0x100000>;
39 label = "dsl_fw";
40 };
41
42 partition@7c0000 {
43 reg = <0x7c0000 0x10000>;
44 label = "config";
45 read-only;
46 };
47
48 ath9k_cal: partition@7d0000 {
49 reg = <0x7d0000 0x30000>;
50 label = "boardconfig";
51 read-only;
52 };
53 };
54 };
55
56 gpio: pinmux@E100B10 {
57 pinctrl-names = "default";
58 pinctrl-0 = <&state_default>;
59
60 state_default: pinmux {
61 mdio {
62 lantiq,groups = "mdio";
63 lantiq,function = "mdio";
64 };
65 gphy-leds {
66 lantiq,groups = "gphy0 led1", "gphy1 led1";
67 lantiq,function = "gphy";
68 lantiq,pull = <2>;
69 lantiq,open-drain = <0>;
70 lantiq,output = <1>;
71 };
72 phy-rst {
73 lantiq,pins = "io42";
74 lantiq,pull = <0>;
75 lantiq,open-drain = <0>;
76 lantiq,output = <1>;
77 };
78 spi {
79 lantiq,groups = "spi", "spi_cs4";
80 lantiq,function = "spi";
81 };
82 pcie-rst {
83 lantiq,pins = "io38";
84 lantiq,pull = <0>;
85 lantiq,output = <1>;
86 };
87 };
88 };
89
90 eth@E108000 {
91 #address-cells = <1>;
92 #size-cells = <0>;
93 compatible = "lantiq,xrx200-net";
94 reg = < 0xE108000 0x3000 /* switch */
95 0xE10B100 0x70 /* mdio */
96 0xE10B1D8 0x30 /* mii */
97 0xE10B308 0x30 /* pmac */
98 >;
99 interrupt-parent = <&icu0>;
100 interrupts = <73 72>;
101
102 lan: interface@0 {
103 compatible = "lantiq,xrx200-pdi";
104 #address-cells = <1>;
105 #size-cells = <0>;
106 reg = <0>;
107 mtd-mac-address = <&ath9k_cal 0xf100>;
108 lantiq,switch;
109
110 ethernet@0 {
111 compatible = "lantiq,xrx200-pdi-port";
112 reg = <0>;
113 phy-mode = "rgmii";
114 phy-handle = <&phy0>;
115 // gpios = <&gpio 42 1>;
116 };
117 ethernet@5 {
118 compatible = "lantiq,xrx200-pdi-port";
119 reg = <5>;
120 phy-mode = "rgmii";
121 phy-handle = <&phy5>;
122 };
123 ethernet@2 {
124 compatible = "lantiq,xrx200-pdi-port";
125 reg = <2>;
126 phy-mode = "gmii";
127 phy-handle = <&phy11>;
128 };
129 ethernet@3 {
130 compatible = "lantiq,xrx200-pdi-port";
131 reg = <4>;
132 phy-mode = "gmii";
133 phy-handle = <&phy13>;
134 };
135 };
136
137 mdio@0 {
138 #address-cells = <1>;
139 #size-cells = <0>;
140 compatible = "lantiq,xrx200-mdio";
141 phy0: ethernet-phy@0 {
142 reg = <0x0>;
143 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
144 };
145 phy5: ethernet-phy@5 {
146 reg = <0x5>;
147 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
148 };
149 phy11: ethernet-phy@11 {
150 reg = <0x11>;
151 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
152 };
153 phy13: ethernet-phy@13 {
154 reg = <0x13>;
155 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
156 };
157 };
158 };
159
160 ifxhcd@E101000 {
161 status = "okay";
162 gpios = <&gpio 33 0>;
163 lantiq,portmask = <0x3>;
164 };
165
166 ifxhcd@E106000 {
167 status = "okay";
168 gpios = <&gpio 33 0>;
169 };
170 };
171
172 gphy-xrx200 {
173 compatible = "lantiq,phy-xrx200";
174 firmware = "lantiq/vr9_phy11g_a2x.bin";
175 phys = [ 00 01 ];
176 };
177
178 pcie {
179 compatible = "lantiq,pcie-xway";
180 };
181
182 ath9k_eep {
183 compatible = "ath9k,eeprom";
184 ath,eep-flash = <&ath9k_cal 0x21000>;
185 ath,mac-offset = <0xf100>;
186 ath,mac-increment;
187 ath,led-pin = <0>;
188 };
189
190 gpio-keys-polled {
191 compatible = "gpio-keys-polled";
192 #address-cells = <1>;
193 #size-cells = <0>;
194 poll-interval = <100>;
195 reset {
196 label = "reset";
197 gpios = <&gpio 0 1>;
198 linux,code = <0x198>;
199 };
200
201 wifi {
202 label = "wifi";
203 gpios = <&gpio 9 0>;
204 linux,code = <0xf7>;
205 linux,input-type = <5>; /* EV_SW */
206 };
207
208 wps {
209 label = "wps";
210 gpios = <&gpio 39 1>;
211 linux,code = <0x211>;
212 };
213 };
214
215 gpio-leds {
216 compatible = "gpio-leds";
217
218 dsl {
219 label = "dsl";
220 gpios = <&gpio 4 0>;
221 };
222 internet {
223 label = "internet";
224 gpios = <&gpio 5 0>;
225 };
226 usb0 {
227 label = "usb";
228 gpios = <&gpio 19 0>;
229 };
230 usb2 {
231 label = "usb2";
232 gpios = <&gpio 20 0>;
233 };
234 wps {
235 label = "wps";
236 gpios = <&gpio 37 0>;
237 };
238 };
239 };