]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e3c95bb8e8ceb7be9f3e51da58d15ed197233d6
treeca68429497fa85b1a475abc13cd13c0d0966b3b6
parentec81f7d6bc6213e6f885e777a45cf06ed6de287b
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]