🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #11570

[PATCH v6 1/7] dt-bindings: net: amlogic,meson-dwmac: list the compatible combinations

#11570
From: Lucas Tanure
Date: Thu, 05 Nov 2026 10:03
70 lines
11811 bytes
The compatible property only checks that the first entry is an Amlogic
name and that "snps,dwmac" or "snps,dwmac-3.70a" appears somewhere in
the list. It cannot express which fallbacks each SoC takes, so a SoC
built on a different Synopsys core cannot be added without loosening
the check for every other one.

List the combinations the device trees use: Meson6 falls back to
"snps,dwmac" alone, the others also name the 3.70a core. The Meson8m2
reports a 3.70a core too, so it joins that list; its dtsi gets the
missing entry in a separate patch. The example used a two-entry form no
device tree has, so give it the Meson GXBB combination.

Assisted-by: LLM
Suggested-by: Conor Dooley <conor.dooley@microchip.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Lucas Tanure <tanure@linux.com>
---
 .../bindings/net/amlogic,meson-dwmac.yaml     | 29 +++++++++----------
 1 file changed, 14 insertions(+), 15 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml
index 9c9cc3ef384d..e769c9bb70d8 100644
--- a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml
@@ -129,20 +129,19 @@ allOf:
 
 properties:
   compatible:
-    additionalItems: true
-    maxItems: 3
-    items:
-      - enum:
-          - amlogic,meson6-dwmac
-          - amlogic,meson8b-dwmac
-          - amlogic,meson8m2-dwmac
-          - amlogic,meson-gxbb-dwmac
-          - amlogic,meson-axg-dwmac
-          - amlogic,meson-g12a-dwmac
-    contains:
-      enum:
-        - snps,dwmac-3.70a
-        - snps,dwmac
+    oneOf:
+      - items:
+          - enum:
+              - amlogic,meson8b-dwmac
+              - amlogic,meson8m2-dwmac
+              - amlogic,meson-gxbb-dwmac
+              - amlogic,meson-axg-dwmac
+              - amlogic,meson-g12a-dwmac
+          - const: snps,dwmac-3.70a
+          - const: snps,dwmac
+      - items:
+          - const: amlogic,meson6-dwmac
+          - const: snps,dwmac
 
   reg:
     items:
