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