[PATCH v3 4/7] ARM: dove: add gigabit ethernet and mvmdio device tree nodes
From: Sebastian Hesselbarth <hidden>
Date: 2013-05-06 15:33:37
Also in:
linux-arm-kernel, linux-devicetree
Subsystem:
the rest · Maintainer:
Linus Torvalds
This patch adds mv643xx_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 overwrite its reg property on a per-board basis. Signed-off-by: Sebastian Hesselbarth <redacted> --- Cc: Grant Likely <redacted> Cc: Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org> Cc: Rob Landley <rob-VoJi6FS/r0vR7s880joybQ@public.gmane.org> Cc: Lennert Buytenhek <buytenh-OLH4Qvv75CYX/NnBR394Jw@public.gmane.org> Cc: David Miller <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org> Cc: Florian Fainelli <redacted> Cc: Arnaud Patard <redacted> Cc: Russell King <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> Cc: Jason Cooper <redacted> Cc: Andrew Lunn <redacted> Cc: Jean-Francois Moine <redacted> Cc: Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> Cc: Simon Guinot <redacted> Cc: Jamie Lentin <jm-Pj/HzkgeCk7QXOPxS62xeg@public.gmane.org> Cc: Michael Walle <redacted> Cc: Eric Hutter <redacted> Cc: Joshua Coombs <redacted> Cc: Willy Tarreau <w@1wt.eu> Cc: Simon Baatz <redacted> Cc: Alan M Butler <redacted> Cc: Nigel Roberts <nigel-BZPLJ9//LnDby3iVrkZq2A@public.gmane.org> Cc: Valentin Longchamp <redacted> Cc: Stefan Peter <redacted> Cc: Arnaud Ebalard <redacted> Cc: Nobuhiro Iwamatsu <redacted> Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Cc: linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org --- arch/arm/boot/dts/dove-cubox.dts | 8 ++++++++ arch/arm/boot/dts/dove.dtsi | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/dove-cubox.dts b/arch/arm/boot/dts/dove-cubox.dts
index 7e3065a..a52f016 100644
--- a/arch/arm/boot/dts/dove-cubox.dts
+++ b/arch/arm/boot/dts/dove-cubox.dts@@ -49,6 +49,14 @@ &uart0 { status = "okay"; }; &sata0 { status = "okay"; }; &i2c0 { status = "okay"; }; +&mdio { status = "okay"; }; +ð { status = "okay"; }; +ð0 { status = "okay"; }; + +ðphy { + compatible = "marvell,88e1310"; + reg = <1>; +}; &sdio0 { status = "okay";
diff --git a/arch/arm/boot/dts/dove.dtsi b/arch/arm/boot/dts/dove.dtsi
index 6cab468..8bb46c4 100644
--- a/arch/arm/boot/dts/dove.dtsi
+++ b/arch/arm/boot/dts/dove.dtsi@@ -258,5 +258,40 @@ dmacap,xor; }; }; + + mdio: mdio-bus@72004 { + compatible = "marvell,orion-mdio"; + reg = <0x72004 0x84>; + interrupts = <30>; + clocks = <&gate_clk 2>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + ethphy: ethernet-phy { + device_type = "ethernet-phy"; + /* overwrite reg property in board file */ + }; + }; + + eth: ethernet-controller@72000 { + compatible = "marvell,mv643xx-eth-block"; + reg = <0x72000 0x4000>; + clocks = <&gate_clk 2>; + #address-cells = <1>; + #size-cells = <0>; + tx-csum-limit = <1600>; + status = "disabled"; + + eth0: ethernet-port@0 { + compatible = "marvell,mv643xx-eth"; + device_type = "network"; + reg = <0>; + interrupts = <29>; + clocks = <&gate_clk 2>; + phy = <ðphy>; + status = "disabled"; + }; + }; }; };
--
1.7.2.5