From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82546446C17 for ; Wed, 7 Oct 2026 08:26:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791361594; cv=none; b=Bdgj8hLigke7MRZUJY9KoKfEDTCYTaFWwpizN4lMrHAkO7pKDgrRsHoZ37FJGmJPJu18Fy33Tt3I0hbYv4PndImxp14uC1n1ryggRnRAtA5RxTdN4EN7pLiISiPdJJHkfIHAp4PPNHyy5trYlrGqorbqtYkRl/5l6p1bEY2bigU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791361594; c=relaxed/simple; bh=5hwn9dmZm2lL4gEzMv7nMKFRmoByFyt7ooc5m5FQqRA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pI0rqiW1ZJ6p5UlhFlW3Pb3GP3Iu+IelFS5HclLkQtqVaQGRHJxKnqlqJrNNN5DxJmdcWLGwcONAPopyhUrms+oy7Dtiy21vFH21VXY+94LKyA2jvGjROdc+Hb/yYuyVL9/yohO42WIaK9TeG4Grm8fVU35q83ST9yzuxaAgAjU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.221.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-48b0be347b8so1213457f8f.3 for ; Wed, 07 Oct 2026 01:26:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791361591; x=1791966391; 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=9iDEeSRYepWdUPmgZSkaxaPn0y4xYgwY4k/M0MT4wvc=; b=yBX5R2AZO2KzEhGLDxLxlnzP9dtX+w/hob0voi0EPOLmebkUO97tBKWtyB1WB7sll5 mPflStVmIiQapOMk5TWxHbyRtvtEdtmZu545HyHQgpsKX68GLbzJMg+BUm4jNsbV52RP dS6SzCGxk2pNbdwp5c8gAQZ8JIHYsWqLISsMBdj4IpAyvNLKRY6b7TpC1LGyv8ayq8pN fUh2mlViTxyG4irMnj26s6O6D/pq66c/wQwNKUD4mOlbSIhQupLc6nVsuGx67j6UQwqV NbqnZQaa/MnxwGhYagQabwzX1fF9LED7SWvjeov6vQiGSRVWWs58dtEsrJs+KXuVOkEc 22Rw== X-Forwarded-Encrypted: i=1; AKwUvByNgBiDsow03nR8SVefVREmwd09+7Eg4FdnM0sJJYLtKIJ/OxJrVc2GhB0qf/ZGyZOM5bYvALkha/ST@vger.kernel.org X-Gm-Message-State: AFq9FYLyGnrIhBjcfSNgA0jmBOPsocwNR+4fLzcz1DYT6cFXCcMVjOWq IdRCIZL8vkZmSxikAwmB6VgP7HDYLHJws9hxmZP8e+s2BIq9SDzr7Z0X X-Gm-Gg: AYBFou36Xoi9wolTMSLq2qEbeGx/Ig/rHmr0+Wuy0i0Ync2NEcdpf6AzpWO7I8Vxu+x 7f+JiCGDUySqaJ83jVGEhP9xJwGZtIJucPGCVaNk8nnZ0560KtXgIIxZPZEAxrnD6y3peDw9/EJ KrmnHS73aAGXbAzixWkGq4EjVwfEW6cOwuwcaQDa5rLMhzKCHmbyOPqUlTiGDQAV+RnQKDaGgHK TVDWDMB7qT5vrnzMl9KVDJSHceJ702iiciQ361phSU+LBcUYEXVCDrWL8EyRqchalW619Mn838U pWd19DO2UYaV+75qk1dzqUqrhDFwR/7j0ShVw74bleDBHK80yvoAseu/Mz7sY7ouhAd1zwM7V9a 1DAxFjQCiN8M6GsOnWqeOxObCkKOTZnFYL8JYGT9wsmt11933kZIR7VvTu3k7Pijg0hWHSZoTRS UuBZGrTWZB+WmC05CY3X+LXoLFsvE8QB+p9JfAV4mUeTVOQjJfFOA8e8nTqZx0pkSGwDpoYB5j2 6AZ5nd7bZzUNxypv0QF1dFVQqCitv9jSGU= X-Received: by 2002:a05:6000:2dc9:b0:48b:123e:2f5c with SMTP id ffacd0b85a97d-48c7278ef3fmr3047018f8f.29.1791361590762; Wed, 07 Oct 2026 01:26:30 -0700 (PDT) Received: from threads.localdomain ([84.70.176.222]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48c71d3b502sm4251370f8f.52.2026.10.07.01.26.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2026 01:26:30 -0700 (PDT) From: Lucas Tanure To: xianwei.zhao@amlogic.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Maxime Chevallier , Maxime Coquelin , Alexandre Torgue 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 Subject: [RFC PATCH v2 2/7] dt-bindings: net: amlogic,meson-dwmac: list the compatible combinations Date: Wed, 7 Oct 2026 09:26:22 +0100 Message-ID: <20261007082627.63807-3-tanure@linux.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261007082627.63807-1-tanure@linux.com> References: <20261007082627.63807-1-tanure@linux.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 actually use: Meson6 and Meson8m2 fall back to "snps,dwmac" alone, the others also name the 3.70a core. 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 Acked-by: Conor Dooley Signed-off-by: Lucas Tanure --- .../bindings/net/amlogic,meson-dwmac.yaml | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml index 5c91716d1f21..90ef79161ab1 100644 --- a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml @@ -129,20 +129,20 @@ 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,meson-gxbb-dwmac + - amlogic,meson-axg-dwmac + - amlogic,meson-g12a-dwmac + - const: snps,dwmac-3.70a + - const: snps,dwmac + - items: + - enum: + - amlogic,meson6-dwmac + - amlogic,meson8m2-dwmac + - const: snps,dwmac reg: items: @@ -172,7 +172,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