[PATCH v4 7/9] mfd: cgbc: Add virtual I2C bus support

From: Thomas Richard (congatec GmbH)

Date: Fri Oct 02 2026 - 07:15:46 EST


Internally the Board Controller has a virtual I2C bus with some virtual
storage devices (EEPROM and RAM). So add a new I2C cell for this I2C
virtual bus.

Signed-off-by: Thomas Richard (congatec GmbH) <thomas.richard@xxxxxxxxxxx>
---
drivers/mfd/cgbc-core.c | 11 +++++++++++
1 file changed, 11 insertions(+)

diff --git a/drivers/mfd/cgbc-core.c b/drivers/mfd/cgbc-core.c
index a58d9ffdc277..030e7eaf1dc3 100644
--- a/drivers/mfd/cgbc-core.c
+++ b/drivers/mfd/cgbc-core.c
@@ -65,6 +65,12 @@ static const struct cgbc_i2c_platform_data cgbc_i2c_ddc0_pdata = {
.cgbc_bus_id = 4,
};

+static const struct cgbc_i2c_platform_data cgbc_i2c_i2cv_pdata = {
+ .name = "cgbc-i2cv",
+ .cgbc_bus_id = 3,
+ .fixed_freq = true,
+};
+
static const struct mfd_cell cgbc_devs[] = {
MFD_CELL_NAME("cgbc-backlight"),
MFD_CELL_NAME("cgbc-gpio"),
@@ -79,6 +85,11 @@ static const struct mfd_cell cgbc_devs[] = {
.platform_data = &cgbc_i2c_ddc0_pdata,
.pdata_size = sizeof(cgbc_i2c_ddc0_pdata),
},
+ {
+ .name = "cgbc-i2c",
+ .platform_data = &cgbc_i2c_i2cv_pdata,
+ .pdata_size = sizeof(cgbc_i2c_i2cv_pdata),
+ },
MFD_CELL_NAME("cgbc-wdt"),
};


--
2.53.0