Skip to content

Commit

Permalink
dt-bindings: net: Expand pcs-handle to an array
Browse files Browse the repository at this point in the history
This allows multiple phandles to be specified for pcs-handle, such as
when multiple PCSs are present for a single MAC. To differentiate
between them, also add a pcs-handle-names property.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sean Anderson authored and David S. Miller committed Oct 19, 2022
1 parent 88a2b3c commit 76025ee
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ properties:

properties:
pcs-handle:
maxItems: 1
description:
phandle pointing to a PCS sub-node compatible with
renesas,rzn1-miic.yaml#
$ref: /schemas/types.yaml#/definitions/phandle

unevaluatedProperties: false

Expand Down
11 changes: 10 additions & 1 deletion Documentation/devicetree/bindings/net/ethernet-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,17 @@ properties:
$ref: "#/properties/phy-connection-type"

pcs-handle:
$ref: /schemas/types.yaml#/definitions/phandle
$ref: /schemas/types.yaml#/definitions/phandle-array
items:
maxItems: 1
description:
Specifies a reference to a node representing a PCS PHY device on a MDIO
bus to link with an external PHY (phy-handle) if exists.

pcs-handle-names:
description:
The name of each PCS in pcs-handle.

phy-handle:
$ref: /schemas/types.yaml#/definitions/phandle
description:
Expand Down Expand Up @@ -216,6 +222,9 @@ properties:
required:
- speed

dependencies:
pcs-handle-names: [pcs-handle]

allOf:
- if:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ properties:
phy-mode: true

pcs-handle:
$ref: /schemas/types.yaml#/definitions/phandle
maxItems: 1
description:
A reference to a node representing a PCS PHY device found on
the internal MDIO bus.
Expand Down

0 comments on commit 76025ee

Please sign in to comment.