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 <[email protected]> --- Cc: Grant Likely <[email protected]> Cc: Rob Herring <[email protected]> Cc: Rob Landley <[email protected]> Cc: Lennert Buytenhek <[email protected]> Cc: David Miller <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Arnaud Patard <[email protected]> Cc: Russell King <[email protected]> Cc: Jason Cooper <[email protected]> Cc: Andrew Lunn <[email protected]> Cc: Jean-Francois Moine <[email protected]> Cc: Thomas Petazzoni <[email protected]> Cc: Simon Guinot <[email protected]> Cc: Jamie Lentin <[email protected]> Cc: Michael Walle <[email protected]> Cc: Eric Hutter <[email protected]> Cc: Joshua Coombs <[email protected]> Cc: Willy Tarreau <[email protected]> Cc: Simon Baatz <[email protected]> Cc: Alan M Butler <[email protected]> Cc: Nigel Roberts <[email protected]> Cc: Valentin Longchamp <[email protected]> Cc: Stefan Peter <[email protected]> Cc: Arnaud Ebalard <[email protected]> Cc: Nobuhiro Iwamatsu <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] --- 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 _______________________________________________ devicetree-discuss mailing list [email protected] https://lists.ozlabs.org/listinfo/devicetree-discuss
