mfd: ocelot: Add support for the vsc7512 chip via spi
authorColin Foster <colin.foster@in-advantage.com>
Mon, 5 Sep 2022 16:21:32 +0000 (09:21 -0700)
committerLee Jones <lee@kernel.org>
Fri, 9 Sep 2022 06:54:47 +0000 (07:54 +0100)
commitf3e893626abeac3cdd9ba41d3395dc6c1b7d5ad6
treeca68429497fa85b1a475abc13cd13c0d0966b3b6
parente5abb90a590f34c97ed7eb619033cbdea824ec12
mfd: ocelot: Add support for the vsc7512 chip via spi

The VSC7512 is a networking chip that contains several peripherals. Many of
these peripherals are currently supported by the VSC7513 and VSC7514 chips,
but those run on an internal CPU. The VSC7512 lacks this CPU, and must be
controlled externally.

Utilize the existing drivers by referencing the chip as an MFD. Add support
for the two MDIO buses, the internal phys, pinctrl, and serial GPIO.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220905162132.2943088-9-colin.foster@in-advantage.com
MAINTAINERS
drivers/mfd/Kconfig
drivers/mfd/Makefile
drivers/mfd/ocelot-core.c [new file with mode: 0644]
drivers/mfd/ocelot-spi.c [new file with mode: 0644]
drivers/mfd/ocelot.h [new file with mode: 0644]