]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: kirkwood: add gigabit ethernet and mvmdio device tree nodes
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Sun, 7 Jul 2013 20:34:56 +0000 (22:34 +0200)
committerJason Cooper <jason@lakedaemon.net>
Thu, 25 Jul 2013 20:54:04 +0000 (20:54 +0000)
This patch adds mv643xx_eth and mvmdio device tree nodes for DT enabled
Kirkwood boards. Phy nodes are also added with reg property set on a
per-board basis.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
27 files changed:
arch/arm/boot/dts/kirkwood-cloudbox.dts
arch/arm/boot/dts/kirkwood-db.dtsi
arch/arm/boot/dts/kirkwood-dnskw.dtsi
arch/arm/boot/dts/kirkwood-dockstar.dts
arch/arm/boot/dts/kirkwood-dreamplug.dts
arch/arm/boot/dts/kirkwood-goflexnet.dts
arch/arm/boot/dts/kirkwood-guruplug-server-plus.dts
arch/arm/boot/dts/kirkwood-ib62x0.dts
arch/arm/boot/dts/kirkwood-iconnect.dts
arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts
arch/arm/boot/dts/kirkwood-is2.dts
arch/arm/boot/dts/kirkwood-km_kirkwood.dts
arch/arm/boot/dts/kirkwood-lsxl.dtsi
arch/arm/boot/dts/kirkwood-mplcec4.dts
arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts
arch/arm/boot/dts/kirkwood-ns2-common.dtsi
arch/arm/boot/dts/kirkwood-ns2.dts
arch/arm/boot/dts/kirkwood-ns2lite.dts
arch/arm/boot/dts/kirkwood-ns2max.dts
arch/arm/boot/dts/kirkwood-ns2mini.dts
arch/arm/boot/dts/kirkwood-openblocks_a6.dts
arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi
arch/arm/boot/dts/kirkwood-topkick.dts
arch/arm/boot/dts/kirkwood-ts219-6281.dts
arch/arm/boot/dts/kirkwood-ts219-6282.dts
arch/arm/boot/dts/kirkwood-ts219.dtsi
arch/arm/boot/dts/kirkwood.dtsi

index 00c48d26de68024dd941ea4f35586d8d597c8699..85eed62cadd5c1a05b86824535adfd27af7ec487 100644 (file)
                gpios = <&gpio0 17 0>;
        };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy@0 {
+               device_type = "ethernet-phy";
+               reg = <0>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
index c87cfb8161202fd1def8b496e00ed256505c0de5..ca8bf362748ab78f95288af40289de6d27594954 100644 (file)
                };
        };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy@8 {
+               device_type = "ethernet-phy";
+               reg = <8>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
index 0afe1d07c8038913d4580cd125424ba5aabe126e..f600ed7adc4c2bcde3b7fe9323b27b47f7ed9636 100644 (file)
                };
        };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy@8 {
+               device_type = "ethernet-phy";
+               reg = <8>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
index 7714742bb8d8cafc9b8be4be6fbec9b25317a6b3..915aca6cebe7eaf8d3552e7710d9394c922ebc62 100644 (file)
                };
        };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy@0 {
+               device_type = "ethernet-phy";
+               compatible = "marvell,88e1116";
+               reg = <0>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
index 36c7ba38d5000818768d8d275ab3af6d8b88ec6b..300fbf83e2735c1c3b68cbeb0be0c97d729b534e 100644 (file)
                };
        };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy@0 {
+               device_type = "ethernet-phy";
+               reg = <0>;
+       };
+
+       ethphy1: ethernet-phy@1 {
+               device_type = "ethernet-phy";
+               reg = <1>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
+
+&eth1 {
+       status = "okay";
+       ethernet1-port@0 {
+               phy-handle = <&ethphy1>;
+       };
+};
index 31caa64050657da5ccc5b0fb169e0e7fbbc25977..e9ba68e336ad988bba86222d979ddc41472808a4 100644 (file)
                };
        };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy@0 {
+               device_type = "ethernet-phy";
+               reg = <0>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
index 1e642f39b1541f9984495f8caa92e74e1c637786..e696c31f88a2080fdbd2d11ae1b79993c7cebc22 100644 (file)
                };
        };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy@0 {
+               device_type = "ethernet-phy";
+               compatible = "marvell,88e1121";
+               reg = <0>;
+       };
+
+       ethphy1: ethernet-phy@1 {
+               device_type = "ethernet-phy";
+               compatible = "marvell,88e1121";
+               reg = <1>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
+
+&eth1 {
+       status = "okay";
+       ethernet1-port@0 {
+               phy-handle = <&ethphy1>;
+       };
+};
index 20c4b081f420257881151b975f873d56cd7bd8e9..69019b8d12df1d28524550dc43d61d8266e70910 100644 (file)
 
 
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy@8 {
+               device_type = "ethernet-phy";
+               reg = <8>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
index 441204e8abc6aa969b371a44ca2fd7dab97e9bcc..3d99164c263fd04b311e3ce810079c9e9a5e7034 100644 (file)
                };
        };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy@11 {
+               device_type = "ethernet-phy";
+               reg = <11>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
index 00a7bfe5e83bbb060efc14d84489dad1ff588ea0..b08c733684a6e94c8bfc9c32c05ad1d3598d60fe 100644 (file)
                };
        };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy1: ethernet-phy@11 {
+               device_type = "ethernet-phy";
+               reg = <11>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               speed = <1000>;
+               duplex = <1>;
+       };
+};
+
+&eth1 {
+       status = "okay";
+       ethernet1-port@0 {
+               phy-handle = <&ethphy1>;
+       };
+};
index c3f036b86ccad52691ddcc4c564e4f77f4a6c911..ff9be4523a343b5fc5d78c1177994626565122f4 100644 (file)
@@ -30,3 +30,5 @@
                };
        };
 };
