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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: net: add generic ethernet-switch-port binding

The dsa-port.yaml binding had several references that can be common to all
ethernet ports, not just dsa-specific ones. Break out the generic bindings
to ethernet-switch-port.yaml they can be used by non-dsa drivers.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Suggested-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Colin Foster and committed by
David S. Miller
68e3e3be 7f5bccc8

+33 -28
+5 -23
Documentation/devicetree/bindings/net/dsa/dsa-port.yaml
··· 4 4 $id: http://devicetree.org/schemas/net/dsa/dsa-port.yaml# 5 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 - title: Ethernet Switch port 7 + title: Generic DSA Switch Port 8 8 9 9 maintainers: 10 10 - Andrew Lunn <andrew@lunn.ch> ··· 12 12 - Vladimir Oltean <olteanv@gmail.com> 13 13 14 14 description: 15 - Ethernet switch port Description 15 + A DSA switch port is a component of a switch that manages one MAC, and can 16 + pass Ethernet frames. It can act as a stanadard Ethernet switch port, or have 17 + DSA-specific functionality. 16 18 17 - allOf: 18 - - $ref: /schemas/net/ethernet-controller.yaml# 19 + $ref: /schemas/net/ethernet-switch-port.yaml# 19 20 20 21 properties: 21 22 reg: ··· 58 57 - rtl8_4 59 58 - rtl8_4t 60 59 - seville 61 - 62 - phy-handle: true 63 - 64 - phy-mode: true 65 - 66 - fixed-link: true 67 - 68 - mac-address: true 69 - 70 - sfp: true 71 - 72 - managed: true 73 - 74 - rx-internal-delay-ps: true 75 - 76 - tx-internal-delay-ps: true 77 - 78 - required: 79 - - reg 80 60 81 61 # CPU and DSA ports must have phylink-compatible link descriptions 82 62 if:
+26
Documentation/devicetree/bindings/net/ethernet-switch-port.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/net/ethernet-switch-port.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Generic Ethernet Switch Port 8 + 9 + maintainers: 10 + - Andrew Lunn <andrew@lunn.ch> 11 + - Florian Fainelli <f.fainelli@gmail.com> 12 + - Vladimir Oltean <olteanv@gmail.com> 13 + 14 + description: 15 + An Ethernet switch port is a component of a switch that manages one MAC, and 16 + can pass Ethernet frames. 17 + 18 + $ref: ethernet-controller.yaml# 19 + 20 + properties: 21 + reg: 22 + description: Port number 23 + 24 + additionalProperties: true 25 + 26 + ...
+1 -5
Documentation/devicetree/bindings/net/ethernet-switch.yaml
··· 40 40 type: object 41 41 description: Ethernet switch ports 42 42 43 - $ref: ethernet-controller.yaml# 44 - 45 - additionalProperties: true 46 - 47 43 oneOf: 48 44 - required: 49 45 - ports ··· 56 60 patternProperties: 57 61 "^(ethernet-)?port@[0-9]+$": 58 62 description: Ethernet switch ports 59 - $ref: ethernet-controller.yaml# 63 + $ref: ethernet-switch-port.yaml# 60 64 unevaluatedProperties: false 61 65 62 66 ...
+1
MAINTAINERS
··· 14543 14543 M: Vladimir Oltean <olteanv@gmail.com> 14544 14544 S: Maintained 14545 14545 F: Documentation/devicetree/bindings/net/dsa/ 14546 + F: Documentation/devicetree/bindings/net/ethernet-switch-port.yaml 14546 14547 F: Documentation/devicetree/bindings/net/ethernet-switch.yaml 14547 14548 F: drivers/net/dsa/ 14548 14549 F: include/linux/dsa/