netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Crispin <john@phrozen.org>
To: 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>
Cc: Christian Marangi <ansuelsmth@gmail.com>,
	devicetree@vger.kernel.org, lei.dong@airoha.com,
	Linqi.zhang@airoha.com, linux-kernel@vger.kernel.org,
	netdev@vger.kernel.org, Rajeev.kumar@airoha.com,
	upstream@airoha.com, Weifeng.xu@airoha.com,
	zhengping.zhang@airoha.com
Subject: [PATCH net-next] dt-bindings: net: airoha: add AN7589 MDIO controller
Date: Thu, 12 Nov 2026 20:09:28 +0100	[thread overview]
Message-ID: <20261112190928.1318743-1-john@phrozen.org> (raw)

The AN7589 carries the AN7583 SCU MDIO controller three times, the
third one at offset 0xd8. Document it as a fallback pair on the AN7583
compatible. Allow the new offset for the AN7589 only.

Signed-off-by: John Crispin <john@phrozen.org>
---
 .../bindings/net/airoha,an7583-mdio.yaml      | 25 +++++++++++++++++--
 1 file changed, 23 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/airoha,an7583-mdio.yaml b/Documentation/devicetree/bindings/net/airoha,an7583-mdio.yaml
index 3e7e68ec1560..41dc295ce6cf 100644
--- a/Documentation/devicetree/bindings/net/airoha,an7583-mdio.yaml
+++ b/Documentation/devicetree/bindings/net/airoha,an7583-mdio.yaml
@@ -17,14 +17,20 @@ description:
   The other 2 (that this schema describe) live under the SCU
   register supporting both C22 and C45 PHYs.
 
+  The Airoha AN7589 has a third controller of this kind under the SCU.
+
 $ref: mdio.yaml#
 
 properties:
   compatible:
-    const: airoha,an7583-mdio
+    oneOf:
+      - const: airoha,an7583-mdio
+      - items:
+          - const: airoha,an7589-mdio
+          - const: airoha,an7583-mdio
 
   reg:
-    enum: [0xc8, 0xcc]
+    maxItems: 1
 
   clocks:
     maxItems: 1
@@ -41,6 +47,21 @@ required:
   - clocks
   - resets
 
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: airoha,an7589-mdio
+    then:
+      properties:
+        reg:
+          enum: [0xc8, 0xcc, 0xd8]
+    else:
+      properties:
+        reg:
+          enum: [0xc8, 0xcc]
+
 unevaluatedProperties: false
 
 examples:

base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b
-- 
2.34.1


                 reply	other threads:[~2026-11-12 19:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20261112190928.1318743-1-john@phrozen.org \
    --to=john@phrozen.org \
    --cc=Linqi.zhang@airoha.com \
    --cc=Rajeev.kumar@airoha.com \
    --cc=Weifeng.xu@airoha.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=ansuelsmth@gmail.com \
    --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=lei.dong@airoha.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=robh@kernel.org \
    --cc=upstream@airoha.com \
    --cc=zhengping.zhang@airoha.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;
as well as URLs for NNTP newsgroup(s).