From: David Yang <mmyangfl@gmail.com>
To: netdev@vger.kernel.org
Cc: David Yang <mmyangfl@gmail.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jian Shen <shenjian15@huawei.com>,
Jijie Shao <shaojijie@huawei.com>,
devicetree@vger.kernel.org
Subject: [PATCH net-next v4 4/5] dt-bindings: net: hisilicon,hisi-gmac-v1: Allow fixed-link
Date: Thu, 26 Nov 2026 08:55:16 +0800 [thread overview]
Message-ID: <20261126005524.4156940-5-mmyangfl@gmail.com> (raw)
In-Reply-To: <20261126005524.4156940-1-mmyangfl@gmail.com>
With fixed-link there is no phy-handle, make phy-handle required only
when no fixed-link is declared.
A fixed link gets no MDIO bus by default. In such case, MDIO devices
must be placed under the mdio node, and PHY nodes directly under the
ethernet node are rejected.
Signed-off-by: David Yang <mmyangfl@gmail.com>
---
.../bindings/net/hisilicon,hisi-gmac-v1.yaml | 20 +++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/hisilicon,hisi-gmac-v1.yaml b/Documentation/devicetree/bindings/net/hisilicon,hisi-gmac-v1.yaml
index a71529825955..2f1c0e0afb88 100644
--- a/Documentation/devicetree/bindings/net/hisilicon,hisi-gmac-v1.yaml
+++ b/Documentation/devicetree/bindings/net/hisilicon,hisi-gmac-v1.yaml
@@ -13,6 +13,22 @@ maintainers:
allOf:
- $ref: /schemas/net/ethernet-controller.yaml#
- $ref: /schemas/net/mdio.yaml#
+ - if:
+ not:
+ required:
+ - fixed-link
+ then:
+ required:
+ - phy-handle
+ - if:
+ required:
+ - fixed-link
+ then:
+ not:
+ required:
+ - phy-handle
+ patternProperties:
+ '@[0-9a-f]+$': false
properties:
compatible:
@@ -58,7 +74,8 @@ properties:
unevaluatedProperties: false
description:
Node containing PHY children. If this node is not present, then PHYs will
- be direct children.
+ be direct children. With fixed-link, MDIO devices must be placed under the
+ mdio node.
hisilicon,phy-reset-delays-us:
description: Triplet of PHY reset delays in microseconds.
@@ -74,7 +91,6 @@ required:
- clocks
- clock-names
- phy-mode
- - phy-handle
unevaluatedProperties: false
--
2.53.0
next prev parent reply other threads:[~2026-11-26 0:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 0:55 [PATCH net-next v4 0/5] net: hix5hd2_gmac: Support fixed-link David Yang
2026-11-26 0:55 ` [PATCH net-next v4 1/5] net: hix5hd2_gmac: Use devm_ managed netdev and MDIO bus David Yang
2026-11-26 0:55 ` [PATCH net-next v4 2/5] dt-bindings: net: hisilicon,hisi-gmac-v1: Add mdio bus child node David Yang
2026-11-26 0:55 ` [PATCH net-next v4 3/5] net: hix5hd2_gmac: Use mdio child node for MDIO bus if it exists David Yang
2026-11-26 0:55 ` David Yang [this message]
2026-11-26 0:55 ` [PATCH net-next v4 5/5] net: hix5hd2_gmac: Support fixed-link David Yang
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=20261126005524.4156940-5-mmyangfl@gmail.com \
--to=mmyangfl@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
--cc=shaojijie@huawei.com \
--cc=shenjian15@huawei.com \
/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