@@ -175,7 +174,7 @@ unevaluatedProperties: false
 examples:
   - |
     ethmac: ethernet@c9410000 {
-        compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac";
+        compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac-3.70a", "snps,dwmac";
         reg = <0xc9410000 0x10000>, <0xc8834540 0x8>;
         interrupts = <8>;
         interrupt-names = "macirq";
-- 
2.56.0
Technical Details
Message-ID: <20261105100322.37816-2-tanure@linux.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357194-linux-kernel-netdev=dewy.ru
References: <20261105100322.37816-1-tanure@linux.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357194-linux-kernel-netdev=dewy.ru
From: tanure@linux.com (Lucas Tanure)
Newsgroups: linux.kernel.netdev
Subject: [PATCH v6 1/7] dt-bindings: net: amlogic,meson-dwmac: list the compatible combinations
Date: Thu,  5 Nov 2026 10:03:16 +0000
Organization: Usenet Network
Message-ID: <20261105100322.37816-2-tanure@linux.com>
References: <20261105100322.37816-1-tanure@linux.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3608202"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:MLwUwEI+TVlki9wwx0Pj45CQg3I= sha256:UaenxLeUDywbeEqYmRVg/VzUAzT+uaiTaWiR42Yn8OE=
	sha1:XBIBNerQzk6rOoP34XAc/W7nb8k= sha256:Wa145Vdr2WINOFtzgYjn1XaYx1OtLy6UPsAQqn1sPxQ=
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 0D380112EFE; Thu,  5 Nov 2026 13:06:55 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.951
X-Spam-Status: No, score=-1.951 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.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 vwIEpK_mWAkk;
	Thu,  5 Nov 2026 13:06:52 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-357194-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 2C49C112EF6; Thu,  5 Nov 2026 13:06:49 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 0827460B392; Thu,  5 Nov 2026 10:04:08 +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=1793873019;
	b=iPAEpNRPdDQ1Oc6vKumGK3ju7xkg4ohBQbHs4UbqNwCmqLVXuKmy9ZgAKHtnGF/nGhVa
	 ana5rC3tBpL4VCp35MgxDh64z5ERugU0Em/2kSj38aaNIecTNJb80q4DPo77zIe/buSaT
	 p3nAeEgHQxzt9hyoYnz+job5a7qBSS06SPxldmkcuNQh/rD6mOy+Ym8P9vj58X7awhMgy
	 7wXjKBm030CLLSi7qK5Up3wq2Ah1vBWqxkAfNBLVWQQoLtX5vfoWq4+K4rzU0i6jbjLEC
	 Ll/q15T+jkI6ay25Ru4hSpy1vM19QwVifxrUGc7p+eYOHyX1IzSUnMwGdO4kPhnQ5FQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793873019;
	h=X-Original-To:Received:DMARC-Filter:Received:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
	 Date:Message-ID:X-Mailer:In-Reply-To:References:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:Content-Transfer-Encoding;
	bh=xaLsM5U5ulazZmmMZOUrbsqFBf8E5Hd+TLCd3a7zUQs=;
	b=VqC4MytjhrXaIgWcVwFNhbhhR5llvP9J+zXmTbgykehjBU8GuYZxmTI11eIudWvZV5Q2
	 dWaSn5Bz+8F1ZfwS5X0ysedbF91VbM/l4KE1ON9hOoMXuQ69FI11BwESSmsxD44p6aZN2
	 9phd+SjuHhJjv39/Y2m99k25D01sj/xbZ/19VKIw1aX8LipI5/mv5LtL1f81VbRIc/eXx
	 OProKTjSklcbcNvfxo9NagXfDwg8jVGRFaoxRBBfkxR1CDKQ1ZrX/VyRBmGrInb3ysD7+
	 ErKCDlRttiMTBP2NBnVZwM4+Btr+8aNWiyvG8WjGW/n3iXdiCdKy/xJ+z5caVPhDTOA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=fail header.from=linux.com;
	spf=pass smtp.mailfrom=gmail.com;
	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 2BF306082BED;
	Thu,  5 Nov 2026 10:03:39 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.43
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793873008;
	b=uIvdEN9cBrPrpXQmAKVX9bm0NeUGq0G+PcayLcojXNSeA9gbnSGADbhKAzJ5f8It/04z
	 Jt9KegzF+9Rxwz3z2R5cg4WKPnGG9oG6pw5MFW7wbW21b3ghLD2CJho5Yj6PDDqb178rw
	 YFaPZ64IKN7tKDUapxF8wCO/H2tLIavmTCv/cAiIVxYr9sCpkHJ7WqtiVV0kY8+Awt7g6
	 2MZSMgBs3VwXw+3tsEdv1K+VbsGWbO2XQqK9sz8ck7TzL10MBywcIOPTlndSWOz0m70fU
	 XkIUwPlT0GoCyVah0Rqb3UQHYtJkdcLPtAd8ai/3XQwBWJcjdvGkrENizg7y4LasiJA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793873008;
	h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Gm-Message-State:
	 X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:Date:Message-ID:
	 X-Mailer:In-Reply-To:References:MIME-Version:
	 Content-Transfer-Encoding;
	bh=xaLsM5U5ulazZmmMZOUrbsqFBf8E5Hd+TLCd3a7zUQs=;
	b=vvcn2bPZY8iK25MTUQDv6nNWBHUevbE1KfB+g+08XuqrwyWS1qUUMU04jksRTteID+7u
	 uI1TCUp573PJ6pQwwVdDcqTlZdgBwrvrnnDCeHLoiQIUgWSqT+tHlZ14TtX6aCnYUTIgk
	 71ayYxzAHvhOHVNofXP2aQ7y+cWtKZdpFRYdN2X8BKW58KMX3ZQOFoqNOMf+m5TCnk5Ox
	 gTXm91LUcFVp7HhakN/dHZJpjqrsfQxDkHYhGEDO9Bo02tBX3qBa0EM/OwWx7tRacb+3X
	 CAyYebuAkj2nu1AoEDqF7oPxCs+5GAoVIi6+PUJ+NsB6Hy29s+tEy/RV7jms+E5KmWA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=fail header.from=linux.com;
	spf=pass smtp.mailfrom=gmail.com;
	arc=none smtp.remote-ip=209.85.128.43
X-Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04C80606D80A
	for <netdev@vger.kernel.org>; Thu,  5 Nov 2026 10:03:27 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 04C80606D80A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4a549cd7fd2so4851945e9.0
        for <netdev@vger.kernel.org>; Thu, 05 Nov 2026 02:03:27 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1793873006; x=1794477806;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
         :to:cc:subject:date:message-id:reply-to:content-type;
        bh=xaLsM5U5ulazZmmMZOUrbsqFBf8E5Hd+TLCd3a7zUQs=;
        b=sxchZIFlyD1Oi3w4SB1drzWklucWjiIf6eDzl78gfQZiPjklI4/AdMSM4SZoExzrBB
         frrqfmb8BT7DWHiyQxDCO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eiBowebrxIzP
	0sZOmIdichxJQByPDJTMkUyAfRw==
X-Received: by 2002:a05:600c:45d4:b0:4a3:5da2:38ae with SMTP id 5b1f17b1804b1-4b55de92333mr36628635e9.14.1793873006268;
        Thu, 05 Nov 2026 02:03:26 -0800 (PST)
X-Received: from threads.localdomain ([90.254.187.36])
        by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4b43342773esm53455775e9.4.2026.11.05.02.03.24
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Thu, 05 Nov 2026 02:03:25 -0800 (PST)
X-Cc: netdev@vger.kernel.org,
	devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-amlogic@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	Conor Dooley <conor.dooley@microchip.com>
X-Mailer: git-send-email 2.56.0
X-In-Reply-To: <20261105100322.37816-1-tanure@linux.com>
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