[PATCH 0/4] mfd: ocelot: Support the LAN9645x switch family

From: Jens Emil Schulz Østergaard

Date: Mon Nov 23 2026 - 08:26:32 EST


The Microchip LAN9645x is a family of ethernet switch chips without an
internal CPU. Like the VSC7512, the chips are controlled externally over
SPI, and the register targets of the chip are distributed as named
regmaps to child devices. This series extends the ocelot MFD driver to
the LAN9645x family, with the pin controller, the two MDIO controllers
and the switch as child devices, served by the existing pinctrl-ocelot,
mdio-mscc-miim and lan9645x DSA drivers.

Patch 1 moves the VSC7512 specific SPI interface, reset and child device
setup into match data and per chip tables.

Patch 2 adds a binding for the LAN9645x family.

Patch 3 adds the LAN9645x support.

Patch 4 reads LAN9645x registers in a single SPI transfer on full duplex
controllers.

Dependencies:

This series is based on net-next which includes [1]. The binding in
patch 2 references the switch binding
net/dsa/microchip,lan96455s-switch.yaml, and patch 2 adds the new
binding to the MICROCHIP LAN9645X ETHERNET SWITCH DRIVER entry in
MAINTAINERS, both added by that series.

The series therefore does not apply to for-mfd-next yet, and
dt_binding_check of patch 2 fails on a base without the switch binding.

The DSA series is expected in v7.5-rc1. The series is posted now for
review, and will be resent rebased on v7.5-rc1.

[1] https://lore.kernel.org/r/20261111-dsa_lan9645x_switch_driver_base-v17-0-83a471c5bddb@xxxxxxxxxxxxx

Signed-off-by: Jens Emil Schulz Østergaard <jensemil.schulzostergaard@xxxxxxxxxxxxx>
---
Jens Emil Schulz Østergaard (4):
mfd: ocelot: Select the chip through match data
dt-bindings: mfd: Add the Microchip LAN9645x switch family
mfd: ocelot: Add support for the LAN9645x switch family
mfd: ocelot: Read LAN9645x registers in a single SPI transfer

.../bindings/mfd/microchip,lan96455s.yaml | 132 +++++++++++
MAINTAINERS | 1 +
drivers/mfd/Kconfig | 2 +-
drivers/mfd/ocelot-core.c | 263 ++++++++++++++++++++-
drivers/mfd/ocelot-spi.c | 242 ++++++++++++++++---
drivers/mfd/ocelot.h | 25 +-
6 files changed, 617 insertions(+), 48 deletions(-)
---
base-commit: eb6d6c80d35449c27471b1874f13066c09a8964d
change-id: 20261118-mfd-ocelot-add-lan9645x-support-9ac4042ba475

Best regards,
--
Jens Emil Schulz Østergaard <jensemil.schulzostergaard@xxxxxxxxxxxxx>