Skip to content

Commit a87590c

Browse files
Niklas Söderlundkuba-moo
authored andcommitted
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: Niklas Söderlund <[email protected]> Reviewed-by: Sergey Shtylyov <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent fb984d1 commit a87590c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Documentation/devicetree/bindings/net/renesas,etheravb.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,16 @@ properties:
8888
'#address-cells':
8989
description: Number of address cells for the MDIO bus.
9090
const: 1
91+
deprecated: true
9192

9293
'#size-cells':
9394
description: Number of size cells on the MDIO bus.
9495
const: 0
96+
deprecated: true
97+
98+
mdio:
99+
$ref: /schemas/net/mdio.yaml#
100+
unevaluatedProperties: false
95101

96102
renesas,no-ether-link:
97103
type: boolean
@@ -110,9 +116,13 @@ properties:
110116
tx-internal-delay-ps:
111117
enum: [0, 2000]
112118

119+
# In older bindings there where no mdio child-node to describe the MDIO bus
120+
# and the PHY. To not fail older bindings accept any node with an address. New
121+
# users should describe the PHY inside the mdio child-node.
113122
patternProperties:
114123
"@[0-9a-f]$":
115124
type: object
125+
deprecated: true
116126

117127
required:
118128
- compatible
@@ -123,8 +133,6 @@ required:
123133
- resets
124134
- phy-mode
125135
- phy-handle
126-
- '#address-cells'
127-
- '#size-cells'
128136

129137
allOf:
130138
- $ref: ethernet-controller.yaml#

0 commit comments

Comments
 (0)