Skip to content

Commit 8f34c1a

Browse files
robimarkolag-linaro
authored andcommitted
mfd: simple-mfd-i2c: Add Delta TN48M CPLD support
Delta TN48M switches have a Lattice CPLD that serves multiple purposes including being a GPIO expander. So, lets use the simple I2C MFD driver to provide the MFD core. Also add a virtual symbol which pulls in the simple-mfd-i2c driver and provide a common symbol on which the subdevice drivers can depend on. Fixes: b3dcb5d ("gpio: Add Delta TN48M CPLD GPIO driver") Signed-off-by: Robert Marko <robert.marko@sartura.hr> Link: https://lore.kernel.org/20220131133049.77780-2-robert.marko@sartura.hr Link: https://lore.kernel.org/linux-gpio/20260112064950.3837737-1-rdunlap@infradead.org/ Signed-off-by: Linus Walleij <linusw@kernel.org> Link: https://patch.msgid.link/20260112-mfd-tn48m-v11-1-00c798d8cd2a@kernel.org Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 414f65d commit 8f34c1a

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

drivers/mfd/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,17 @@ config MFD_CS47L92
407407
help
408408
Support for Cirrus Logic CS42L92, CS47L92 and CS47L93 Smart Codecs
409409

410+
config MFD_TN48M_CPLD
411+
tristate "Delta Networks TN48M switch CPLD driver"
412+
depends on I2C
413+
depends on ARCH_MVEBU || COMPILE_TEST
414+
select MFD_SIMPLE_MFD_I2C
415+
help
416+
Select this option to enable support for Delta Networks TN48M switch
417+
CPLD. It consists of reset and GPIO drivers. CPLD provides GPIOS-s
418+
for the SFP slots as well as power supply related information.
419+
SFP support depends on the GPIO driver being selected.
420+
410421
config PMIC_DA903X
411422
bool "Dialog Semiconductor DA9030/DA9034 PMIC Support"
412423
depends on I2C=y

drivers/mfd/simple-mfd-i2c.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ static const struct simple_mfd_data spacemit_p1 = {
116116
};
117117

118118
static const struct of_device_id simple_mfd_i2c_of_match[] = {
119+
{ .compatible = "delta,tn48m-cpld" },
119120
{ .compatible = "fsl,ls1028aqds-fpga" },
120121
{ .compatible = "fsl,lx2160aqds-fpga" },
121122
{ .compatible = "fsl,lx2160ardb-fpga" },

0 commit comments

Comments
 (0)