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