1
0
Fork 0

dt-bindings: net: mdio: Add child nodes

The child nodes of a mdio bus are supposed to be ethernet PHYs, with a reg
property. Make sure that's validated as well.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Rob Herring <robh@kernel.org>
alistair/sunxi64-5.4-dsi
Maxime Ripard 2019-07-03 11:55:09 +02:00 committed by Rob Herring
parent 960ebc8ac6
commit 5b19b6c31c
1 changed files with 14 additions and 0 deletions

View File

@ -39,6 +39,20 @@ properties:
and must therefore be appropriately determined based on all PHY
requirements (maximum value of all per-PHY RESET pulse widths).
patternProperties:
"^ethernet-phy@[0-9a-f]+$":
type: object
properties:
reg:
minimum: 0
maximum: 31
description:
The ID number for the PHY.
required:
- reg
examples:
- |
davinci_mdio: mdio@5c030000 {