🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #15406

[PATCH net-next] dt-bindings: net: airoha: add AN7589 MDIO controller

#15406
From: John Crispin
Date: Thu, 12 Nov 2026 19:09
63 lines
8671 bytes
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
Technical Details
Message-ID: <20261112190928.1318743-1-john@phrozen.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362145-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362145-linux-kernel-netdev=dewy.ru
From: john@phrozen.org (John Crispin)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next] dt-bindings: net: airoha: add AN7589 MDIO controller
Date: Thu, 12 Nov 2026 20:09:28 +0100
Organization: Usenet Network
Message-ID: <20261112190928.1318743-1-john@phrozen.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1182204"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:tgnJtyvvEgN36Ih+16giSKo36lI= sha256:rDnWCw+TYZGLvvyTdJ+h9pt/65lKkO6qevKufl1dyXE=
	sha1:sglMD1Y45lYSfcoJFVQqIPL55E4= sha256:UeZM1eOSzjbGsJvFd5G07ALiE11vW3HmZ7HQDb/jYHQ=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id C80581143A6; Fri, 13 Nov 2026 00:27:23 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.851
X-Spam-Status: No, score=-1.851 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ann72vlLb_47;
	Fri, 13 Nov 2026 00:27:20 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-362145-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=phrozen.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id F3F7911400A; Fri, 13 Nov 2026 00:27:14 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 1D33D140C6F; Thu, 12 Nov 2026 19:11:03 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794510586;
	b=BdH9hahYi97pTQQfFPOLzB5AkJz/qcYf6lSTtRAXt8Q2M9u44pyV8u0cEEXqXZeXG/f7
	 bO8UNKCP9fXEinRUnV2tNk2vqBVHF5wbVWp5XPlZimK6YO6WTfBvRfkyhwbg2oafTEcV/
	 CC3N+NNeeRWi3yVFWt33dH3LN7OkgTDLalhXdwMrCIGV+zWupIuim4mkr3FeMwg8H6qt+
	 bQJeE4otCaQ6vrmx31lkA96XNgnqfPYu2iyWJG5KODzt7L/gx4uono2f1jOd1a7EFt7Yt
	 tBSn6lu3WcvDADFmwVHHmTYs/AMtScXvDyVM9HJP6sjFYMvGpfFm4TYc67roFLUNW9g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794510586;
	h=X-Original-To:Received:DMARC-Filter:Received:From:To:Cc:Subject:Date:
	 Message-Id:X-Mailer:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding;
	bh=sJQr+gvBgyWCXNcDuYBIUccK+tp9NBCw7G3cq8vaix0=;
	b=Huu6oil+zObrH8BS1kA+f1tLn2sfB5l/osUPmICjkCkxVdiySXvpWoW0azSco5Jzua17
	 ofFjGRjYuDAfTr6m+LrTQjrTrKfPCjc1/Y9bWjSI5UQCVABzTWpTL99AHLX5S28ZmJqj+
	 PKSB9vvyin/8a4dHL28UpoygGrDDGzVgkSP2kI4HIlaTFrVcZfjQRuJK67nISPyJ3bxFW
	 j2cQT2FcSOuqNgjAit/dLY+XQOizTTSjDHrNeBI0dWVRiWR0eEWGF4av+Q1Yp9vLTPluP
	 be71eTMPYjKITv5GvIQBSERYwBwRixjRmvHyvtTcbWuCzjJi6d4LEc5map174thDg2g==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=none header.from=phrozen.org;
	spf=pass smtp.mailfrom=phrozen.org;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 90013606A8A2;
	Thu, 12 Nov 2026 19:09:46 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=46.4.11.11
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794510586;
	b=FRVEp5ybzKoPECqC+Ga4zZ1W2XY9NKiizWELehp7NZarQelTP14pEKaeJ3rOV1qwwySR
	 gNFrCI6zgJ8Wg41KNUKU0OXO6EoDpgk8EkMm7X5JX1SpJk5WQBRVx1wAujyx4Te/IrEyy
	 K8he8pIP1hMvxqiuS4ReeYBZFR5ec31YvL0NG3uerR5pNSUNNL4PkebQVpy/cRRu8cYv8
	 EGhbsTLjNU39ulonps8Kf/mQVPo53aTAB/pCXJO0RwNEIaRxPizLAwQ5tlPL3x9wNW9a3
	 TeEfQfNa74OMqL66yDJ2Hj7a8AfVfFqUn2OSWsNl4eAvWuQGcx/pIIHkVGEKIKFeh/g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794510586;
	h=DMARC-Filter:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:
	 MIME-Version:Content-Transfer-Encoding;
	bh=sJQr+gvBgyWCXNcDuYBIUccK+tp9NBCw7G3cq8vaix0=;
	b=JanyXVXeAg2cjXUKW6y5Pob0oQe9//aFPJy5iwpE72Zm8TEEqqEZyfWDZWWUvsbi3VKD
	 j8URLbM9lGqTw+m4HubOPrmRJ13xnVwdL2ZicJlnTNy0FIUQu2kMA41LdEsWZKRK7LT3B
	 SVbWCL1wEcnD1F/9qIZyZDkpXkFkp8q4tLLIe2V7SZxH50N1KRJhew6xKfj+u1M0R0zxy
	 0m3mz5zftMLmwbc5Ca+4pO9HkVRfaTgHHMhhB5WXwn3I3pyRJV1KdPauFNzi0Dv+T8MrT
	 tWHVHwYjBUbkPcj7GCwocH6JfnfHB5zfe+bYBtG4sIifNfA6ZWcO55ZELfJeRph2PPQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=phrozen.org;
	spf=pass smtp.mailfrom=phrozen.org;
	arc=none smtp.remote-ip=46.4.11.11
X-Received: from nbd.name (nbd.name [46.4.11.11])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id A054E606A338;
	Thu, 12 Nov 2026 19:09:45 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A054E606A338
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=phrozen.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=phrozen.org
X-Received: from [2a04:4540:1403:f2fc:83ce:6656:246:c906] (helo=bertha10..)
	by ds12 with esmtpsa  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
	(Exim 4.96)
	(envelope-from <john@phrozen.org>)
	id 1xRaAw-002XyJ-2j;
	Thu, 12 Nov 2026 20:09:34 +0100
X-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
X-Mailer: git-send-email 2.34.1
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list