All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Congatec Board Controller: Add storage devices support
@ 2026-08-04 14:55 Thomas Richard (congatec GmbH)
  2026-08-04 14:55 ` [PATCH 1/4] mfd: cgbc: Fix use of negative error code as valid session handle Thomas Richard (congatec GmbH)
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Thomas Richard (congatec GmbH) @ 2026-08-04 14:55 UTC (permalink / raw)
  To: Lee Jones, Andi Shyti
  Cc: Thomas Petazzoni, Werner Gartner, mfd, linux-kernel, linux-i2c,
	Thomas Richard (congatec GmbH), stable, Sashiko

The Congatec Board Controller has an internal I2C bus with several storage
devices (EEPROM and RAM). The bus and devices are virtual but act as real
hardware. This series adds support for both the bus and devices.

List of devices:
- Secure Data EEPROM  (64 bytes, RO): static and dynamic board info
- BIOS EEPROM         (32 bytes, RW): reserved for BIOS applications
- BC EEPROM           (32 bytes, RO): Board Controller operational params
- User EEPROM         (32 bytes, RW): user applications
- BIOS RAM            (32 bytes, RW): reserved for BIOS applications
- BC RAM               (8 bytes, RO): Board Controller operational params
- User RAM            (16 bytes, RW): user applications

The i2c-cgbc driver instantiates these devices. A dedicated driver for
these devices was not necessary since the at24 driver can handle them.
The 24c01 entry (the most generic one) is used, and parameters (size,
read-only flag...) are customized via the software_node properties.

I also took this opportunity to fix an issue reported by Sashiko in the MFD
driver (PATCH 1).

Signed-off-by: Thomas Richard (congatec GmbH) <thomas.richard@bootlin.com>
---
Thomas Richard (congatec GmbH) (4):
      mfd: cgbc: Fix use of negative error code as valid session handle
      i2c: cgbc: Add virtual I2C bus support
      mfd: cgbc: Add virtual I2C bus support
      i2c: cgbc: Add virtual storage devices on the virtual I2C bus

 drivers/i2c/busses/i2c-cgbc.c | 174 ++++++++++++++++++++++++++++++++++++++++--
 drivers/mfd/cgbc-core.c       |   7 +-
 2 files changed, 174 insertions(+), 7 deletions(-)
---
base-commit: 82442496954504a901faf74105a5ab592d782288
change-id: 20260717-cgbc-i2c-storage-devices-support-b3ee7cea3320

Best regards,
--  
Thomas Richard (congatec GmbH) <thomas.richard@bootlin.com>


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-08-27 15:24 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-04 14:55 [PATCH 0/4] Congatec Board Controller: Add storage devices support Thomas Richard (congatec GmbH)
2026-08-04 14:55 ` [PATCH 1/4] mfd: cgbc: Fix use of negative error code as valid session handle Thomas Richard (congatec GmbH)
2026-08-04 15:29   ` sashiko-bot
2026-08-05  8:36     ` Thomas Richard
2026-08-04 14:55 ` [PATCH 2/4] i2c: cgbc: Add virtual I2C bus support Thomas Richard (congatec GmbH)
2026-08-04 15:43   ` sashiko-bot
2026-08-05  8:37     ` Thomas Richard
2026-08-04 14:55 ` [PATCH 3/4] mfd: " Thomas Richard (congatec GmbH)
2026-08-04 15:48   ` sashiko-bot
2026-08-12 11:20     ` Lee Jones
2026-08-12 13:27       ` Thomas Richard
2026-08-27 15:24         ` Lee Jones
2026-08-04 14:55 ` [PATCH 4/4] i2c: cgbc: Add virtual storage devices on the virtual I2C bus Thomas Richard (congatec GmbH)
2026-08-04 15:58   ` sashiko-bot
2026-08-05  8:42     ` Thomas Richard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.