lantiq: remove stale phy register setup properties from dts files
[openwrt/openwrt.git] / target / linux / lantiq / dts / EASY80920.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 #address-cells = <1>;
14 #size-cells = <1>;
15 compatible = "lantiq,fpi", "simple-bus";
16 ranges = <0x0 0x10000000 0xEEFFFFF>;
17 reg = <0x10000000 0xEF00000>;
18
19 localbus@0 {
20 #address-cells = <2>;
21 #size-cells = <1>;
22 compatible = "lantiq,localbus", "simple-bus";
23
24 };
25
26 spi@E100800 {
27 compatible = "lantiq,spi-xway-broken";
28 reg = <0xE100800 0x100>;
29 interrupt-parent = <&icu0>;
30 interrupts = <22 23 24>;
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 m25p80@0 {
35 #address-cells = <1>;
36 #size-cells = <1>;
37 compatible = "s25fl129p0";
38 reg = <0 0>;
39 linux,modalias = "m25p80", "mx25l3205d";
40 spi-max-frequency = <1000000>;
41
42 partition@0 {
43 reg = <0x0 0x20000>;
44 label = "SPI (RO) U-Boot Image";
45 read-only;
46 };
47
48 partition@20000 {
49 reg = <0x20000 0x10000>;
50 label = "ENV_MAC";
51 read-only;
52 };
53
54 partition@30000 {
55 reg = <0x30000 0x10000>;
56 label = "DPF";
57 read-only;
58 };
59
60 partition@40000 {
61 reg = <0x40000 0x10000>;
62 label = "NVRAM";
63 read-only;
64 };
65
66 partition@500000 {
67 reg = <0x50000 0x003a0000>;
68 label = "kernel";
69 };
70 };
71 };
72
73 gpio: pinmux@E100B10 {
74 compatible = "lantiq,pinctrl-xr9";
75 pinctrl-names = "default";
76 pinctrl-0 = <&state_default>;
77
78 interrupt-parent = <&icu0>;
79 interrupts = <166 135 66 40 41 42 38>;
80
81 #gpio-cells = <2>;
82 gpio-controller;
83 reg = <0xE100B10 0xA0>;
84
85 state_default: pinmux {
86 exin3 {
87 lantiq,groups = "exin3";
88 lantiq,function = "exin";
89 };
90 stp {
91 lantiq,groups = "stp";
92 lantiq,function = "stp";
93 };
94 spi {
95 lantiq,groups = "spi", "spi_cs4";
96 lantiq,function = "spi";
97 };
98 nand {
99 lantiq,groups = "nand cle", "nand ale",
100 "nand rd", "nand rdy";
101 lantiq,function = "ebu";
102 };
103 mdio {
104 lantiq,groups = "mdio";
105 lantiq,function = "mdio";
106 };
107 pci {
108 lantiq,groups = "gnt1", "req1";
109 lantiq,function = "pci";
110 };
111 conf_out {
112 lantiq,pins = "io24", "io13", "io49", /* nand cle, ale and rd */
113 "io4", "io5", "io6", /* stp */
114 "io21",
115 "io33";
116 lantiq,open-drain;
117 lantiq,pull = <0>;
118 lantiq,output = <1>;
119 };
120 pcie-rst {
121 lantiq,pins = "io38";
122 lantiq,pull = <0>;
123 lantiq,output = <1>;
124 };
125 conf_in {
126 lantiq,pins = "io39", /* exin3 */
127 "io48"; /* nand rdy */
128 lantiq,pull = <2>;
129 };
130 };
131 };
132
133 eth@E108000 {
134 #address-cells = <1>;
135 #size-cells = <0>;
136 compatible = "lantiq,xrx200-net";
137 reg = < 0xE108000 0x3000 /* switch */
138 0xE10B100 0x70 /* mdio */
139 0xE10B1D8 0x30 /* mii */
140 0xE10B308 0x30 /* pmac */
141 >;
142 interrupt-parent = <&icu0>;
143 interrupts = <73 72>;
144
145 lan: interface@0 {
146 compatible = "lantiq,xrx200-pdi";
147 #address-cells = <1>;
148 #size-cells = <0>;
149 reg = <0>;
150 mac-address = [ 00 11 22 33 44 55 ];
151
152 ethernet@0 {
153 compatible = "lantiq,xrx200-pdi-port";
154 reg = <0>;
155 phy-mode = "rgmii";
156 phy-handle = <&phy0>;
157 };
158 ethernet@1 {
159 compatible = "lantiq,xrx200-pdi-port";
160 reg = <1>;
161 phy-mode = "rgmii";
162 phy-handle = <&phy1>;
163 };
164 ethernet@2 {
165 compatible = "lantiq,xrx200-pdi-port";
166 reg = <2>;
167 phy-mode = "gmii";
168 phy-handle = <&phy11>;
169 };
170 };
171
172 wan: interface@1 {
173 compatible = "lantiq,xrx200-pdi";
174 #address-cells = <1>;
175 #size-cells = <0>;
176 reg = <1>;
177 mac-address = [ 00 11 22 33 44 56 ];
178 lantiq,wan;
179 ethernet@5 {
180 compatible = "lantiq,xrx200-pdi-port";
181 reg = <5>;
182 phy-mode = "rgmii";
183 phy-handle = <&phy5>;
184 };
185 };
186
187 test: interface@2 {
188 compatible = "lantiq,xrx200-pdi";
189 #address-cells = <1>;
190 #size-cells = <0>;
191 reg = <2>;
192 mac-address = [ 00 11 22 33 44 57 ];
193 ethernet@4 {
194 compatible = "lantiq,xrx200-pdi-port";
195 reg = <4>;
196 phynmode0 = "gmii";
197 phy-handle = <&phy13>;
198 };
199 };
200
201 mdio@0 {
202 #address-cells = <1>;
203 #size-cells = <0>;
204 compatible = "lantiq,xrx200-mdio";
205 phy0: ethernet-phy@0 {
206 reg = <0x0>;
207 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
208 };
209 phy1: ethernet-phy@1 {
210 reg = <0x1>;
211 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
212 };
213 phy5: ethernet-phy@5 {
214 reg = <0x5>;
215 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
216 };
217 phy11: ethernet-phy@11 {
218 reg = <0x11>;
219 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
220 };
221 phy13: ethernet-phy@13 {
222 reg = <0x13>;
223 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
224 };
225 };
226 };
227
228 stp: stp@E100BB0 {
229 compatible = "lantiq,gpio-stp-xway";
230 reg = <0xE100BB0 0x40>;
231 #gpio-cells = <2>;
232 gpio-controller;
233
234 lantiq,shadow = <0xffff>;
235 lantiq,groups = <0x7>;
236 lantiq,dsl = <0x3>;
237 lantiq,phy1 = <0x7>;
238 lantiq,phy2 = <0x7>;
239 /* lantiq,rising; */
240 };
241
242 ifxhcd@E101000 {
243 status = "okay";
244 gpios = <&gpio 33 0>;
245 lantiq,portmask = <0x3>;
246 };
247
248 pci@E105400 {
249 #address-cells = <3>;
250 #size-cells = <2>;
251 #interrupt-cells = <1>;
252 compatible = "lantiq,pci-xway1";
253 bus-range = <0x0 0x0>;
254 ranges = <0x2000000 0 0x8000000 0x8000000 0 0x2000000 /* pci memory */
255 0x1000000 0 0x00000000 0xAE00000 0 0x200000>; /* io space */
256 reg = <0x7000000 0x8000 /* config space */
257 0xE105400 0x400>; /* pci bridge */
258 lantiq,bus-clock = <33333333>;
259 /*lantiq,external-clock;*/
260 lantiq,delay-hi = <0>; /* 0ns delay */
261 lantiq,delay-lo = <0>; /* 0.0ns delay */
262 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
263 interrupt-map = <
264 0x7000 0 0 1 &icu0 29 1 // slot 14, irq 29
265 >;
266 gpios-reset = <&gpio 21 0>;
267 req-mask = <0x1>; /* GNT1 */
268 };
269 };
270
271 gphy-xrx200 {
272 compatible = "lantiq,phy-xrx200";
273 firmware = "lantiq/vr9_phy11g_a2x.bin";
274 phys = [ 00 01 ];
275 };
276
277 gpio-keys-polled {
278 compatible = "gpio-keys-polled";
279 #address-cells = <1>;
280 #size-cells = <0>;
281 poll-interval = <100>;
282 /* reset {
283 label = "reset";
284 gpios = <&gpio 7 1>;
285 linux,code = <0x198>;
286 };*/
287 paging {
288 label = "paging";
289 gpios = <&gpio 11 1>;
290 linux,code = <0x100>;
291 };
292 };
293
294 gpio-leds {
295 compatible = "gpio-leds";
296
297 power {
298 label = "power";
299 gpios = <&stp 9 0>;
300 default-state = "on";
301 };
302 warning {
303 label = "warning";
304 gpios = <&stp 22 0>;
305 };
306 fxs1 {
307 label = "fxs1";
308 gpios = <&stp 21 0>;
309 };
310 fxs2 {
311 label = "fxs2";
312 gpios = <&stp 20 0>;
313 };
314 fxo {
315 label = "fxo";
316 gpios = <&stp 19 0>;
317 };
318 usb1 {
319 label = "usb1";
320 gpios = <&stp 18 0>;
321 };
322 usb2 {
323 label = "usb2";
324 gpios = <&stp 15 0>;
325 };
326 sd {
327 label = "sd";
328 gpios = <&stp 14 0>;
329 };
330 wps {
331 label = "wps";
332 gpios = <&stp 12 0>;
333 };
334 };
335 };