diff options
author | Andrew Lunn <andrew@lunn.ch> | 2015-08-08 17:09:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-10 23:25:02 +0200 |
commit | 6bc6d0a88179b732b9a5e40e05099dc219d1b3cb (patch) | |
tree | 06ca8d36ecf28a6319ce7bd9f1f6f57b14929c9f /Documentation | |
parent | net: dsa: mv88e6352: Use mnemonics for EEPROM registers and bits (diff) | |
download | linux-6bc6d0a88179b732b9a5e40e05099dc219d1b3cb.tar.xz linux-6bc6d0a88179b732b9a5e40e05099dc219d1b3cb.zip |
dsa: Support multiple MDIO busses
When using a cluster of switches, some topologies will have an MDIO
bus per switch, not one for the whole cluster. Allow this to be
represented in the device tree, by adding an optional mii-bus property
at the switch level. The old platform_device method of instantiation
supports this already, so only the device tree binding needs extending
with an additional optional phandle.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/net/dsa/dsa.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.txt b/Documentation/devicetree/bindings/net/dsa/dsa.txt index f0b4cd72411d..9cf9a0ec333c 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.txt +++ b/Documentation/devicetree/bindings/net/dsa/dsa.txt @@ -58,6 +58,10 @@ Optionnal property: Documentation/devicetree/bindings/net/ethernet.txt for details. +- mii-bus : Should be a phandle to a valid MDIO bus device node. + This mii-bus will be used in preference to the + global dsa,mii-bus defined above, for this switch. + Optional subnodes: - fixed-link : Fixed-link subnode describing a link to a non-MDIO managed entity. See @@ -107,6 +111,7 @@ Example: #address-cells = <1>; #size-cells = <0>; reg = <17 1>; /* MDIO address 17, switch 1 in tree */ + mii-bus = <&mii_bus1>; switch1uplink: port@0 { reg = <0>; |