From: Lucas Tanure <tanure@linux.com>
To: xianwei.zhao@amlogic.com, Andrew Lunn <andrew+netdev@lunn.ch>,
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>,
Neil Armstrong <neil.armstrong@linaro.org>,
Kevin Hilman <khilman@baylibre.com>,
Jerome Brunet <jbrunet@baylibre.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Maxime Chevallier <maxime.chevallier@bootlin.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: Igor Velkov <iav@iav.lv>,
netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [PATCH v9 0/4] Add ethernet support for the Amlogic T7
Date: Sat, 28 Nov 2026 07:16:06 +0000 [thread overview]
Message-ID: <20261128071610.27855-1-tanure@linux.com> (raw)
Patches 1 to 4 of v7, the bindings and the driver, are in net-next:
2297f88ce0b8 dt-bindings: net: amlogic,meson-dwmac: list the compatible combinations
18029931478b dt-bindings: net: add amlogic,t7-dwmac
c4c851a3325e net: stmmac: dwmac-meson8b: add support for the Amlogic T7
4fdc7da7e13d net: stmmac: dwmac-meson8b: follow the generic RGMII delay rules on the T7
This version carries the rest: a binding patch for the MDIO
multiplexer, and the three device tree patches. Patch 1 is for netdev,
patches 2 to 4 for the Amlogic tree; the device tree patches build
without the driver part.
The T7 has the same ethernet glue as the G12A. The glue registers sit
in a block gated by sys_ethphy, so the controller node lists that
clock as "pclk", and the pipeline stage between the controller and the
DRAM has a gate of its own, listed as well. The MDIO multiplexer gets a
T7 compatible with the G12A one as fallback. The VIM4 is plain
rgmii-id, with the PHY at the address its pins strap.
Tested on v7.4-rc2 on the Khadas VIM4 with the PHY at address 1:
941/944Mbit/s with iperf3, no error. A scan of the bus shows the
PHY at 0 and at 1 and nothing else. On top of linux-next, with the
on-chip PHY bus enabled, Igor Velkov's multiplexer fix keeps the
external data path across an access to the on-chip PHY: 942Mbit/s
without a dip (details in the v8 thread).
Overlaps with Xianwei Zhao's "[PATCH v2 0/3] t7: add some nodes for
Amlogc t7."; I will drop or rebase whatever overlaps once we agree.
Changes since v8:
- patch 1: commit message cut to the fact (Krzysztof); Krzysztof's
Acked-by and Martin's Reviewed-by
- patches 3 and 4: Martin's Reviewed-by, no change
- patch 3: the on-chip PHY bus still starts disabled, a board enables
only the bus it uses; the line can go if preferred
Changes since v7:
- patches 1 to 4 of v7 are in net-next and are not resent; the
numbers below are the new ones
- new patch 1: the MDIO multiplexer binding gets "amlogic,t7-mdio-mux"
with the G12A compatible as fallback, and patch 3 uses it in the
multiplexer node (Martin)
- patch 4: the VIM4 PHY node uses address 1, where the PHY is strapped;
address 0 only worked through the RTL8211F broadcast address (Martin)
- patch 2: Martin's Reviewed-by
Changes since v6:
- no Assisted-by trailer (Krzysztof)
- patch 2: the T7 gets a binding file of its own (Rob, Sashiko); the
pclk description names the glue registers (Krzysztof);
rx-internal-delay-ps as constraints, default 0, maximum 3000,
multipleOf 200 (Rob); tx-internal-delay-ps stays false, the
meta-schema refuses "not" on a top-level property, so the reason is
a comment above it (Rob); "snps,dwmac" dropped from the compatible
list (Rob)
- patch 6: "snps,dwmac" dropped from the node (Rob)
- patch 4: Andrew's Reviewed-by
Changes since v5:
- patch 2: the T7 block follows the Meson8b..G12A block instead of
splitting it in two; default: 0 for rx-internal-delay-ps on the T7
(Sashiko). The explicit false lines stay, as asked in review.
Changes since v4:
- patch 4: the old delay code is left untouched; the T7 only gets a
callback of its own, and the probe parsing it shares validates the
RX value (Andrew); no NULL check on the callback (Martin)
- 0 accepted for rx-internal-delay-ps, the T7 joins the G12A list
(Andrew)
- comment on the deprecated vendor delay properties (Andrew)
- the MDIO mux and the on-chip PHY bus start disabled in the dtsi; the
VIM4 enables the mux (Sashiko)
Changes since v3:
- phy-mode untouched, the PHY adds the 2ns, rx-internal-delay-ps is
tuning only, tx-internal-delay-ps not valid for the T7 (Andrew)
- 0 dropped from rx-internal-delay-ps (Martin); vendor delay
properties explicitly false for the T7 (Andrew)
- init_delays callback; patch 4 renamed (Martin, Andrew)
- VIM4 without tx-internal-delay-ps, the PHY TX delay works (Martin)
- Meson8m2 moved to the dwmac-3.70a list; its boards warn in
dtbs_check until Martin's dtsi patch lands (Martin, Conor)
- the delay table in ethernet-controller.yaml dropped
- Martin's Reviewed-by on patch 3
Changes since v2:
- T7-only delay path (Andrew), PHY mode from
phy_fix_phy_mode_for_mac_delays() (Maxime)
- tx-internal-delay-ps checked against the hardware values (Sashiko)
- vendor delay properties not valid for the T7 (Neil, Andrew)
- no max-speed on either PHY (Andrew); VIM4 PHY interrupt on GPIOH_6
(Sashiko)
- the T7 node owns sys_ethphy as "pclk"
- no longer RFC; Conor's Ack dropped from patch 2 and Neil's R-b from
patch 6
Changes since v1:
- the driver honours the generic delay properties; VIM4 moved to
rgmii-id with tx-internal-delay-ps = <2000>, Neil's R-b dropped
Lucas Tanure (4):
dt-bindings: net: amlogic,g12a-mdio-mux: add the T7 compatible
arm64: dts: amlogic: t7: add the ethernet pinctrl nodes
arm64: dts: amlogic: t7: add the ethernet controller
arm64: dts: amlogic: t7: khadas-vim4: enable the ethernet port
.../bindings/net/amlogic,g12a-mdio-mux.yaml | 6 +-
.../amlogic/amlogic-t7-a311d2-khadas-vim4.dts | 23 +++++
arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 88 +++++++++++++++++++
3 files changed, 116 insertions(+), 1 deletion(-)
base-commit: 7e1392a42ea288d70a266f6553fe06f57f8647ea
--
2.56.1
WARNING: multiple messages have this Message-ID (diff)
From: Lucas Tanure <tanure@linux.com>
To: xianwei.zhao@amlogic.com, Andrew Lunn <andrew+netdev@lunn.ch>,
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>,
Neil Armstrong <neil.armstrong@linaro.org>,
Kevin Hilman <khilman@baylibre.com>,
Jerome Brunet <jbrunet@baylibre.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Maxime Chevallier <maxime.chevallier@bootlin.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: Igor Velkov <iav@iav.lv>,
netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [PATCH v9 0/4] Add ethernet support for the Amlogic T7
Date: Sat, 28 Nov 2026 07:16:06 +0000 [thread overview]
Message-ID: <20261128071610.27855-1-tanure@linux.com> (raw)
Patches 1 to 4 of v7, the bindings and the driver, are in net-next:
2297f88ce0b8 dt-bindings: net: amlogic,meson-dwmac: list the compatible combinations
18029931478b dt-bindings: net: add amlogic,t7-dwmac
c4c851a3325e net: stmmac: dwmac-meson8b: add support for the Amlogic T7
4fdc7da7e13d net: stmmac: dwmac-meson8b: follow the generic RGMII delay rules on the T7
This version carries the rest: a binding patch for the MDIO
multiplexer, and the three device tree patches. Patch 1 is for netdev,
patches 2 to 4 for the Amlogic tree; the device tree patches build
without the driver part.
The T7 has the same ethernet glue as the G12A. The glue registers sit
in a block gated by sys_ethphy, so the controller node lists that
clock as "pclk", and the pipeline stage between the controller and the
DRAM has a gate of its own, listed as well. The MDIO multiplexer gets a
T7 compatible with the G12A one as fallback. The VIM4 is plain
rgmii-id, with the PHY at the address its pins strap.
Tested on v7.4-rc2 on the Khadas VIM4 with the PHY at address 1:
941/944Mbit/s with iperf3, no error. A scan of the bus shows the
PHY at 0 and at 1 and nothing else. On top of linux-next, with the
on-chip PHY bus enabled, Igor Velkov's multiplexer fix keeps the
external data path across an access to the on-chip PHY: 942Mbit/s
without a dip (details in the v8 thread).
Overlaps with Xianwei Zhao's "[PATCH v2 0/3] t7: add some nodes for
Amlogc t7."; I will drop or rebase whatever overlaps once we agree.
Changes since v8:
- patch 1: commit message cut to the fact (Krzysztof); Krzysztof's
Acked-by and Martin's Reviewed-by
- patches 3 and 4: Martin's Reviewed-by, no change
- patch 3: the on-chip PHY bus still starts disabled, a board enables
only the bus it uses; the line can go if preferred
Changes since v7:
- patches 1 to 4 of v7 are in net-next and are not resent; the
numbers below are the new ones
- new patch 1: the MDIO multiplexer binding gets "amlogic,t7-mdio-mux"
with the G12A compatible as fallback, and patch 3 uses it in the
multiplexer node (Martin)
- patch 4: the VIM4 PHY node uses address 1, where the PHY is strapped;
address 0 only worked through the RTL8211F broadcast address (Martin)
- patch 2: Martin's Reviewed-by
Changes since v6:
- no Assisted-by trailer (Krzysztof)
- patch 2: the T7 gets a binding file of its own (Rob, Sashiko); the
pclk description names the glue registers (Krzysztof);
rx-internal-delay-ps as constraints, default 0, maximum 3000,
multipleOf 200 (Rob); tx-internal-delay-ps stays false, the
meta-schema refuses "not" on a top-level property, so the reason is
a comment above it (Rob); "snps,dwmac" dropped from the compatible
list (Rob)
- patch 6: "snps,dwmac" dropped from the node (Rob)
- patch 4: Andrew's Reviewed-by
Changes since v5:
- patch 2: the T7 block follows the Meson8b..G12A block instead of
splitting it in two; default: 0 for rx-internal-delay-ps on the T7
(Sashiko). The explicit false lines stay, as asked in review.
Changes since v4:
- patch 4: the old delay code is left untouched; the T7 only gets a
callback of its own, and the probe parsing it shares validates the
RX value (Andrew); no NULL check on the callback (Martin)
- 0 accepted for rx-internal-delay-ps, the T7 joins the G12A list
(Andrew)
- comment on the deprecated vendor delay properties (Andrew)
- the MDIO mux and the on-chip PHY bus start disabled in the dtsi; the
VIM4 enables the mux (Sashiko)
Changes since v3:
- phy-mode untouched, the PHY adds the 2ns, rx-internal-delay-ps is
tuning only, tx-internal-delay-ps not valid for the T7 (Andrew)
- 0 dropped from rx-internal-delay-ps (Martin); vendor delay
properties explicitly false for the T7 (Andrew)
- init_delays callback; patch 4 renamed (Martin, Andrew)
- VIM4 without tx-internal-delay-ps, the PHY TX delay works (Martin)
- Meson8m2 moved to the dwmac-3.70a list; its boards warn in
dtbs_check until Martin's dtsi patch lands (Martin, Conor)
- the delay table in ethernet-controller.yaml dropped
- Martin's Reviewed-by on patch 3
Changes since v2:
- T7-only delay path (Andrew), PHY mode from
phy_fix_phy_mode_for_mac_delays() (Maxime)
- tx-internal-delay-ps checked against the hardware values (Sashiko)
- vendor delay properties not valid for the T7 (Neil, Andrew)
- no max-speed on either PHY (Andrew); VIM4 PHY interrupt on GPIOH_6
(Sashiko)
- the T7 node owns sys_ethphy as "pclk"
- no longer RFC; Conor's Ack dropped from patch 2 and Neil's R-b from
patch 6
Changes since v1:
- the driver honours the generic delay properties; VIM4 moved to
rgmii-id with tx-internal-delay-ps = <2000>, Neil's R-b dropped
Lucas Tanure (4):
dt-bindings: net: amlogic,g12a-mdio-mux: add the T7 compatible
arm64: dts: amlogic: t7: add the ethernet pinctrl nodes
arm64: dts: amlogic: t7: add the ethernet controller
arm64: dts: amlogic: t7: khadas-vim4: enable the ethernet port
.../bindings/net/amlogic,g12a-mdio-mux.yaml | 6 +-
.../amlogic/amlogic-t7-a311d2-khadas-vim4.dts | 23 +++++
arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 88 +++++++++++++++++++
3 files changed, 116 insertions(+), 1 deletion(-)
base-commit: 7e1392a42ea288d70a266f6553fe06f57f8647ea
--
2.56.1
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
next reply other threads:[~2026-11-28 7:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 7:16 Lucas Tanure [this message]
2026-11-28 7:16 ` [PATCH v9 0/4] Add ethernet support for the Amlogic T7 Lucas Tanure
2026-11-28 7:16 ` [PATCH v9 1/4] dt-bindings: net: amlogic,g12a-mdio-mux: add the T7 compatible Lucas Tanure
2026-11-28 7:16 ` Lucas Tanure
2026-11-28 7:16 ` [PATCH v9 2/4] arm64: dts: amlogic: t7: add the ethernet pinctrl nodes Lucas Tanure
2026-11-28 7:16 ` Lucas Tanure
2026-11-28 7:16 ` [PATCH v9 3/4] arm64: dts: amlogic: t7: add the ethernet controller Lucas Tanure
2026-11-28 7:16 ` Lucas Tanure
2026-11-28 7:16 ` [PATCH v9 4/4] arm64: dts: amlogic: t7: khadas-vim4: enable the ethernet port Lucas Tanure
2026-11-28 7:16 ` Lucas Tanure
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=20261128071610.27855-1-tanure@linux.com \
--to=tanure@linux.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@kernel.org \
--cc=iav@iav.lv \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=maxime.chevallier@bootlin.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=neil.armstrong@linaro.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
--cc=xianwei.zhao@amlogic.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.