Devicetree
 help / color / mirror / Atom feed
* [PATCH net-next v6 00/15] Add ETHSW support for Renesas RZ/T2H and RZ/N2H SoCs
@ 2026-12-02  9:33 Prabhakar
  2026-12-02  9:33 ` [PATCH net-next v6 01/15] net: dsa: tag_rzn1_a5psw: Drop redundant ETH_P_DSA_A5PSW definition Prabhakar
                   ` (15 more replies)
  0 siblings, 16 replies; 21+ messages in thread
From: Prabhakar @ 2026-12-02  9:33 UTC (permalink / raw)
  To: Clément Léger, Andrew Lunn, Vladimir Oltean,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiner Kallweit,
	Russell King, Willem de Bruijn, Simon Horman, Philipp Zabel,
	Geert Uytterhoeven, Magnus Damm
  Cc: linux-renesas-soc, netdev, devicetree, Prabhakar, Biju Das,
	Fabrizio Castro, Lad Prabhakar

From: Lad Prabhakar <prabhakar.mahadev-lad.rj@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/20261120002549.1908299-1-prabhakar.mahadev-lad.rj@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/20261104182105.1102555-1-prabhakar.mahadev-lad.rj@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/20261014131906.990077-1-prabhakar.mahadev-lad.rj@bp.renesas.com/
- Added new patch to restrict ports beyond port@4
- Added a restriction to disallow port@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/20261001154326.754314-1-prabhakar.mahadev-lad.rj@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/20251121113553.2955854-1-prabhakar.mahadev-lad.rj@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


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2026-12-02  9:42 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02  9:33 [PATCH net-next v6 00/15] Add ETHSW support for Renesas RZ/T2H and RZ/N2H SoCs Prabhakar
2026-12-02  9:33 ` [PATCH net-next v6 01/15] net: dsa: tag_rzn1_a5psw: Drop redundant ETH_P_DSA_A5PSW definition Prabhakar
2026-12-02  9:33 ` [PATCH net-next v6 02/15] net: dsa: tag_rzn1_a5psw: Fix RZ/N1 tagger module alias Prabhakar
2026-12-02  9:39   ` Clement Leger
2026-12-02  9:33 ` [PATCH net-next v6 03/15] net: dsa: tag_rzn1_a5psw: Add RZ/T2H ETHSW tag protocol support Prabhakar
2026-12-02  9:33 ` [PATCH net-next v6 04/15] net: pcs: rzn1-miic: Select ETHSW port speed through SWCTRL Prabhakar
2026-12-02  9:33 ` [PATCH net-next v6 05/15] dt-bindings: net: dsa: renesas,rzn1-a5psw: Reject the "ports" node Prabhakar
2026-12-02  9:33 ` [PATCH net-next v6 06/15] dt-bindings: net: dsa: renesas,rzn1-a5psw: Limit port reg values Prabhakar
2026-12-02  9:33 ` [PATCH net-next v6 07/15] dt-bindings: net: dsa: renesas,rzn1-a5psw: Add RZ/T2H and RZ/N2H ETHSW support Prabhakar
2026-12-02  9:33 ` [PATCH net-next v6 08/15] net: dsa: rzn1-a5psw: Add support for optional reset control Prabhakar
2026-12-02  9:33 ` [PATCH net-next v6 09/15] net: dsa: rzn1-a5psw: Add support for optional timestamp clock Prabhakar
2026-12-02  9:33 ` [PATCH net-next v6 10/15] net: dsa: rzn1-a5psw: Make use dev_err_probe() Prabhakar
2026-12-02  9:33 ` [PATCH net-next v6 11/15] net: dsa: rzn1-a5psw: Get switch configuration from OF data Prabhakar
2026-12-02  9:33 ` [PATCH net-next v6 12/15] net: dsa: rzn1-a5psw: Add fixed frame length workaround for management port Prabhakar
2026-12-02  9:42   ` Clement Leger
2026-12-02  9:33 ` [PATCH net-next v6 13/15] net: dsa: rzn1-a5psw: Get register layout from OF data Prabhakar
2026-12-02  9:37   ` Clement Leger
2026-12-02  9:33 ` [PATCH net-next v6 14/15] net: dsa: rzn1-a5psw: Keep MAC TX enabled on RZ/T2H Prabhakar
2026-12-02  9:33 ` [PATCH net-next v6 15/15] net: dsa: rzn1-a5psw: Add support for RZ/T2H Ethernet switch Prabhakar
2026-12-02  9:38   ` Clement Leger
2026-12-02  9:40 ` [PATCH net-next v6 00/15] Add ETHSW support for Renesas RZ/T2H and RZ/N2H SoCs netdev-bot+sinfo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox