From: Maxime Ripard <maxime.ripard@bootlin.com>
To: Mark Rutland <mark.rutland@arm.com>,
Rob Herring <robh+dt@kernel.org>,
Frank Rowand <frowand.list@gmail.com>
Cc: devicetree@vger.kernel.org, Maxime Ripard <maxime.ripard@bootlin.com>
Subject: [PATCH 3/7] dt-bindings: net: mdio: Add child nodes
Date: Wed, 3 Jul 2019 11:55:09 +0200 [thread overview]
Message-ID: <20190703095513.12340-3-maxime.ripard@bootlin.com> (raw)
In-Reply-To: <20190703095513.12340-1-maxime.ripard@bootlin.com>
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>
---
Documentation/devicetree/bindings/net/mdio.yaml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
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 {
--
2.21.0
next prev parent reply other threads:[~2019-07-03 9:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-03 9:55 [PATCH 1/7] dt-bindings: net: mdio: Add a nodename pattern Maxime Ripard
2019-07-03 9:55 ` [PATCH 2/7] dt-bindings: net: mdio: Add address and size cells Maxime Ripard
2019-07-03 9:55 ` Maxime Ripard [this message]
2019-07-03 13:53 ` [PATCH 3/7] dt-bindings: net: mdio: Add child nodes Rob Herring
2019-07-03 14:13 ` Maxime Ripard
2019-07-03 14:20 ` Rob Herring
2019-07-03 19:57 ` Maxime Ripard
2019-07-03 20:14 ` Rob Herring
2019-07-03 9:55 ` [PATCH 4/7] dt-bindings: display: Fix simple-framebuffer example Maxime Ripard
2019-07-03 9:55 ` [PATCH 5/7] dt-bindings: simple-framebuffer: Add requirement for pipelines Maxime Ripard
2019-07-03 9:55 ` [PATCH 6/7] dt-bindings: net: Use phy-mode instead of phy-connection-type Maxime Ripard
2019-07-03 9:55 ` [PATCH 7/7] dt-bindings: usb: ehci: Fix example warnings Maxime Ripard
2019-07-03 19:29 ` [PATCH 1/7] dt-bindings: net: mdio: Add a nodename pattern Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190703095513.12340-3-maxime.ripard@bootlin.com \
--to=maxime.ripard@bootlin.com \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).