mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/5] add regmap helpers for NVMEM and i2c
@ 2021-05-31  7:24 Ahmad Fatoum
  2021-05-31  7:24 ` [PATCH 1/5] regmap: implement regmap_init_i2c Ahmad Fatoum
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Ahmad Fatoum @ 2021-05-31  7:24 UTC (permalink / raw)
  To: barebox

Incoming BeagleV support should support an i2c-connected PMIC and
a fuse bank for retrieval of the MAC address. On the STM32MP1, we
also support an i2c-connected PMIC and a fuse bank for MAC address.

Instead of duplicating too much code, add some helpers, so drivers can
drop common boilerplate. The relevant STM32 drivers are ported to make
use of it.

Ahmad Fatoum (5):
  regmap: implement regmap_init_i2c
  mfd: stpmic1: simplify using regmap_init_i2c
  nvmem: provider: align read/write callback prototype with upstream
  nvmem: add nvmem_regmap_register helper
  nvmem: stm32-bsec: simplify using new nvmem_regmap_register

 drivers/base/regmap/Makefile     |  1 +
 drivers/base/regmap/regmap-i2c.c | 44 +++++++++++++++
 drivers/base/regmap/regmap.c     |  5 ++
 drivers/eeprom/at24.c            | 17 ++----
 drivers/mfd/stpmic1.c            | 47 +---------------
 drivers/net/phy/mv88e6xxx/chip.c | 11 ++--
 drivers/nvmem/Makefile           |  2 +-
 drivers/nvmem/bsec.c             | 94 ++++----------------------------
 drivers/nvmem/core.c             | 14 +++--
 drivers/nvmem/eeprom_93xx46.c    | 13 ++---
 drivers/nvmem/ocotp.c            | 12 ++--
 drivers/nvmem/rave-sp-eeprom.c   | 15 ++---
 drivers/nvmem/regmap.c           | 78 ++++++++++++++++++++++++++
 drivers/nvmem/snvs_lpgpr.c       | 13 ++---
 drivers/rtc/rtc-imxdi.c          | 13 ++---
 include/linux/nvmem-provider.h   | 15 +++--
 include/regmap.h                 | 14 +++++
 17 files changed, 211 insertions(+), 197 deletions(-)
 create mode 100644 drivers/base/regmap/regmap-i2c.c
 create mode 100644 drivers/nvmem/regmap.c

-- 
2.29.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


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

end of thread, other threads:[~2021-06-02  6:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-31  7:24 [PATCH 0/5] add regmap helpers for NVMEM and i2c Ahmad Fatoum
2021-05-31  7:24 ` [PATCH 1/5] regmap: implement regmap_init_i2c Ahmad Fatoum
2021-05-31  7:24 ` [PATCH 2/5] mfd: stpmic1: simplify using regmap_init_i2c Ahmad Fatoum
2021-05-31  7:24 ` [PATCH 3/5] nvmem: provider: align read/write callback prototype with upstream Ahmad Fatoum
2021-05-31  7:24 ` [PATCH 4/5] nvmem: add nvmem_regmap_register helper Ahmad Fatoum
2021-05-31  7:24 ` [PATCH 5/5] nvmem: stm32-bsec: simplify using new nvmem_regmap_register Ahmad Fatoum
2021-06-02  6:36 ` [PATCH 0/5] add regmap helpers for NVMEM and i2c Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox