1 From 678cc6aa6f66182cddfc0c8fc34d4ef196669b83 Mon Sep 17 00:00:00 2001
2 From: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
3 Date: Sun, 7 Jul 2013 22:34:56 +0200
4 Subject: [PATCH 26/29] ARM: kirkwood: add gigabit ethernet and mvmdio device
7 This patch adds mv643xx_eth and mvmdio device tree nodes for DT enabled
8 Kirkwood boards. Phy nodes are also added with reg property set on a
11 Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
12 Signed-off-by: Jason Cooper <jason@lakedaemon.net>
14 arch/arm/boot/dts/kirkwood-cloudbox.dts | 16 +++++++
15 arch/arm/boot/dts/kirkwood-db.dtsi | 16 +++++++
16 arch/arm/boot/dts/kirkwood-dnskw.dtsi | 16 +++++++
17 arch/arm/boot/dts/kirkwood-dockstar.dts | 17 +++++++
18 arch/arm/boot/dts/kirkwood-dreamplug.dts | 28 ++++++++++++
19 arch/arm/boot/dts/kirkwood-goflexnet.dts | 16 +++++++
20 .../arm/boot/dts/kirkwood-guruplug-server-plus.dts | 30 +++++++++++++
21 arch/arm/boot/dts/kirkwood-ib62x0.dts | 16 +++++++
22 arch/arm/boot/dts/kirkwood-iconnect.dts | 16 +++++++
23 arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts | 24 ++++++++++
24 arch/arm/boot/dts/kirkwood-is2.dts | 2 +
25 arch/arm/boot/dts/kirkwood-km_kirkwood.dts | 16 +++++++
26 arch/arm/boot/dts/kirkwood-lsxl.dtsi | 28 ++++++++++++
27 arch/arm/boot/dts/kirkwood-mplcec4.dts | 27 +++++++++++
28 .../boot/dts/kirkwood-netgear_readynas_duo_v2.dts | 16 +++++++
29 arch/arm/boot/dts/kirkwood-ns2-common.dtsi | 16 +++++++
30 arch/arm/boot/dts/kirkwood-ns2.dts | 2 +
31 arch/arm/boot/dts/kirkwood-ns2lite.dts | 2 +
32 arch/arm/boot/dts/kirkwood-ns2max.dts | 2 +
33 arch/arm/boot/dts/kirkwood-ns2mini.dts | 2 +
34 arch/arm/boot/dts/kirkwood-openblocks_a6.dts | 16 +++++++
35 arch/arm/boot/dts/kirkwood-topkick.dts | 16 +++++++
36 arch/arm/boot/dts/kirkwood-ts219-6281.dts | 4 +-
37 arch/arm/boot/dts/kirkwood-ts219-6282.dts | 4 +-
38 arch/arm/boot/dts/kirkwood-ts219.dtsi | 16 +++++++
39 arch/arm/boot/dts/kirkwood.dtsi | 52 ++++++++++++++++++++++
40 26 files changed, 414 insertions(+), 2 deletions(-)
42 --- a/arch/arm/boot/dts/kirkwood-cloudbox.dts
43 +++ b/arch/arm/boot/dts/kirkwood-cloudbox.dts
45 gpios = <&gpio0 17 0>;
52 + ethphy0: ethernet-phy@0 {
53 + device_type = "ethernet-phy";
61 + phy-handle = <ðphy0>;
64 --- a/arch/arm/boot/dts/kirkwood-db.dtsi
65 +++ b/arch/arm/boot/dts/kirkwood-db.dtsi
74 + ethphy0: ethernet-phy@8 {
75 + device_type = "ethernet-phy";
83 + phy-handle = <ðphy0>;
86 --- a/arch/arm/boot/dts/kirkwood-dnskw.dtsi
87 +++ b/arch/arm/boot/dts/kirkwood-dnskw.dtsi
96 + ethphy0: ethernet-phy@8 {
97 + device_type = "ethernet-phy";
105 + phy-handle = <ðphy0>;
108 --- a/arch/arm/boot/dts/kirkwood-dockstar.dts
109 +++ b/arch/arm/boot/dts/kirkwood-dockstar.dts
118 + ethphy0: ethernet-phy@0 {
119 + device_type = "ethernet-phy";
120 + compatible = "marvell,88e1116";
128 + phy-handle = <ðphy0>;
131 --- a/arch/arm/boot/dts/kirkwood-dreamplug.dts
132 +++ b/arch/arm/boot/dts/kirkwood-dreamplug.dts
141 + ethphy0: ethernet-phy@0 {
142 + device_type = "ethernet-phy";
146 + ethphy1: ethernet-phy@1 {
147 + device_type = "ethernet-phy";
155 + phy-handle = <ðphy0>;
162 + phy-handle = <ðphy1>;
165 --- a/arch/arm/boot/dts/kirkwood-goflexnet.dts
166 +++ b/arch/arm/boot/dts/kirkwood-goflexnet.dts
175 + ethphy0: ethernet-phy@0 {
176 + device_type = "ethernet-phy";
184 + phy-handle = <ðphy0>;
187 --- a/arch/arm/boot/dts/kirkwood-guruplug-server-plus.dts
188 +++ b/arch/arm/boot/dts/kirkwood-guruplug-server-plus.dts
197 + ethphy0: ethernet-phy@0 {
198 + device_type = "ethernet-phy";
199 + compatible = "marvell,88e1121";
203 + ethphy1: ethernet-phy@1 {
204 + device_type = "ethernet-phy";
205 + compatible = "marvell,88e1121";
213 + phy-handle = <ðphy0>;
220 + phy-handle = <ðphy1>;
223 --- a/arch/arm/boot/dts/kirkwood-ib62x0.dts
224 +++ b/arch/arm/boot/dts/kirkwood-ib62x0.dts
233 + ethphy0: ethernet-phy@8 {
234 + device_type = "ethernet-phy";
242 + phy-handle = <ðphy0>;
245 --- a/arch/arm/boot/dts/kirkwood-iconnect.dts
246 +++ b/arch/arm/boot/dts/kirkwood-iconnect.dts
255 + ethphy0: ethernet-phy@11 {
256 + device_type = "ethernet-phy";
264 + phy-handle = <ðphy0>;
267 --- a/arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts
268 +++ b/arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts
277 + ethphy1: ethernet-phy@11 {
278 + device_type = "ethernet-phy";
294 + phy-handle = <ðphy1>;
297 --- a/arch/arm/boot/dts/kirkwood-is2.dts
298 +++ b/arch/arm/boot/dts/kirkwood-is2.dts
304 +ðphy0 { reg = <8>; };
305 --- a/arch/arm/boot/dts/kirkwood-km_kirkwood.dts
306 +++ b/arch/arm/boot/dts/kirkwood-km_kirkwood.dts
315 + ethphy0: ethernet-phy@0 {
316 + device_type = "ethernet-phy";
324 + phy-handle = <ðphy0>;
327 --- a/arch/arm/boot/dts/kirkwood-lsxl.dtsi
328 +++ b/arch/arm/boot/dts/kirkwood-lsxl.dtsi
337 + ethphy0: ethernet-phy@0 {
338 + device_type = "ethernet-phy";
342 + ethphy1: ethernet-phy@8 {
343 + device_type = "ethernet-phy";
351 + phy-handle = <ðphy0>;
358 + phy-handle = <ðphy1>;
361 --- a/arch/arm/boot/dts/kirkwood-mplcec4.dts
362 +++ b/arch/arm/boot/dts/kirkwood-mplcec4.dts
370 + ethphy0: ethernet-phy@1 {
371 + device_type = "ethernet-phy";
375 + ethphy1: ethernet-phy@2 {
376 + device_type = "ethernet-phy";
384 + phy-handle = <ðphy0>;
391 + phy-handle = <ðphy1>;
394 --- a/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts
395 +++ b/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts
404 + ethphy0: ethernet-phy@0 {
405 + device_type = "ethernet-phy";
413 + phy-handle = <ðphy0>;
416 --- a/arch/arm/boot/dts/kirkwood-ns2-common.dtsi
417 +++ b/arch/arm/boot/dts/kirkwood-ns2-common.dtsi
426 + ethphy0: ethernet-phy {
427 + device_type = "ethernet-phy";
428 + /* overwrite reg property in board file */
435 + phy-handle = <ðphy0>;
438 --- a/arch/arm/boot/dts/kirkwood-ns2.dts
439 +++ b/arch/arm/boot/dts/kirkwood-ns2.dts
445 +ðphy0 { reg = <8>; };
446 --- a/arch/arm/boot/dts/kirkwood-ns2lite.dts
447 +++ b/arch/arm/boot/dts/kirkwood-ns2lite.dts
453 +ðphy0 { reg = <0>; };
454 --- a/arch/arm/boot/dts/kirkwood-ns2max.dts
455 +++ b/arch/arm/boot/dts/kirkwood-ns2max.dts
461 +ðphy0 { reg = <8>; };
462 --- a/arch/arm/boot/dts/kirkwood-ns2mini.dts
463 +++ b/arch/arm/boot/dts/kirkwood-ns2mini.dts
469 +ðphy0 { reg = <0>; };
470 --- a/arch/arm/boot/dts/kirkwood-openblocks_a6.dts
471 +++ b/arch/arm/boot/dts/kirkwood-openblocks_a6.dts
480 + ethphy0: ethernet-phy@0 {
481 + device_type = "ethernet-phy";
489 + phy-handle = <ðphy0>;
492 --- a/arch/arm/boot/dts/kirkwood-topkick.dts
493 +++ b/arch/arm/boot/dts/kirkwood-topkick.dts
502 + ethphy0: ethernet-phy@0 {
503 + device_type = "ethernet-phy";
511 + phy-handle = <ðphy0>;
514 --- a/arch/arm/boot/dts/kirkwood-ts219-6281.dts
515 +++ b/arch/arm/boot/dts/kirkwood-ts219-6281.dts
517 gpios = <&gpio0 16 1>;
521 \ No newline at end of file
524 +ðphy0 { reg = <8>; };
525 --- a/arch/arm/boot/dts/kirkwood-ts219-6282.dts
526 +++ b/arch/arm/boot/dts/kirkwood-ts219-6282.dts
528 gpios = <&gpio1 5 1>;
532 \ No newline at end of file
535 +ðphy0 { reg = <0>; };
536 --- a/arch/arm/boot/dts/kirkwood-ts219.dtsi
537 +++ b/arch/arm/boot/dts/kirkwood-ts219.dtsi
546 + ethphy0: ethernet-phy {
547 + device_type = "ethernet-phy";
548 + /* overwrite reg property in board file */
555 + phy-handle = <ðphy0>;
558 --- a/arch/arm/boot/dts/kirkwood.dtsi
559 +++ b/arch/arm/boot/dts/kirkwood.dtsi
561 clocks = <&gate_clk 4>;
565 + mdio: mdio-bus@72004 {
566 + compatible = "marvell,orion-mdio";
567 + #address-cells = <1>;
569 + reg = <0x72004 0x84>;
571 + clocks = <&gate_clk 0>;
572 + status = "disabled";
574 + /* add phy nodes in board file */
577 + eth0: ethernet-controller@72000 {
578 + compatible = "marvell,kirkwood-eth";
579 + #address-cells = <1>;
581 + reg = <0x72000 0x4000>;
582 + clocks = <&gate_clk 0>;
583 + marvell,tx-checksum-limit = <1600>;
584 + status = "disabled";
587 + device_type = "network";
588 + compatible = "marvell,kirkwood-eth-port";
591 + /* overwrite MAC address in bootloader */
592 + local-mac-address = [00 00 00 00 00 00];
593 + /* set phy-handle property in board file */
597 + eth1: ethernet-controller@76000 {
598 + compatible = "marvell,kirkwood-eth";
599 + #address-cells = <1>;
601 + reg = <0x76000 0x4000>;
602 + clocks = <&gate_clk 19>;
603 + marvell,tx-checksum-limit = <1600>;
604 + status = "disabled";
607 + device_type = "network";
608 + compatible = "marvell,kirkwood-eth-port";
611 + /* overwrite MAC address in bootloader */
612 + local-mac-address = [00 00 00 00 00 00];
613 + /* set phy-handle property in board file */