aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/net/mdio.yaml
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@bootlin.com>2019-07-03 11:55:09 +0200
committerRob Herring <robh@kernel.org>2019-07-03 13:18:11 -0600
commit5b19b6c31c21d33fde74f3bf3c2a3ae3d010f114 (patch)
tree3cb6a0c1b9fabdd4124406725a02ca9c6042d5bc /Documentation/devicetree/bindings/net/mdio.yaml
parentdt-bindings: net: mdio: Add address and size cells (diff)
downloadlinux-dev-5b19b6c31c21d33fde74f3bf3c2a3ae3d010f114.tar.xz
linux-dev-5b19b6c31c21d33fde74f3bf3c2a3ae3d010f114.zip
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>
Diffstat (limited to 'Documentation/devicetree/bindings/net/mdio.yaml')
-rw-r--r--Documentation/devicetree/bindings/net/mdio.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/mdio.yaml b/Documentation/devicetree/bindings/net/mdio.yaml
index 24d67074d494..5d08d2ffd4eb 100644
--- a/Documentation/devicetree/bindings/net/mdio.yaml
+++ b/Documentation/devicetree/bindings/net/mdio.yaml
@@ -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 {