diff options
author | Phil Reid | 2015-12-14 04:31:59 +0100 |
---|---|---|
committer | David S. Miller | 2015-12-16 05:20:56 +0100 |
commit | e34d65696d2ef13dc32f2a162556c86c461ed763 (patch) | |
tree | 5350a94348674da000ffc35acb92efc0c9cf91f2 /Documentation/devicetree/bindings/net/stmmac.txt | |
parent | Merge branch 'end-of-ip-csum' (diff) | |
download | kernel-qcow2-linux-e34d65696d2ef13dc32f2a162556c86c461ed763.tar.gz kernel-qcow2-linux-e34d65696d2ef13dc32f2a162556c86c461ed763.tar.xz kernel-qcow2-linux-e34d65696d2ef13dc32f2a162556c86c461ed763.zip |
stmmac: create of compatible mdio bus for stmmac driver
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.
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/devicetree/bindings/net/stmmac.txt')
-rw-r--r-- | Documentation/devicetree/bindings/net/stmmac.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/stmmac.txt b/Documentation/devicetree/bindings/net/stmmac.txt index f34fc3c81a75..fd5ddf8c4504 100644 --- a/Documentation/devicetree/bindings/net/stmmac.txt +++ b/Documentation/devicetree/bindings/net/stmmac.txt @@ -47,6 +47,7 @@ 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: @@ -65,4 +66,11 @@ Examples: tx-fifo-depth = <16384>; clocks = <&clock>; clock-names = "stmmaceth"; + mdio0 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + phy1: ethernet-phy@0 { + }; + }; }; |