Commit 76025ee5 authored by Sean Anderson's avatar Sean Anderson Committed by David S. Miller

dt-bindings: net: Expand pcs-handle to an array

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: default avatarSean Anderson <sean.anderson@seco.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 88a2b3cb
...@@ -74,10 +74,10 @@ properties: ...@@ -74,10 +74,10 @@ properties:
properties: properties:
pcs-handle: pcs-handle:
maxItems: 1
description: description:
phandle pointing to a PCS sub-node compatible with phandle pointing to a PCS sub-node compatible with
renesas,rzn1-miic.yaml# renesas,rzn1-miic.yaml#
$ref: /schemas/types.yaml#/definitions/phandle
unevaluatedProperties: false unevaluatedProperties: false
......
...@@ -108,11 +108,17 @@ properties: ...@@ -108,11 +108,17 @@ properties:
$ref: "#/properties/phy-connection-type" $ref: "#/properties/phy-connection-type"
pcs-handle: pcs-handle:
$ref: /schemas/types.yaml#/definitions/phandle $ref: /schemas/types.yaml#/definitions/phandle-array
items:
maxItems: 1
description: description:
Specifies a reference to a node representing a PCS PHY device on a MDIO 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. 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: phy-handle:
$ref: /schemas/types.yaml#/definitions/phandle $ref: /schemas/types.yaml#/definitions/phandle
description: description:
...@@ -216,6 +222,9 @@ properties: ...@@ -216,6 +222,9 @@ properties:
required: required:
- speed - speed
dependencies:
pcs-handle-names: [pcs-handle]
allOf: allOf:
- if: - if:
properties: properties:
......
...@@ -31,7 +31,7 @@ properties: ...@@ -31,7 +31,7 @@ properties:
phy-mode: true phy-mode: true
pcs-handle: pcs-handle:
$ref: /schemas/types.yaml#/definitions/phandle maxItems: 1
description: description:
A reference to a node representing a PCS PHY device found on A reference to a node representing a PCS PHY device found on
the internal MDIO bus. the internal MDIO bus.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment