Hello. On 8/9/2015 4:29 AM, Andrew Lunn wrote:
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.
Signed-off-by: Andrew Lunn <and...@lunn.ch> Reviewed-by: Florian Fainelli <f.faine...@gmail.com> --- v2: Fix documentation, which placed the properties documentation in the wrong place. --- Documentation/devicetree/bindings/net/dsa/dsa.txt | 5 +++++ net/dsa/dsa.c | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.txt b/Documentation/devicetree/bindings/net/dsa/dsa.txt index f0b4cd72411d..fc06f4a7c788 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.txt +++ b/Documentation/devicetree/bindings/net/dsa/dsa.txt @@ -32,6 +32,10 @@ A switch child node has the following optional property: the presence and/or size of a connected EEPROM, otherwise optional. +- mii-bus : Should be a phandle to a valid MDIO bus device node.
Why not call it "mdio-bus"?
+ This mii-bus will be used in preference to the + global dsa,mii-bus defined above, for this switch. + A switch may have multiple "port" children nodes Each port children node must have the following mandatory properties:
[...] MBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html