Add GMAC support for Renesas RZ/{T2H, N2H} SoCs
Subsystems (6)
v3 cover Add GMAC support for Renesas RZ/{T2H, N2H} SoCs
From: Lad Prabhakar <[email protected]>
Hi All,
This series adds support for the Ethernet MAC (GMAC) IP present on the Renesas RZ/T2H and RZ/N2H SoCs.
While these SoCs use the same Synopsys DesignWare MAC IP (version 5.20) as the existing RZ/V2H(P), the hardware is synthesized with different options that require driver and binding updates:
- 8 RX/TX queue pairs instead of 4 (requiring 19 interrupts vs 11)
- Different clock requirements (3 clocks vs 7)
- Different reset handling (2 named resets vs 1 unnamed)
- Split header feature enabled
- GMAC connected through a MIIC PCS on RZ/T2H
The series first updates the generic dwmac binding to accommodate the higher interrupt count, then extends the Renesas-specific binding with a to document both SoCs.
The driver changes prepare for multi-SoC support by introducing OF match data for per-SoC configuration, then add RZ/T2H support including PCS integration through the existing RZN1 MIIC driver.
Note this patch series is dependent on the PCS driver [0]
(not a build dependency).
[0] https://lore.kernel.org/all/[email protected]/
v2->v3:
- Rebased on top next-20250908.
- Made sure STMMAC_FLAG_EN_TX_LPI_CLK_PHY_CAP flag is always set for all the SoCs.
- Updated Kconfig to include RZ/T2H and RZ/N2H.
- Fixed commit message typos.v1->v2:
- Squshed incerasing interrupt count changes to snps,dwmac.yaml into this patch.
- Dropped un-necessary blank lines.
- Switched using "renesas,r9a09g077-gbeth" compatible string for RZ/T2H instead of "renesas,rzt2h-gbeth" and used it as a fallback for RZ/N2H.
- Updated description for reset property.
- Added pcs-handle property required for RZ/T2H.
- Updated commit message to reflect changes for patch 1/3.
Cheers,
Prabhakar
Lad Prabhakar (3):
dt-bindings: net: renesas,rzv2h-gbeth: Document Renesas RZ/T2H and
RZ/N2H SoCs
net: stmmac: dwmac-renesas-gbeth: Use OF data for configuration
net: stmmac: dwmac-renesas-gbeth: Add support for RZ/T2H SoC
.../bindings/net/renesas,rzv2h-gbeth.yaml | 178 ++++++++++++++---- .../devicetree/bindings/net/snps,dwmac.yaml | 9 +- drivers/net/ethernet/stmicro/stmmac/Kconfig | 12 +- .../stmicro/stmmac/dwmac-renesas-gbeth.c | 108 ++++++++++- 4 files changed, 248 insertions(+), 59 deletions(-)
Signature · 1 line
2.51.0
PATCH v3 1/3 dt-bindings: net: renesas,rzv2h-gbeth: Document Renesas RZ/T2H and RZ/N2H SoCs
From: Lad Prabhakar <[email protected]>
Add device tree binding support for the Gigabit Ethernet MAC (GMAC) IP on Renesas RZ/T2H and RZ/N2H SoCs. While these SoCs use the same Synopsys DesignWare MAC version 5.20 as RZ/V2H, they are synthesized with different hardware configurations.
Add new compatible strings "renesas,r9a09g077-gbeth" for RZ/T2H and "renesas,r9a09g087-gbeth" for RZ/N2H, with the latter using RZ/T2H as fallback since they share identical GMAC IP.
Update the schema to handle hardware differences between SoC variants. RZ/T2H requires only 3 clocks compared to 7 on RZ/V2H, supports 8 RX/TX queue pairs instead of 4, and needs 2 reset controls with reset-names property versus a single unnamed reset. RZ/T2H also has the split header feature enabled which is disabled on RZ/V2H.
Add support for an optional pcs-handle property to connect the GMAC to the MIIC PCS converter on RZ/T2H. Use conditional schema validation to enforce the correct clock, reset, and interrupt configurations per SoC variant.
Extend the base snps,dwmac.yaml schema to accommodate the increased interrupt count, supporting up to 19 interrupts and extending the rx-queue and tx-queue interrupt name patterns to cover queues 0-7.
---v2->v3:
- No changes.
v1->v2:
- Squshed incerasing interrupt count changes to snps,dwmac.yaml into this patch.
- Dropped un-necessary blank lines.
- Switched using "renesas,r9a09g077-gbeth" compatible string for RZ/T2H instead of "renesas,rzt2h-gbeth" and used it as a fallback for RZ/N2H.
- Added pcs-handle property required for RZ/T2H.
- Updated description for reset property.
- Updated commit message to reflect changes.
--- .../bindings/net/renesas,rzv2h-gbeth.yaml | 178 ++++++++++++++---- .../devicetree/bindings/net/snps,dwmac.yaml | 9 +- 2 files changed, 143 insertions(+), 44 deletions(-)
Documentation/devicetree/bindings/net/renesas,rzv2h-gbeth.yaml +138 -40
@@ -17,63 +17,111 @@ select: - renesas,r9a09g047-gbeth - renesas,r9a09g056-gbeth - renesas,r9a09g057-gbeth + - renesas,r9a09g077-gbeth + - renesas,r9a09g087-gbeth - renesas,rzv2h-gbeth required: - compatible properties: compatible: - items: - - enum: - - renesas,r9a09g047-gbeth # RZ/G3E - - renesas,r9a09g056-gbeth # RZ/V2N - - renesas,r9a09g057-gbeth # RZ/V2H(P) - - const: renesas,rzv2h-gbeth - - const: snps,dwmac-5.20 + oneOf: + - items: + - enum: + - renesas,r9a09g047-gbeth # RZ/G3E + - renesas,r9a09g056-gbeth # RZ/V2N + - renesas,r9a09g057-gbeth # RZ/V2H(P) + - const: renesas,rzv2h-gbeth + - const: snps,dwmac-5.20 + - items: + - const: renesas,r9a09g077-gbeth # RZ/T2H + - const: snps,dwmac-5.20 + - items: + - const: renesas,r9a09g087-gbeth # RZ/N2H + - const: renesas,r9a09g077-gbeth + - const: snps,dwmac-5.20 reg: maxItems: 1 clocks: - items: - - description: CSR clock - - description: AXI system clock - - description: PTP clock - - description: TX clock - - description: RX clock - - description: TX clock phase-shifted by 180 degrees - - description: RX clock phase-shifted by 180 degrees + oneOf: + - items: + - description: CSR clock + - description: AXI system clock + - description: PTP clock + - description: TX clock + - description: RX clock + - description: TX clock phase-shifted by 180 degrees + - description: RX clock phase-shifted by 180 degrees + - items: + - description: CSR clock + - description: AXI system clock + - description: TX clock clock-names: - items: - - const: stmmaceth - - const: pclk - - const: ptp_ref - - const: tx - - const: rx - - const: tx-180 - - const: rx-180 - - interrupts: - minItems: 11 + oneOf: + - items: + - const: stmmaceth + - const: pclk + - const: ptp_ref + - const: tx + - const: rx + - const: tx-180 + - const: rx-180 + - items: + - const: stmmaceth + - const: pclk + - const: tx interrupt-names: - items: - - const: macirq - - const: eth_wake_irq - - const: eth_lpi - - const: rx-queue-0 - - const: rx-queue-1 - - const: rx-queue-2 - - const: rx-queue-3 - - const: tx-queue-0 - - const: tx-queue-1 - - const: tx-queue-2 - - const: tx-queue-3 + oneOf: + - items: + - const: macirq + - const: eth_wake_irq + - const: eth_lpi + - const: rx-queue-0 + - const: rx-queue-1 + - const: rx-queue-2 + - const: rx-queue-3 + - const: tx-queue-0 + - const: tx-queue-1 + - const: tx-queue-2 + - const: tx-queue-3 + - items: + - const: macirq + - const: eth_wake_irq + - const: eth_lpi + - const: rx-queue-0 + - const: rx-queue-1 + - const: rx-queue-2 + - const: rx-queue-3 + - const: rx-queue-4 + - const: rx-queue-5 + - const: rx-queue-6 + - const: rx-queue-7 + - const: tx-queue-0 + - const: tx-queue-1 + - const: tx-queue-2 + - const: tx-queue-3 + - const: tx-queue-4 + - const: tx-queue-5 + - const: tx-queue-6 + - const: tx-queue-7 resets: - items: - - description: AXI power-on system reset + oneOf: + - items: + - description: AXI power-on system reset + - items: + - description: AXI power-on system reset + - description: AHB reset + + pcs-handle: + description: + phandle pointing to a PCS sub-node compatible with + Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml# + (Refer RZ/T2H portion in the DT-binding file) required: - compatible
@@ -87,6 +135,56 @@ required: allOf: - $ref: snps,dwmac.yaml# + - if: + properties: + compatible: + contains: + const: renesas,r9a09g077-gbeth + then: + properties: + clocks: + maxItems: 3 + + clock-names: + maxItems: 3 + + interrupts: + minItems: 19 + + interrupt-names: + minItems: 19 + + resets: + minItems: 2 + + reset-names: + minItems: 2 + + required: + - reset-names + else: + properties: + clocks: + minItems: 7 + + clock-names: + minItems: 7 + + interrupts: + minItems: 11 + maxItems: 11 + + interrupt-names: + minItems: 11 + maxItems: 11 + + resets: + maxItems: 1 + + pcs-handle: false + + reset-names: false + unevaluatedProperties: false examples:
Documentation/devicetree/bindings/net/snps,dwmac.yaml +5 -4
@@ -75,6 +75,7 @@ properties: - qcom,sc8280xp-ethqos - qcom,sm8150-ethqos - renesas,r9a06g032-gmac + - renesas,r9a09g077-gbeth - renesas,rzn1-gmac - renesas,rzv2h-gbeth - rockchip,px30-gmac
@@ -118,11 +119,11 @@ properties: interrupts: minItems: 1 - maxItems: 11 + maxItems: 19 interrupt-names: minItems: 1 - maxItems: 11 + maxItems: 19 items: oneOf: - description: Combined signal for various interrupt events
@@ -134,9 +135,9 @@ properties: - description: The interrupt that occurs when HW safety error triggered const: sfty - description: Per channel receive completion interrupt - pattern: '^rx-queue-[0-3]$' + pattern: '^rx-queue-[0-7]$' - description: Per channel transmit completion interrupt - pattern: '^tx-queue-[0-3]$' + pattern: '^tx-queue-[0-7]$' clocks: minItems: 1
Signature · 1 line
2.51.0
Re: [PATCH net-next v3 1/3] dt-bindings: net: renesas,rzv2h-gbeth: Document Renesas RZ/T2H and RZ/N2H SoCs
Quoted 22 lines · Prabhakar
From: Lad Prabhakar <[email protected]>
Add device tree binding support for the Gigabit Ethernet MAC (GMAC) IP on Renesas RZ/T2H and RZ/N2H SoCs. While these SoCs use the same Synopsys DesignWare MAC version 5.20 as RZ/V2H, they are synthesized with different hardware configurations.
Add new compatible strings "renesas,r9a09g077-gbeth" for RZ/T2H and "renesas,r9a09g087-gbeth" for RZ/N2H, with the latter using RZ/T2H as fallback since they share identical GMAC IP.
Update the schema to handle hardware differences between SoC variants. RZ/T2H requires only 3 clocks compared to 7 on RZ/V2H, supports 8 RX/TX queue pairs instead of 4, and needs 2 reset controls with reset-names property versus a single unnamed reset. RZ/T2H also has the split header feature enabled which is disabled on RZ/V2H.
Add support for an optional pcs-handle property to connect the GMAC to the MIIC PCS converter on RZ/T2H. Use conditional schema validation to enforce the correct clock, reset, and interrupt configurations per SoC variant.
Quoted 5 lines
Extend the base snps,dwmac.yaml schema to accommodate the increased interrupt count, supporting up to 19 interrupts and extending the rx-queue and tx-queue interrupt name patterns to cover queues 0-7.
Signed-off-by Lad Prabhakar <[email protected]>
Best regards,
Krzysztof
PATCH v3 2/3 net: stmmac: dwmac-renesas-gbeth: Use OF data for configuration
In reply to PrabhakarFrom: Lad Prabhakar <[email protected]>
Prepare for adding RZ/T2H SoC support by making the driver configuration selectable via OF match data. While the RZ/V2H(P) and RZ/T2H use the same version of the Synopsys DesignWare MAC (version 5.20), the hardware is synthesized with different options. To accommodate these differences, introduce a struct holding per-SoC configuration such as clock list, number of clocks, TX clock rate control, and STMMAC flags, and retrieve it from the device tree match entry during probe.
---v2->v3:
- Made sure STMMAC_FLAG_EN_TX_LPI_CLK_PHY_CAP flag is always set for all the SoCs.
v1->v2:
- No changes.
--- .../stmicro/stmmac/dwmac-renesas-gbeth.c | 57 +++++++++++++++---- 1 file changed, 47 insertions(+), 10 deletions(-)
drivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c +47 -10
@@ -16,12 +16,34 @@#include <linux/clk.h> #include <linux/device.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/platform_device.h> #include <linux/reset.h> +#include <linux/types.h> #include "stmmac_platform.h" +/** +* struct renesas_gbeth_of_data - OF data for Renesas GBETH +* +* @clks: Array of clock names +* @num_clks: Number of clocks +* @stmmac_flags: Flags for the stmmac driver +* @handle_reset: Flag to indicate if reset control is +* handled by the glue driver or core driver. +* @set_clk_tx_rate: Flag to indicate if Tx clock is fixed or +* set_clk_tx_rate is needed. +*/ +struct renesas_gbeth_of_data { +const char *const *clks; +u8 num_clks; +u32 stmmac_flags; +bool handle_reset; +bool set_clk_tx_rate; +}; +struct renesas_gbeth { +const struct renesas_gbeth_of_data *of_data;struct plat_stmmacenet_data *plat_dat;struct reset_control *rstc;struct device *dev;
@@ -70,6 +92,7 @@ static void renesas_gbeth_exit(struct platform_device *pdev, void *priv)static int renesas_gbeth_probe (struct platform_device *pdev) { +const struct renesas_gbeth_of_data *of_data;struct plat_stmmacenet_data *plat_dat;struct stmmac_resources stmmac_res;struct device *dev = &pdev->dev;
@@ -91,14 +114,17 @@ static int renesas_gbeth_probe(struct platform_device *pdev)if (!gbeth)return -ENOMEM ; - plat_dat->num_clks =ARRAY_SIZE (renesas_gbeth_clks); + of_data =of_device_get_match_data (&pdev->dev); + gbeth->of_data = of_data; + + plat_dat->num_clks = of_data->num_clks; plat_dat->clks =devm_kcalloc (dev, plat_dat->num_clks,sizeof (*plat_dat->clks),GFP_KERNEL );if (!plat_dat->clks)return -ENOMEM ;for (i =0 ; i < plat_dat->num_clks; i++) - plat_dat->clks[i].id = renesas_gbeth_clks[i]; + plat_dat->clks[i].id = of_data->clks[i]; err =devm_clk_bulk_get (dev, plat_dat->num_clks, plat_dat->clks);if (err <0 )
@@ -109,25 +135,36 @@ static int renesas_gbeth_probe(struct platform_device *pdev)return dev_err_probe (dev, -EINVAL ,"error finding tx clock\n" ); - gbeth->rstc =devm_reset_control_get_exclusive (dev,NULL ); -if (IS_ERR (gbeth->rstc)) -return PTR_ERR (gbeth->rstc); +if (of_data->handle_reset) { + gbeth->rstc =devm_reset_control_get_exclusive (dev,NULL ); +if (IS_ERR (gbeth->rstc)) +return PTR_ERR (gbeth->rstc); + } gbeth->dev = dev; gbeth->plat_dat = plat_dat; plat_dat->bsp_priv = gbeth; - plat_dat->set_clk_tx_rate = stmmac_set_clk_tx_rate; +if (of_data->set_clk_tx_rate) + plat_dat->set_clk_tx_rate = stmmac_set_clk_tx_rate; plat_dat->init = renesas_gbeth_init; plat_dat->exit = renesas_gbeth_exit; - plat_dat->flags |=STMMAC_FLAG_HWTSTAMP_CORRECT_LATENCY | -STMMAC_FLAG_EN_TX_LPI_CLK_PHY_CAP | -STMMAC_FLAG_SPH_DISABLE ; + plat_dat->flags |=STMMAC_FLAG_EN_TX_LPI_CLK_PHY_CAP | + gbeth->of_data->stmmac_flags;return devm_stmmac_pltfr_probe (pdev, plat_dat, &stmmac_res); } +static const struct renesas_gbeth_of_data renesas_gbeth_of_data = { + .clks = renesas_gbeth_clks, + .num_clks =ARRAY_SIZE (renesas_gbeth_clks), + .handle_reset = true, + .set_clk_tx_rate = true, + .stmmac_flags =STMMAC_FLAG_HWTSTAMP_CORRECT_LATENCY | +STMMAC_FLAG_SPH_DISABLE , +}; +static const struct of_device_id renesas_gbeth_match[] = { - { .compatible ="renesas,rzv2h-gbeth" , }, + { .compatible ="renesas,rzv2h-gbeth" , .data = &renesas_gbeth_of_data }, {/* Sentinel */ } };MODULE_DEVICE_TABLE (of, renesas_gbeth_match);
Signature · 1 line
2.51.0
PATCH v3 3/3 net: stmmac: dwmac-renesas-gbeth: Add support for RZ/T2H SoC
In reply to PrabhakarFrom: Lad Prabhakar <[email protected]>
Extend the Renesas GBETH stmmac glue driver to support the RZ/T2H SoC, where the GMAC is connected through a MIIC PCS. Introduce a new has_pcs flag in struct renesas_gbeth_of_data to indicate when PCS handling is required.
When enabled, the driver parses the pcs-handle phandle, creates a PCS instance with miic_create(), and wires it into phylink. Proper cleanup is done with miic_destroy(). New init/exit/select hooks are added to plat_stmmacenet_data for PCS integration.
Update Kconfig to select PCS_RZN1_MIIC when building the Renesas GBETH driver so the PCS support is always available.
---v2->v3:
- Dropped passing STMMAC_FLAG_EN_TX_LPI_CLK_PHY_CAP flag in stmmac_flags as it is always set for all the SoCs.
- Updated Kconfig to include RZ/T2H and RZ/N2H.
v1->v2:
- No changes.
--- drivers/net/ethernet/stmicro/stmmac/Kconfig | 12 +++-- .../stmicro/stmmac/dwmac-renesas-gbeth.c | 51 +++++++++++++++++++ 2 files changed, 58 insertions(+), 5 deletions(-)
drivers/net/ethernet/stmicro/stmmac/Kconfig +7 -5
@@ -133,15 +133,17 @@ config DWMAC_QCOM_ETHQOS stmmac device driver. config DWMAC_RENESAS_GBETH - tristate "Renesas RZ/V2H(P) GBETH support" + tristate "Renesas RZ/V2H(P) GBETH and RZ/T2H, RZ/N2H GMAC support" default ARCH_RENESAS depends on OF && (ARCH_RENESAS || COMPILE_TEST) + select PCS_RZN1_MIIC help - Support for Gigabit Ethernet Interface (GBETH) on Renesas - RZ/V2H(P) SoCs. + Support for Gigabit Ethernet Interface (GBETH)/ Ethernet MAC (GMAC) + on Renesas SoCs. - This selects the Renesas RZ/V2H(P) Soc specific glue layer support - for the stmmac device driver. + This selects Renesas SoC glue layer support for the stmmac device + driver. This driver is used for the RZ/V2H(P) family, RZ/T2H and + RZ/N2H SoCs. config DWMAC_ROCKCHIP tristate "Rockchip dwmac support"
drivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c +51 -0
88 lines not on this page · raw message
Signature · 1 line
2.51.0
Re: [PATCH net-next v3 3/3] net: stmmac: dwmac-renesas-gbeth: Add support for RZ/T2H SoC
Quoted 16 lines · Prabhakar
From: Lad Prabhakar <[email protected]>
Extend the Renesas GBETH stmmac glue driver to support the RZ/T2H SoC, where the GMAC is connected through a MIIC PCS. Introduce a new
has_pcsflag instruct renesas_gbeth_of_datato indicate when PCS handling is required.When enabled, the driver parses the
pcs-handlephandle, creates a PCS instance withmiic_create(), and wires it into phylink. Proper cleanup is done withmiic_destroy(). Newinit/exit/selecthooks are added toplat_stmmacenet_datafor PCS integration.Update
Kconfigto selectPCS_RZN1_MIICwhen building the Renesas GBETH driver so the PCS support is always available.Signed-off-by Lad Prabhakar <[email protected]>
Quoted 8 lines
---
v2->v3:
- Dropped passingSTMMAC_FLAG_EN_TX_LPI_CLK_PHY_CAPflag instmmac_flagsas it is always set for all the SoCs.
- UpdatedKconfigto include RZ/T2H and RZ/N2H.
v1->v2:
- No changes.
The following warning is seen when doing a defconfig build (make defconfig) for arm64 on the Linux next-20250915 tag.
First seen on next-20250915
Good: next-20250912
Bad: next-20250915
Regression Analysis:
- New regression? yes
- Reproducibility? yes
Build regression: WARNING: unmet direct dependencies detected for PCS_RZN1_MIIC
This is the build warning:
WARNING: unmet direct dependencies detected for PCS_RZN1_MIIC
Depends on [n]: NETDEVICES [=y] && OF [=y] && (ARCH_RZN1 [=n] || COMPILE_TEST [=n])
Selected by [m]:
- DWMAC_RENESAS_GBETH [=m] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_STMICRO [=y] && STMMAC_ETH [=m] && STMMAC_PLATFORM [=m] && OF [=y] && (ARCH_RENESAS [=y] || COMPILE_TEST [=n])
WARNING: unmet direct dependencies detected for PCS_RZN1_MIIC
Depends on [n]: NETDEVICES [=y] && OF [=y] && (ARCH_RZN1 [=n] || COMPILE_TEST [=n])
Selected by [m]:
- DWMAC_RENESAS_GBETH [=m] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_STMICRO [=y] && STMMAC_ETH [=m] && STMMAC_PLATFORM [=m] && OF [=y] && (ARCH_RENESAS [=y] || COMPILE_TEST [=n])
I: config: PASS in 0:00:01.592356
By reverting this patch the warning disapears.
## Source
* Kernel version: 6.17.0-rc6
* Git tree:
* https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next.git
* Git describe: next-20250915
* Git commit: c3067c2c38316c3ef013636c93daa285ee6aaa2e
* Architectures: arm64
* Toolchains: gcc and clang
* Kconfigs: lkftconfigs
## Build
* Build log: https://storage.tuxsuite.com/public/linaro/lkft/builds/32l4UF8KltAzu6kUpW3hXaYRWjZ/build.log
* Test details: https://regressions.linaro.org/lkft/linux-next-master/next-20250915/log-parser-build-clang/general-unmet-dependencies-warning-unmet-direct-dependencies-detected-for-pcs_rzn_miic/
* Build link: https://storage.tuxsuite.com/public/linaro/lkft/builds/32l4UF8KltAzu6kUpW3hXaYRWjZ/
* Kernel config: https://storage.tuxsuite.com/public/linaro/lkft/builds/32l4UF8KltAzu6kUpW3hXaYRWjZ/config
--
Linaro LKFT
Re: [PATCH net-next v3 3/3] net: stmmac: dwmac-renesas-gbeth: Add support for RZ/T2H SoC
Hi Anders,
Quoted 47 lines · Anders Roxell
Quoted 16 lines · Prabhakar
From: Lad Prabhakar <[email protected]>
Extend the Renesas GBETH stmmac glue driver to support the RZ/T2H SoC, where the GMAC is connected through a MIIC PCS. Introduce a new
has_pcsflag instruct renesas_gbeth_of_datato indicate when PCS handling is required.When enabled, the driver parses the
pcs-handlephandle, creates a PCS instance withmiic_create(), and wires it into phylink. Proper cleanup is done withmiic_destroy(). Newinit/exit/selecthooks are added toplat_stmmacenet_datafor PCS integration.Update
Kconfigto selectPCS_RZN1_MIICwhen building the Renesas GBETH driver so the PCS support is always available.Signed-off-by Lad Prabhakar <[email protected]>Quoted 8 lines
---
v2->v3:
- Dropped passingSTMMAC_FLAG_EN_TX_LPI_CLK_PHY_CAPflag instmmac_flagsas it is always set for all the SoCs.
- UpdatedKconfigto include RZ/T2H and RZ/N2H.
v1->v2:
- No changes.The following warning is seen when doing a defconfig build (make defconfig) for arm64 on the Linux next-20250915 tag.
First seen on next-20250915
Good: next-20250912
Bad: next-20250915Regression Analysis:
- New regression? yes
- Reproducibility? yesBuild regression: WARNING: unmet direct dependencies detected for
PCS_RZN1_MIICThis is the build warning:
WARNING: unmet direct dependencies detected forPCS_RZN1_MIIC
Depends on [n]: NETDEVICES [=y] && OF [=y] && (ARCH_RZN1[=n] ||COMPILE_TEST[=n])
Selected by [m]:
-DWMAC_RENESAS_GBETH[=m] && NETDEVICES [=y] && ETHERNET [=y] &&NET_VENDOR_STMICRO[=y] &&STMMAC_ETH[=m] &&STMMAC_PLATFORM[=m] && OF [=y] && (ARCH_RENESAS[=y] ||COMPILE_TEST[=n])
Quoted 5 lines
WARNING: unmet direct dependencies detected for
PCS_RZN1_MIIC
Depends on [n]: NETDEVICES [=y] && OF [=y] && (ARCH_RZN1[=n] ||COMPILE_TEST[=n])
Selected by [m]:
-DWMAC_RENESAS_GBETH[=m] && NETDEVICES [=y] && ETHERNET [=y] &&NET_VENDOR_STMICRO[=y] &&STMMAC_ETH[=m] &&STMMAC_PLATFORM[=m] && OF [=y] && (ARCH_RENESAS[=y] ||COMPILE_TEST[=n])
I: config: PASS in 0:00:01.592356
Thanks for your report!
config DWMAC_RENESAS_GBETH
depends on OF && (ARCH_RENESAS || COMPILE_TEST)
select PCS_RZN1_MIIC
config PCS_RZN1_MIIC
depends on ARCH_RZN1 || ARCH_R9A09G077 || ARCH_R9A09G087 || COMPILE_TEST"ARCH_RENESAS" is wider than "ARCH_RZN1 || ARCH_R9A09G077 || ARCH_R9A09G087". I would just change the latter to ARCH_RENESAS.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH net-next v3 3/3] net: stmmac: dwmac-renesas-gbeth: Add support for RZ/T2H SoC
Hi Andres and Geert,
Quoted 66 lines · Geert Uytterhoeven
Hi Anders,
Quoted 47 lines · Anders Roxell
Quoted 16 lines · Prabhakar
From: Lad Prabhakar <[email protected]>
Extend the Renesas GBETH stmmac glue driver to support the RZ/T2H SoC, where the GMAC is connected through a MIIC PCS. Introduce a new
has_pcsflag instruct renesas_gbeth_of_datato indicate when PCS handling is required.When enabled, the driver parses the
pcs-handlephandle, creates a PCS instance withmiic_create(), and wires it into phylink. Proper cleanup is done withmiic_destroy(). Newinit/exit/selecthooks are added toplat_stmmacenet_datafor PCS integration.Update
Kconfigto selectPCS_RZN1_MIICwhen building the Renesas GBETH driver so the PCS support is always available.Signed-off-by Lad Prabhakar <[email protected]>Quoted 8 lines
---
v2->v3:
- Dropped passingSTMMAC_FLAG_EN_TX_LPI_CLK_PHY_CAPflag instmmac_flagsas it is always set for all the SoCs.
- UpdatedKconfigto include RZ/T2H and RZ/N2H.
v1->v2:
- No changes.The following warning is seen when doing a defconfig build (make defconfig) for arm64 on the Linux next-20250915 tag.
First seen on next-20250915
Good: next-20250912
Bad: next-20250915Regression Analysis:
- New regression? yes
- Reproducibility? yesBuild regression: WARNING: unmet direct dependencies detected for
PCS_RZN1_MIICThis is the build warning:
WARNING: unmet direct dependencies detected forPCS_RZN1_MIIC
Depends on [n]: NETDEVICES [=y] && OF [=y] && (ARCH_RZN1[=n] ||COMPILE_TEST[=n])
Selected by [m]:
-DWMAC_RENESAS_GBETH[=m] && NETDEVICES [=y] && ETHERNET [=y] &&NET_VENDOR_STMICRO[=y] &&STMMAC_ETH[=m] &&STMMAC_PLATFORM[=m] && OF [=y] && (ARCH_RENESAS[=y] ||COMPILE_TEST[=n])Quoted 5 lines
WARNING: unmet direct dependencies detected for
PCS_RZN1_MIIC
Depends on [n]: NETDEVICES [=y] && OF [=y] && (ARCH_RZN1[=n] ||COMPILE_TEST[=n])
Selected by [m]:
-DWMAC_RENESAS_GBETH[=m] && NETDEVICES [=y] && ETHERNET [=y] &&NET_VENDOR_STMICRO[=y] &&STMMAC_ETH[=m] &&STMMAC_PLATFORM[=m] && OF [=y] && (ARCH_RENESAS[=y] ||COMPILE_TEST[=n])
I: config: PASS in 0:00:01.592356Thanks for your report!
config DWMAC_RENESAS_GBETH depends on OF && (ARCH_RENESAS || COMPILE_TEST) select PCS_RZN1_MIIC config PCS_RZN1_MIIC depends on ARCH_RZN1 || ARCH_R9A09G077 || ARCH_R9A09G087 || COMPILE_TEST
Quoted 3 lines
"
ARCH_RENESAS" is wider than "ARCH_RZN1||ARCH_R9A09G077||ARCH_R9A09G087". I would just change the latter toARCH_RENESAS.
Thank you both. I'll create a patch updating it to use ARCH_RENESAS.
Cheers,
Prabhakar
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Mon, 8 Sep 2025 11:58:58 +0100 you wrote:
From: Lad Prabhakar <[email protected]>
Hi All,
This series adds support for the Ethernet MAC (GMAC) IP present on the Renesas RZ/T2H and RZ/N2H SoCs.
[...]
Here is the summary with links:
- [net-next,v3,1/3] dt-bindings: net: renesas,rzv2h-gbeth: Document Renesas RZ/T2H and RZ/N2H SoCs
https://git.kernel.org/netdev/net-next/c/d43ce9822349 - [net-next,v3,2/3] net: stmmac: dwmac-renesas-gbeth: Use OF data for configuration https://git.kernel.org/netdev/net-next/c/264c26934f75 - [net-next,v3,3/3] net: stmmac: dwmac-renesas-gbeth: Add support for RZ/T2H SoC https://git.kernel.org/netdev/net-next/c/57e9e4d7023a
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html