From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2812D2E8B64 for ; Fri, 2 Oct 2026 11:13:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790939611; cv=none; b=VatcXR4+snql4df+1NsBd6dXwXCJmFGF6vagyy404feAWYiu6b8dF4M+u2sCC0vvpy+SZnpWN4Ne3JAq/L/Qd2L6fzp/4cvYx2efQtePAN2klqeRHjyciooPFbWhQ29ngFjLDNvSoK7MhukFPe8Ohe51xduVlywzL1E/YQGK6O0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790939611; c=relaxed/simple; bh=p0siNHThQ1MrQehggIEzjyMS1DCSLw/3lW+bRwnLX+w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OVeV0zaiHqCVxdm4oYRv/6lN+bol6dAx1MbsbD/wJiCqImIj/+cj7vCy+RNtCzqVNwRtRsRcSlBMLVzJWJFHXnfpVw9KwdtACalNa7b6M5cxlG1VrA4vv39M7UmjGDkSQ8msikyhGVfxls2UFpBSQNeSiIbckHJl5cEoUYKgCqE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=P7Wcqd5K; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="P7Wcqd5K" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id C12244E4110F; Fri, 2 Oct 2026 11:13:27 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 8FCFE603DC; Fri, 2 Oct 2026 11:13:27 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 61EC5103284F3; Fri, 2 Oct 2026 13:13:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1790939607; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=TI/TmucVP0/0UMrQLO8ZJIFddcGQ1Q+tYMoP8xDkmzg=; b=P7Wcqd5KJFHvSkRi4Dbp4zUk6qz0PM3wxVOfcEbA2Y8SPY3d3yyJvqC+giyIaQvJYQ8BEW 1keadsG8IIB1TIEIY4gMuJvvmKF0ZsvsaxDK3u6CzoHuEoi5lpr6J+2A2/VJDEwg60i6pk YgBx8ixGLK3kJX6qtN5iQZRc+YCkoUP31+HpjIMqC5GHBgnu5E/m9moABr/B6she1NuEqn Qv3xpp99g/kER8xc+VaRzz6aEIB8Lqn/SSoeV1NtSOD8EGiC0ueCXdOKA9ijoerRM8LrUC AsrXCxw60WH1gpUzpwUieS4oMtu7G+KEpsBq8/WPauKqRfI9zXIPxIvPpd7OdQ== From: "Thomas Richard (congatec GmbH)" Date: Fri, 02 Oct 2026 13:12:45 +0200 Subject: [PATCH v4 7/9] mfd: cgbc: Add virtual I2C bus support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261002-cgbc-i2c-storage-devices-support-v4-7-eb42e0f1df59@bootlin.com> References: <20261002-cgbc-i2c-storage-devices-support-v4-0-eb42e0f1df59@bootlin.com> In-Reply-To: <20261002-cgbc-i2c-storage-devices-support-v4-0-eb42e0f1df59@bootlin.com> To: Lee Jones , Andi Shyti Cc: Thomas Petazzoni , Werner Gartner , mfd@lists.linux.dev, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, "Thomas Richard (congatec GmbH)" X-Mailer: b4 0.16.0 X-Last-TLS-Session-Version: TLSv1.3 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) --- 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