+
+&ethphy0 { reg = <8>; };
index 5d9f5ea787001ecf8f715f38c83e91e22c804cb5..466280b6ab31506b92c315520c3f9eece936c101 100644 (file)
                i2c-gpio,delay-us = <2>;        /* ~100 kHz */
        };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy@0 {
+               device_type = "ethernet-phy";
+               reg = <0>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
index 31b17f5b9d285cc3fdb956157fe2a79b0cdccb63..93397b1e40279bd2a9822da0303cbbe4a9f7efb4 100644 (file)
                };
        };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy@0 {
+               device_type = "ethernet-phy";
+               reg = <0>;
+       };
+
+       ethphy1: ethernet-phy@8 {
+               device_type = "ethernet-phy";
+               reg = <8>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
+
+&eth1 {
+       status = "okay";
+       ethernet1-port@0 {
+               phy-handle = <&ethphy1>;
+       };
+};
index 6179333fd71f33e628146a5bce9ed68140ffdbf3..def825f4348994422988f36924f73d5a14d26345 100644 (file)
        };
 };
 
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy@1 {
+               device_type = "ethernet-phy";
+               reg = <1>;
+       };
+
+       ethphy1: ethernet-phy@2 {
+               device_type = "ethernet-phy";
+               reg = <2>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
+
+&eth1 {
+       status = "okay";
+       ethernet1-port@0 {
+               phy-handle = <&ethphy1>;
+       };
+};
index ad6ade7d91912fb146adee2b929984ac3790e3ef..716b203622bd9585d3efec44bcedad581e840858 100644 (file)
                 };
         };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy@0 {
+               device_type = "ethernet-phy";
+               reg = <0>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
index 2afac04058167dc896283d452426e145bbcb4f5c..e7b80179c6d2f478dc3dc1664c7dec446ef14ea0 100644 (file)
        };
 
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy {
+               device_type = "ethernet-phy";
+                /* overwrite reg property in board file */
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
index b50e93d7796c27c6beb583733257d3795175169b..e93276d918b8114784a8e9a122a23f4ab2973a71 100644 (file)
@@ -30,3 +30,5 @@
                };
        };
 };
+
+&ethphy0 { reg = <8>; };
index af8259fe89552e610c6bd0122ae25638e81fb093..34f5e69b9f15f836f5337af9d92514fdc5561f01 100644 (file)
@@ -30,3 +30,5 @@
                };
        };
 };
