[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151204161614.GA8791@rob-hp-laptop>
Date: Fri, 4 Dec 2015 10:16:14 -0600
From: Rob Herring <robh@...nel.org>
To: Phil Reid <preid@...ctromag.com.au>
Cc: netdev@...r.kernel.org, devicetree@...r.kernel.org,
davem@...emloft.net
Subject: Re: [PATCH 1/5] stmmac: create of compatible mdio bus for stmacc
driver
On Fri, Dec 04, 2015 at 05:08:41PM +0800, Phil Reid wrote:
> The DSA driver needs to be passed a reference to an mdio bus. Typically
> the mac is configured to use a fixed link but the mdio bus still needs
> to be registered so that it con configure the switch.
> This patch follows the same process as the altera tse ethernet driver for
> creation of the mdio bus.
>
> Signed-off-by: Phil Reid <preid@...ctromag.com.au>
> ---
> Documentation/devicetree/bindings/net/stmmac.txt | 10 ++++++-
> drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 32 ++++++++++++++++------
> .../net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 +-
> 3 files changed, 34 insertions(+), 10 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/net/stmmac.txt b/Documentation/devicetree/bindings/net/stmmac.txt
> index f34fc3c..0056c4c 100644
> --- a/Documentation/devicetree/bindings/net/stmmac.txt
> +++ b/Documentation/devicetree/bindings/net/stmmac.txt
> @@ -47,7 +47,8 @@ Optional properties:
> - snps,burst_len: The AXI burst lenth value of the AXI BUS MODE register.
> - tx-fifo-depth: See ethernet.txt file in the same directory
> - rx-fifo-depth: See ethernet.txt file in the same directory
> -
> +- mdio: with compatible = "snps,dwmac-mdio", create and register mdio bus.
> +
> Examples:
>
> gmac0: ethernet@...00000 {
> @@ -65,4 +66,11 @@ Examples:
> tx-fifo-depth = <16384>;
> clocks = <&clock>;
> clock-names = "stmmaceth";
> + mdio0: mdio@0 {
Don't need a unit address here. Otherwise, for the binding:
Acked-by: Rob Herring <robh@...nel.org>
> + #address-cells = <1>;
> + #size-cells = <0>;
> + compatible = "snps,dwmac-mdio";
> + phy1: ethernet-phy@0 {
> + };
> + };
> };
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists