]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
ARM: dove: add gigabit ethernet and mvmdio device tree nodes
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tue, 2 Jul 2013 11:00:18 +0000 (13:00 +0200)
committerJason Cooper <jason@lakedaemon.net>
Thu, 25 Jul 2013 20:53:57 +0000 (20:53 +0000)
This patch adds orion-eth and mvmdio device tree nodes for DT enabled
Dove boards. As there is only one ethernet controller on Dove, a default
phy node is also added with a note to set its reg property 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/dove-cubox.dts
arch/arm/boot/dts/dove.dtsi

index 5cae2ab69762a8298a694b21f1ee71c753a4a60c..955188f6d2c16111282f08281083c68d44c9c71f 100644 (file)
 
 &uart0 { status = "okay"; };
 &sata0 { status = "okay"; };
+&mdio { status = "okay"; };
+&eth { status = "okay"; };
+
+&ethphy {
+       compatible = "marvell,88e1310";
+       reg = <1>;
+};
 
 &i2c0 {
        status = "okay";
index 6cab46849cdb471d44b81ddf21f216999c6baeb4..8612658ec3c181200fa6dd2a38eeb28489adc9d9 100644 (file)
                                dmacap,xor;
                        };
                };
+
+               mdio: mdio-bus@72004 {
+                       compatible = "marvell,orion-mdio";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x72004 0x84>;
+                       interrupts = <30>;
+                       clocks = <&gate_clk 2>;
+                       status = "disabled";
+
+                       ethphy: ethernet-phy {
+                               device-type = "ethernet-phy";
+                               /* set phy address in board file */
+                       };
+               };
+
+               eth: ethernet-controller@72000 {
+                       compatible = "marvell,orion-eth";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x72000 0x4000>;
+                       clocks = <&gate_clk 2>;
+                       marvell,tx-checksum-limit = <1600>;
+                       status = "disabled";
+
+                       ethernet-port@0 {
+                               device_type = "network";
+                               compatible = "marvell,orion-eth-port";
+                               reg = <0>;
+                               interrupts = <29>;
+                               /* overwrite MAC address in bootloader */
+                               local-mac-address = [00 00 00 00 00 00];
+                               phy-handle = <&ethphy>;
+                       };
+               };
        };
 };