[PATCH v3 net-next 0/2] net: dsa: yt922x: Add support for Motorcomm YT922x
From: Kyle Switch
Date: Tue Aug 25 2026 - 02:17:01 EST
Motorcomm YT922x is a series of ethernet switches including:
- YT9224: 4 * 2.5G UTPs and 2 serdes interface
This patch just add basic func for a working DSA switch.
v3:
1. Post the driver as a patchset.
2. Remove unnecessary macros.
3. Add mib_working to indicate whether the MIB has been initialized.
4. Fix any errors found
v2: https://lore.kernel.org/all/20260820080542.2017118-1-kyle.switch@xxxxxxxxxxxxxx
1. Seperate tag_yt922x into an individual file.
2. Fix the issues from the previous version.
3. Optimize the code style to keep it consistent with the existing code style.
v1: https://lore.kernel.org/all/20260813104137.55550-1-kyle.switch@xxxxxxxxxxxxxx
1. Add basic functional interfaces for the YT922X DSA driver.
2. Although the DSA driver supports both YT922X and YT921X simultaneously,
the original file names are still maintained for now;
the file naming may be optimized in the future.
3. Currently, the dsa_switch_ops structure is employed as the operational interface.
In future phases, as functionality expands, the architecture will be refactored
to introduce yt922x_dsa_ops, where chip-specific operations will be distinguished
between YT922X and YT921X, following a design pattern commonly adopted by other
existing multi-series DSA drivers.
4. A new thread(patch series) is created. Although a previous version was submitted,
the changes are substantial, so the old version is not relevant for reference.
Kyle Switch (2):
net: dsa: tag_yt922x: add support for Motorcomm YT922x tags
net: dsa: Add support for Motorcomm YT922x
drivers/net/dsa/Kconfig | 7 +-
drivers/net/dsa/Makefile | 2 +-
drivers/net/dsa/yt921x.c | 821 ++++++++++++++++++++++++++++++++++++++-
drivers/net/dsa/yt921x.h | 104 +++++
include/net/dsa.h | 2 +
net/dsa/Kconfig | 6 +
net/dsa/Makefile | 1 +
net/dsa/tag_yt922x.c | 111 ++++++
8 files changed, 1035 insertions(+), 19 deletions(-)
create mode 100644 net/dsa/tag_yt922x.c
--
2.25.1