+
+&ethphy0 { reg = <0>; };
index 85f24d227e17cffb41ad712b0fa81e6d0d9a88be..f834c558b69578e46f8e42aa851a77c2a938f215 100644 (file)
@@ -49,3 +49,5 @@
                };
        };
 };
+
+&ethphy0 { reg = <8>; };
index 329e530bffe72c32d3dc62165ea1284419baf2e7..b6b66ead90c355012f1cf0dbbd809c096a1befc0 100644 (file)
@@ -50,3 +50,5 @@
                };
        };
 };
+
+&ethphy0 { reg = <0>; };
index 38dc8517d777244fb75f9848cccb449b80a338d3..7235f0c4bf8fa9351b24ffabbaf231fac021c461 100644 (file)
                };
        };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy@0 {
+               device_type = "ethernet-phy";
+               reg = <0>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
index f7143f128504cbca0a2bbf3d290bb294a3a90209..f55a145ec52e3833c86c5a821ff2a2112db19fc3 100644 (file)
                };
        };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy@0 {
+               device_type = "ethernet-phy";
+               reg = <0>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
index f2052d7bc10f1ffc0ee39acc796a21227c5a432c..184b8c5dd1a8ce08b5b75740b76a183c6efc62d8 100644 (file)
                };
        };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy@0 {
+               device_type = "ethernet-phy";
+               reg = <0>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
index 6dd1038e4de401b4a601aa3e91a6603b7a1f60ab..222435d0ed2f67327892e20f39588e6f32791f12 100644 (file)
@@ -50,4 +50,6 @@
                        gpios = <&gpio0 16 1>;
                };
        };
-};
\ No newline at end of file
+};
+
+&ethphy0 { reg = <8>; };
index 6fdc5ffcaae54244c544cc2242ed96fe5f889265..510c5553cfa0729c5a625b3f6ccd985936b2b791 100644 (file)
@@ -58,4 +58,6 @@
                        gpios = <&gpio1 5 1>;
                };
        };
-};
\ No newline at end of file
+};
+
+&ethphy0 { reg = <0>; };
index 0c9a94cd666c597dab629b8a9a7908f02e82abd6..102eaeb426aa91b3f10b8a24652143bf7122aca5 100644 (file)
                };
        };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy0: ethernet-phy {
+               device_type = "ethernet-phy";
+                /* overwrite reg property in board file */
+       };
+};
+
+&eth0 {
+       status = "okay";
+       ethernet0-port@0 {
+               phy-handle = <&ethphy0>;
+       };
+};
index 9809fc1f105ccf683ede2fc11afee659a483a5dc..e3f3f71ef991d54a9a1f11db854c14ae974a4ad8 100644 (file)
                        clocks = <&gate_clk 17>;
                        status = "okay";
                };
+
+               mdio: mdio-bus@72004 {
+                       compatible = "marvell,orion-mdio";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x72004 0x84>;
+                       interrupts = <46>;
+                       clocks = <&gate_clk 0>;
+                       status = "disabled";
+
+                       /* add phy nodes in board file */
+               };
+
+               eth0: ethernet-controller@72000 {
+                       compatible = "marvell,kirkwood-eth";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x72000 0x4000>;
+                       clocks = <&gate_clk 0>;
+                       marvell,tx-checksum-limit = <1600>;
+                       status = "disabled";
+
+                       ethernet0-port@0 {
+                               device_type = "network";
+                               compatible = "marvell,kirkwood-eth-port";
+                               reg = <0>;
+                               interrupts = <11>;
+                               /* overwrite MAC address in bootloader */
+                               local-mac-address = [00 00 00 00 00 00];
+                               /* set phy-handle property in board file */
+                       };
+               };
+
+               eth1: ethernet-controller@76000 {
+                       compatible = "marvell,kirkwood-eth";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x76000 0x4000>;
+                       clocks = <&gate_clk 19>;
+                       marvell,tx-checksum-limit = <1600>;
+                       status = "disabled";
+
+                       ethernet1-port@0 {
+                               device_type = "network";
+                               compatible = "marvell,kirkwood-eth-port";
+                               reg = <0>;
+                               interrupts = <15>;
+                               /* overwrite MAC address in bootloader */
+                               local-mac-address = [00 00 00 00 00 00];
+                               /* set phy-handle property in board file */
+                       };
+               };
        };
 };