From: Joris Vaisvila <joey@tinyisr.com>
To: netdev@vger.kernel.org
Cc: horms@kernel.org, pabeni@redhat.com, kuba@kernel.org,
edumazet@google.com, davem@davemloft.net, olteanv@gmail.com,
Andrew Lunn <andrew@lunn.ch>, Joris Vaisvila <joey@tinyisr.com>
Subject: [RFC v2 0/3] net: dsa: MT7628 embedded switch initial support
Date: Sat, 14 Mar 2026 17:08:42 +0200 [thread overview]
Message-ID: <20260314150845.653866-1-joey@tinyisr.com> (raw)
Hello,
This RFC series adds initial support for the MT7628 Embedded Switch.
The implementation provides basic functionality required to operate the
switch using DSA. The hardware exposes 5 internal Fast Ethernet ports
and two gigabit ports, one of which is internally connected to the CPU
MAC.
Tested on MT7628NN (mistyped as mt7628AN in v1) with 5x Fast Ethernet
ports in a software bridge. All ports were verified for correct
communication while using VLAN-tagged and untagged traffic between two
hosts.
---
v2:
- Update commit messages with more relevant information
- Change all references of "special" tag to "MT7628" tag
- Fix coding style errors
- Use dsa_xmit_port_mask instead of BIT(dp->index)
- Replace phy_read/phy_write with an MDIO bus definition
- Remove PHY init from switch driver
- Fix undocumented writes to SGC2 and FCT0
- Fix missing double-tag enable required for VLAN unaware
functionality
- Fix VLAN remove logic
- Update VLAN add logic to use the first unused slot
- Add a dedicated phy driver for MT7628 FE PHYs
v1: https://lore.kernel.org/netdev/20260228185242.800836-1-joey@tinyisr.com
Joris Vaisvila (3):
net: phy: mediatek: add phy driver for MT7628 built-in Fast Ethernet
PHYs
net: dsa: initial MT7628 tagging driver
net: dsa: initial support for MT7628 embedded switch
drivers/net/dsa/Kconfig | 7 +
drivers/net/dsa/Makefile | 1 +
drivers/net/dsa/mt7628.c | 596 ++++++++++++++++++++++++++
drivers/net/phy/mediatek/Kconfig | 6 +
drivers/net/phy/mediatek/Makefile | 1 +
drivers/net/phy/mediatek/mtk-fe-soc.c | 55 +++
include/net/dsa.h | 2 +
net/dsa/Kconfig | 6 +
net/dsa/Makefile | 1 +
net/dsa/tag_mt7628.c | 93 ++++
10 files changed, 768 insertions(+)
create mode 100644 drivers/net/dsa/mt7628.c
create mode 100644 drivers/net/phy/mediatek/mtk-fe-soc.c
create mode 100644 net/dsa/tag_mt7628.c
--
2.53.0
next reply other threads:[~2026-03-14 15:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-14 15:08 Joris Vaisvila [this message]
2026-03-14 15:08 ` [RFC v2 1/3] net: phy: mediatek: add phy driver for MT7628 built-in Fast Ethernet PHYs Joris Vaisvila
2026-03-17 18:03 ` Andrew Lunn
2026-03-21 11:35 ` Joris Vaisvila
2026-03-14 15:08 ` [RFC v2 2/3] net: dsa: initial MT7628 tagging driver Joris Vaisvila
2026-03-14 17:59 ` Daniel Golle
2026-03-14 20:46 ` Joris Vaišvila
2026-03-14 15:08 ` [RFC v2 3/3] net: dsa: initial support for MT7628 embedded switch Joris Vaisvila
2026-03-14 23:41 ` Daniel Golle
2026-03-15 7:02 ` Joris Vaišvila
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=20260314150845.653866-1-joey@tinyisr.com \
--to=joey@tinyisr.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox