Article View: linux.kernel.netdev
Article #22591Re: [PATCH v8 4/4] arm64: dts: amlogic: t7: khadas-vim4: enable the ethernet port
From: netdev-bot+sashiko
Date: Wed, 25 Nov 2026 14:52
Date: Wed, 25 Nov 2026 14:52
110 lines
11850 bytes
11850 bytes
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.
Critical: 0 ยท High: 0 ยท Medium: 1 ยท Low: 0
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] The commit says it enables the Khadas VIM4 ethernet port.
--
arm64: dts: amlogic: t7: khadas-vim4: enable the ethernet port
This patch enables the T7 ethernet MAC and the MDIO multiplexer on the
Khadas VIM4. It also describes the RTL8211F RGMII PHY at address 1 on the
external MDIO bus, with its interrupt on GPIOH_6. With phy-mode =
"rgmii-id", the PHY adds both RGMII delays.
> diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
> index 0fa83362b4179..7b86ab2579aaa 100644
> --- a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
> +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
[ ... ]
> @@ -256,6 +257,28 @@ xtal: xtal-clk {
> };
> };
>
> +ðmac {
> + status = "okay";
> + pinctrl-0 = <ð_pins>, <ð_rgmii_pins>;
> + pinctrl-names = "default";
> + phy-mode = "rgmii-id";
> + phy-handle = <&external_phy>;
> +};
> +
> +ð_phy {
> + status = "okay";
> +};
[Severity: Medium]
Can any driver at this revision bind to the ethmac node this enables?
The node in amlogic-t7.dtsi has:
arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi:
ethmac: ethernet@fdc00000 {
compatible = "amlogic,t7-dwmac", "snps,dwmac-5.10a";
The amlogic,t7-dwmac string appears only in amlogic-t7.dtsi. The Amlogic
glue driver's match table, meson8b_dwmac_match[] in dwmac-meson8b.c, ends
at g12a:
{
.compatible = "amlogic,meson-g12a-dwmac",
.data = &meson_g12a_dwmac_data,
},
{ }
dwmac_generic_match[] in dwmac-generic.c ends at snps,dwmac-4.10a, plus
snps,dwmac and the snps,dwxgmac entries. Under drivers/, the only place
that names snps,dwmac-5.10a is stmmac_gmac4_compats[] in
stmmac_platform.c. That list detects the core version. It is not an
of_match_table.
If nothing probes ethmac, its mdio0 child bus is never registered. The
eth_phy mux enabled just above binds through the amlogic,g12a-mdio-mux
fallback and has mdio-parent-bus = <&mdio0>. So mdio_mux_init() would
defer on every attempt:
drivers/net/mdio/mdio-mux.c:mdio_mux_init() {
...
parent_bus = of_mdio_find_bus(parent_bus_node);
if (!parent_bus) {
ret_val = -EPROBE_DEFER;
goto err_parent_bus;
}
...
}
Wouldn't that leave ext_mdio and external_phy unregistered, so that
phy-handle never resolves?
Also, nothing would program the PRG_ETH glue window, which is the second
reg region at 0xfe024000. That window holds the RGMII mode select, the
clkin0/clkin1 TX clock mux and the MAC-side delays.
Nothing would claim the pipeline clock (CLKID_SYS_AMPIPE_ETH) either. The
previous patch in the series, "arm64: dts: amlogic: t7: add the ethernet
controller", says this gate is otherwise turned off as unused. It also
says the port keeps the bootloader's delays unless the controller
programs them.
amlogic,meson-dwmac.yaml does not document amlogic,t7-dwmac, so
dtbs_check would report the now-enabled node as undocumented.
Does this patch depend on a separate glue driver and binding series? If
so, could the commit message name that prerequisite, or could this patch
be sent together with it?
[ ... ]
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261121213102.143130-1-tanure%40linux.com
Technical Details
Message-ID:
<179561837863.3135.7453763060716815613@kernel.org>Path:
mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371435-linux-kernel-netdev=dewy.ruReferences:
<20261121213102.143130-5-tanure@linux.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371435-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v8 4/4] arm64: dts: amlogic: t7: khadas-vim4: enable the ethernet port Date: Wed, 25 Nov 2026 14:52:58 +0000 Organization: Usenet Network Message-ID: <179561837863.3135.7453763060716815613@kernel.org> References: <20261121213102.143130-5-tanure@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="234179"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:kxEQvc26VVopSU8qKYOqO76QwpI= sha256:zxWF4/E/gPZsLI6edwQf2jjXpdhMdnI/vJZq9F5ej+8= sha1:EoWr8DqTNNlCKh7cPuF3nWeM26c= sha256:CcIFwFoQbvkHcEE4CK/Fp8Mnj4eUab4FRIxFt0jzg+c= 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 833D4125E77; Wed, 25 Nov 2026 17:53:21 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.5 X-Spam-Status: No, score=-3.5 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org 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 nFpyRJRdXSrz; Wed, 25 Nov 2026 17:53:18 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-371435-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 176DF125E75; Wed, 25 Nov 2026 17:53:07 +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 20AF431EA0; Wed, 25 Nov 2026 14:53: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=1795618381; b=L+o+E3fnnDo6W1mTfj97eVu5Ju1a9fOykhKnAaTyGSzCxVPWx3LPoXvg6JvdSyCMXabT 8Qn26A3JR1hGbiNSFJuGo8X7+CM9aSQSCsgJz0ArbNt7XFMpb5mfVk74T4wwhHr0wWZtK y0o4HStlOwEtKLZ8ohtJj6ewsNd9zVOKfcUYjxjAhlgyJx/1DYLW+nka/lKmxZ9CNcydE nbbDnSf6VM6B5GcUU0ODgRoouf9go+R3Qip4Adzx1v+n8HxSKe24v9G0GdBWSoXup9dcQ 2qg2bad4WJBul+B49OzsSjx+U02Eq9MVbq5KxNc18EaDnTGKGm8qITyg0t++dqX56Hw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795618381; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=Noo/1qHPis8a4ZHqIhQBRWowzWTBe2fSXWZTT6D4Yww=; b=nBufI7UFFAVtB5avzeqlQOcDWy1PU2OlVqPW3kY6BjKnmIWu/g7KoohoeF/a52D9e6eg pKBVTSu5CD8hpdihw2qqsA7bJwWoCuCCUHT3L/jpixgOiU+IRkcEqjZQoPFsVZEY5O6LC Hhqsss+V85vjuQIt1Hn5TjqJilYXWStFx5CHJ7ahhVB1Xs1XB3qyi4eYF8TeZIkYcMWX7 l56mvir1Q/cIpdO2SM3pyKfh+tCri5A/cezpn7PmGUHBeuSwoxM1egDD+xHGu7ClcT3+g 0nYyOb+LgVHe39uN2vsxppDFqZMqNIOaCl8aaJRbnf/oLC6xpH0j7yFb6TYVOMp4j/Q== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QpjZ6tOI; 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 3D212606A691; Wed, 25 Nov 2026 14:53:01 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QpjZ6tOI X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795618380; b=jIrVQ11Xy2NxsrC2RbdDTlX+kLOrT8NTcjF1PUYsCxUQ2P/SRCKTbr8BcWfIbLg0b2nM nMGT7rzgntNZNlF6AHwFQh70WHJ+9mKLoSyCWGaCBm/7t2n0GNBPOScYiUV98VnIB6FaD PVTcimYWQui1nqHv5Kbsvs2Z5NRlA8lPvC6KDM0lVgdqOZJRXhIWR1OWAhZ39Dcf+21UI lJkcR1iP6LBr/WJ0oMFvJA259uN4Tvc7cKFnvJpq4Y9owIqG+ZZO83JguyFnUNEBN+2o3 3GB+9MMXk0le8OfocR/JRZzzdbBVVy6c7Hc1j2Q20hEY30mLnA54qkvp5sTxbjGzKOA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795618380; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=Noo/1qHPis8a4ZHqIhQBRWowzWTBe2fSXWZTT6D4Yww=; b=rlB230qvSxZzN/QEhAimT3DHY2d1poEQmoctrJ8gQxngS2SCy0WRTzLRAt1oauSQQjOX WMnTmbUsQoOwuWnp7TjYZ3wByFCtX7Lyu43t73Ny2xpy553cm3OVQa4BWRWgG7RYcs9Ir y68H38iQP0kFVVhopjMitg/xqp6MoVPtM6+8+u8pmkAYnoY3LMwuDbtSjC/5o+aFmdSeM mRJKpA8jfEyNbT6xP3eREpmK5Mds79K3YISp6D2dUt4F0x/lstbnhU+PWzHPr7os0D6lV +0tIC4zlJh65f40D1LWrKXWYQS/XnOe/zNvU88z1JAdk6kCpygztIjoXtSHpk3ajMLQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QpjZ6tOI; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F00E606A327; Wed, 25 Nov 2026 14:53:00 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B54D1F000F2; Wed, 25 Nov 2026 14:52:58 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795618380; bh=Noo/1qHPis8a4ZHqIhQBRWowzWTBe2fSXWZTT6D4Yww=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=QpjZ6tOIlUhf+kQlKZgHLxYc2XlcmBaIfPkRV1LIW1ys2U5rcZAujgkg2H5gV/4AM UrnSWvJXDyp/05FTYBkD9R9jSI3uzxxh9YOuNivFJe0w7W4t6HFQzQGxwS1sueI2/e 4A3X09csZMChHfVemR3ARVz9gcosJmopth4sAp3aDEvljqiwounqI5SC7WIDvOYSwc Qn4XBn15u+NExx01d+6LUqzqVNOFUvXhpDPZAUnPMI3R/RT/mioKPLRiCmBFRif1mW ZP5DYr/p68hTyp5g61kQA0opzo3ZwejEk3aS4qyAk1hxceeC2doZsic7/j0nI3KZJK yZJ7PrxiCOEsg== X-Cc: xianwei.zhao@amlogic.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, neil.armstrong@linaro.org, khilman@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com, maxime.chevallier@bootlin.com, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org X-In-Reply-To: <20261121213102.143130-5-tanure@linux.com> X-sashiko-severity: Medium 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