Commit a87590c4 authored by Niklas Söderlund's avatar Niklas Söderlund Committed by Jakub Kicinski

dt-bindings: net: renesas,etheravb: Add optional MDIO bus node

The Renesas Ethernet AVB bindings do not allow the MDIO bus to be
described. This has not been needed as only a single PHY is
supported and no MDIO bus properties have been needed.

Add an optional mdio node to the binding which allows the MDIO bus to be
described and allow bus properties to be set.
Signed-off-by: default avatarNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: default avatarSergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240325153451.2366083-2-niklas.soderlund+renesas@ragnatech.seSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent fb984d17
...@@ -88,10 +88,16 @@ properties: ...@@ -88,10 +88,16 @@ properties:
'#address-cells': '#address-cells':
description: Number of address cells for the MDIO bus. description: Number of address cells for the MDIO bus.
const: 1 const: 1
deprecated: true
'#size-cells': '#size-cells':
description: Number of size cells on the MDIO bus. description: Number of size cells on the MDIO bus.
const: 0 const: 0
deprecated: true
mdio:
$ref: /schemas/net/mdio.yaml#
unevaluatedProperties: false
renesas,no-ether-link: renesas,no-ether-link:
type: boolean type: boolean
...@@ -110,9 +116,13 @@ properties: ...@@ -110,9 +116,13 @@ properties:
tx-internal-delay-ps: tx-internal-delay-ps:
enum: [0, 2000] enum: [0, 2000]
# In older bindings there where no mdio child-node to describe the MDIO bus
# and the PHY. To not fail older bindings accept any node with an address. New
# users should describe the PHY inside the mdio child-node.
patternProperties: patternProperties:
"@[0-9a-f]$": "@[0-9a-f]$":
type: object type: object
deprecated: true
required: required:
- compatible - compatible
...@@ -123,8 +133,6 @@ required: ...@@ -123,8 +133,6 @@ required:
- resets - resets
- phy-mode - phy-mode
- phy-handle - phy-handle
- '#address-cells'
- '#size-cells'
allOf: allOf:
- $ref: ethernet-controller.yaml# - $ref: ethernet-controller.yaml#
......
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