From: Lad Prabhakar <prab…@bp.renesas.com> Hi all, The RZ/T2H and RZ/N2H SoCs integrate an Ethernet switch derived from the RZ/N1 A5PSW, but with a different port topology, additional clock and reset resources, and different tag control-data semantics. This series extends the existing A5PSW DSA driver to support the ETHSW variant while preserving RZ/N1 behavior. It adds a distinct DSA tag protocol for ETHSW, selects switch topology and tag protocol through SoC match data, handles the ETHSW clock and reset resources, and applies a management-port frame-length workaround for an ETHSW hardware issue. The binding and Kconfig entries are updated to describe and enable the new variants. v5->v6: - Dropped the fixes patches which were part of v5 as they were posted separately (and now are merged) - Patch #2 is newely added to fix module alias. - In patch #3 - Squashed the kconfig changes into this patch - Updated commit message to reflect the Kconfig changes - In patch #4 - Updated the comment to clarify the SWCTRL port speed selection mechanism -In patch #6 - Added reviewed-by tag - In patch #11 - Squashed patch #15 and #16 from v5 to limit the number of patches - Updated the commit message - Added reviewed-by tag - In patch #13 - Squashed patches #18, #19 and #20 from v5 to limit the number of patches - Updated the commit message - Dropped reviewed-by tag as patches were squashed and patch #20 wasn't reviewed - In patch #14 - Added comment about TX_ENA being kept set on RZ/T2H of patches - In a5psw_setup, explicitly set TX_ENA while disabling RX_ENA - In patch #15 - Squashed patches #21 and #24 to limit the number of patches in the series - Updated commit message v4->v5: https://lore.kernel.org/all/2026…@bp.renesas.com/ - Rebased on next so DSA_TAG_PROTO_RZT2H_ETHSW_VALUE is updated - patch #4. #8, #9, #10, #11, #18, #19, #20, #21 and #22 are new - Added RB tag from Rob for patch #5 - Updated patch #6 - Replaced the patternProperties expression - Added maximum constraint for reg values - Updated commit subject and description - Updated patch #7 - Rebased the patch due to previous changes in the binding - Replaced the patternProperties expression for ethernet-ports - Set the maximum constraint for reg values on ethernet-ports - Restored the RB tag from Rob - Updated rzt2h_of_data to match the RZ/T2H hardware configuration v3->v4: https://lore.kernel.org/all/2026…@bp.renesas.com/ - Added new patch to DT binding to restrict to use only ethernet ports - Added restriction to validate the reg property in ethernet ports - Restricted the reg property for ethernet-ports to maximum 3 for RZ/T2H - Added RB tag from Rob for the DT binding changes - Added return value check for of_device_get_match_data() v2->v3: https://lore.kernel.org/all/2026…@bp.renesas.com/ - Added new patch to restrict ports beyond po…@4 - Added a restriction to disallow po…@4 on T2H SoC - Updated commit message for patch #5 - Fixed typo in commit message: swicth -> switch - Marked of_data as const pointer to avoid build warning v1->v2: https://lore.kernel.org/all/2026…@bp.renesas.com/ - Added RB tag - Fixed review comments from Vladimir. - Added info about the IP issue and the workaround v1: https://lore.kernel.org/all/2025…@bp.renesas.com/ Cheers, Prabhakar Lad Prabhakar (15): net: dsa: tag_rzn1_a5psw: Drop redundant ETH_P_DSA_A5PSW definition net: dsa: tag_rzn1_a5psw: Fix RZ/N1 tagger module alias net: dsa: tag_rzn1_a5psw: Add RZ/T2H ETHSW tag protocol support net: pcs: rzn1-miic: Select ETHSW port speed through SWCTRL dt-bindings: net: dsa: renesas,rzn1-a5psw: Reject the "ports" node dt-bindings: net: dsa: renesas,rzn1-a5psw: Limit port reg values dt-bindings: net: dsa: renesas,rzn1-a5psw: Add RZ/T2H and RZ/N2H ETHSW support net: dsa: rzn1-a5psw: Add support for optional reset control net: dsa: rzn1-a5psw: Add support for optional timestamp clock net: dsa: rzn1-a5psw: Make use dev_err_probe() net: dsa: rzn1-a5psw: Get switch configuration from OF data net: dsa: rzn1-a5psw: Add fixed frame length workaround for management port net: dsa: rzn1-a5psw: Get register layout from OF data net: dsa: rzn1-a5psw: Keep MAC TX enabled on RZ/T2H net: dsa: rzn1-a5psw: Add support for RZ/T2H Ethernet switch .../bindings/net/dsa/renesas,rzn1-a5psw.yaml | 165 ++++++++++++-- drivers/net/dsa/Kconfig | 9 +- drivers/net/dsa/rzn1_a5psw.c | 209 +++++++++++++++--- drivers/net/dsa/rzn1_a5psw.h | 51 ++++- drivers/net/pcs/pcs-rzn1-miic.c | 46 +++- include/net/dsa.h | 2 + include/uapi/linux/if_ether.h | 2 +- net/dsa/Kconfig | 9 +- net/dsa/tag_rzn1_a5psw.c | 24 +- 9 files changed, 432 insertions(+), 85 deletions(-)
-- 2.56.1