Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: dsa: qca8k: Add QCA8334 binding documentation

Add support for the four-port variant of the Qualcomm QCA833x switch.

The CPU port default link settings can be reconfigured using
a fixed-link sub-node.

Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Michal Vokáč and committed by
David S. Miller
218bbea1 038ed45b

+22 -1
+22 -1
Documentation/devicetree/bindings/net/dsa/qca8k.txt
··· 2 2 3 3 Required properties: 4 4 5 - - compatible: should be "qca,qca8337" 5 + - compatible: should be one of: 6 + "qca,qca8334" 7 + "qca,qca8337" 8 + 6 9 - #size-cells: must be 0 7 10 - #address-cells: must be 1 8 11 ··· 16 13 port and PHY id, each subnode describing a port needs to have a valid phandle 17 14 referencing the internal PHY connected to it. The CPU port of this switch is 18 15 always port 0. 16 + 17 + A CPU port node has the following optional node: 18 + 19 + - fixed-link : Fixed-link subnode describing a link to a non-MDIO 20 + managed entity. See 21 + Documentation/devicetree/bindings/net/fixed-link.txt 22 + for details. 23 + 24 + For QCA8K the 'fixed-link' sub-node supports only the following properties: 25 + 26 + - 'speed' (integer, mandatory), to indicate the link speed. Accepted 27 + values are 10, 100 and 1000 28 + - 'full-duplex' (boolean, optional), to indicate that full duplex is 29 + used. When absent, half duplex is assumed. 19 30 20 31 Example: 21 32 ··· 70 53 label = "cpu"; 71 54 ethernet = <&gmac1>; 72 55 phy-mode = "rgmii"; 56 + fixed-link { 57 + speed = 1000; 58 + full-duplex; 59 + }; 73 60 }; 74 61 75 62 port@1 {