]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: orion5x: add gigabit ethernet and mvmdio device tree nodes
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tue, 2 Jul 2013 11:00:20 +0000 (13:00 +0200)
committerJason Cooper <jason@lakedaemon.net>
Thu, 25 Jul 2013 20:54:10 +0000 (20:54 +0000)
This patch adds mv643xx_eth and mvmdio device tree nodes for DT enabled
Orion5x 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>
arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts
arch/arm/boot/dts/orion5x.dtsi

index 0077fc8510b78d5b92b03a5f3a7951ee5e9d5753..aed83deaa991c9b8856218ef0792f1c3f51cc2b4 100644 (file)
                };
        };
 };
+
+&mdio {
+       status = "okay";
+
+       ethphy: ethernet-phy {
+               device-type = "ethernet-phy";
+               reg = <8>;
+       };
+};
+
+&eth {
+       status = "okay";
+
+       ethernet-port@0 {
+               phy-handle = <&ethphy>;
+       };
+};
index 892c64e3f1e1dd697d08f2c58bf6377f05104c2d..6fe45d590745016fedf5dc1769e9e815f7e6c450 100644 (file)
                        interrupts = <28>;
                        status = "okay";
                };
+
+               mdio: mdio-bus@72004 {
+                       compatible = "marvell,orion-mdio";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x72004 0x84>;
+                       interrupts = <22>;
+                       status = "disabled";
+
+                       /* add phy nodes in board file */
+               };
+
+               eth: ethernet-controller@72000 {
+                       compatible = "marvell,orion-eth";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x72000 0x4000>;
+                       marvell,tx-checksum-limit = <1600>;
+                       status = "disabled";
+
+                       ethernet-port@0 {
+                               device_type = "network";
+                               compatible = "marvell,orion-eth-port";
+                               reg = <0>;
+                               /* overwrite MAC address in bootloader */
+                               local-mac-address = [00 00 00 00 00 00];
+                               /* set phy-handle property in board file */
+                       };
+               };
        };
 };