Skip to content

spi: Introduce initial EEPROM driver mode support

João Loureiro u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesIn review
  2. v32 patches 1 replySuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2spi: Introduce initial EEPROM driver mode supportMAINTAINERS configs/sandbox_defconfig drivers/misc/Kconfig +4 more+291 -02 replies
2/2sandbox: spi: Add SPI EEPROM emulator and DM testMAINTAINERS arch/sandbox/dts/test.dts drivers/misc/Makefile +4 more+225 -20 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSimon Glass
SeriesR-b T-b
1/2
2/2R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] spi: Introduce initial EEPROM driver mode support

This series introduces an initial SPI EEPROM driver model uclass, analogous to the existing I2C EEPROM support, currently providing read-only access. Patch 2 adds a sandbox emulator and a test/dm test.

v4 addresses Simon Glass's review of v3: the emulator now frees its backing store in a remove() method, and sandbox_spi_emul_get() gets full kerneldoc. Patch 1 is unchanged.

João Loureiro (2):
spi: Introduce initial EEPROM driver mode support
sandbox: spi: Add SPI EEPROM emulator and DM test

 MAINTAINERS                    |   8 ++
 arch/sandbox/dts/test.dts      |  13 ++-
 configs/sandbox_defconfig      |   1 +
 drivers/misc/Kconfig           |   6 ++
 drivers/misc/Makefile          |   2 +
 drivers/misc/spi_eeprom.c      | 185 +++++++++++++++++++++++++++++++++
 drivers/misc/spi_eeprom_emul.c | 128 +++++++++++++++++++++++
 drivers/spi/sandbox_spi.c      |  37 ++++++-
 include/dm/uclass-id.h         |   1 +
 include/spi_eeprom.h           |  91 ++++++++++++++++
 test/dm/Makefile               |   1 +
 test/dm/spi_eeprom.c           |  45 ++++++++
 12 files changed, 516 insertions(+), 2 deletions(-)
 create mode 100644 drivers/misc/spi_eeprom.c
 create mode 100644 drivers/misc/spi_eeprom_emul.c
 create mode 100644 include/spi_eeprom.h
 create mode 100644 test/dm/spi_eeprom.c
Signature · 1 line
2.54.0