From: Marco Felsch <m.felsch@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
BAREBOX <barebox@lists.infradead.org>
Cc: Marco Felsch <m.felsch@pengutronix.de>
Subject: [PATCH 00/15] NVMEM: Add support for layout drivers
Date: Mon, 04 Aug 2025 16:36:46 +0200 [thread overview]
Message-ID: <20250804-v2025-06-0-topic-nvmem-v1-0-7603eaa4d2b0@pengutronix.de> (raw)
Hi,
with this patchset the barebox nvmem-core is prepared for the Linux
nvmem-layout drivers. Layout drivers are used to describe the NVMEM
storage format. The patchset also adds the support to read nvmem-cells
via the devfs. This makes it possible to read the cells from the board
code or shell without the need of referencing the cells within the DT.
A long with the alignment and feature work I fixed a few issues like:
honor the DT alias for a nvmem provider correctly.
For the new features to work correctly the NVMEM core had to be partly
(re-)synced with the one from Linux. This involved porting different DT
helpers.
Unfortunately this patchset doesn't add a NVMEM layout driver therefore
a __dummy__.o is added within the Makefile.
I decided to start from a fresh v1 because of the rework I've done. But
for reference, the previous patchset can be found here:
- https://lore.kernel.org/barebox/20240613131531.364894-1-m.felsch@pengutronix.de/
Regards,
Marco
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
Marco Felsch (15):
of: sync of_*_phandle_with_args with Linux
of: base: add of_parse_phandle_with_optional_args()
of: device: Export of_device_make_bus_id()
nvmem: core: fix nvmem_register error path
nvmem: core: sync with Linux
nvmem: core: expose nvmem cells as cdev
nvmem: core: allow single and dynamic device ids
eeprom: at24: fix device name handling
nvmem: core: create a header for internal sharing
nvmem: core: add nvmem-layout support
nvmem: core: add an index parameter to the cell
nvmem: core: add per-cell post processing
nvmem: core: add cell based fixup logic
nvmem: core: provide own priv pointer in post process callback
nvmem: core: drop global cell_post_process
drivers/eeprom/at24.c | 18 +-
drivers/nvmem/Kconfig | 7 +
drivers/nvmem/Makefile | 3 +
drivers/nvmem/core.c | 689 ++++++++++++++++++++++++++++++-----------
drivers/nvmem/imx-ocotp-ele.c | 12 +-
drivers/nvmem/internals.h | 53 ++++
drivers/nvmem/layouts.c | 173 +++++++++++
drivers/nvmem/layouts/Kconfig | 13 +
drivers/nvmem/layouts/Makefile | 7 +
drivers/nvmem/ocotp.c | 12 +-
drivers/nvmem/regmap.c | 5 +-
drivers/of/base.c | 280 +++++++++++------
drivers/of/device.c | 37 +++
drivers/of/platform.c | 36 +--
include/linux/nvmem-consumer.h | 17 +-
include/linux/nvmem-provider.h | 148 ++++++++-
include/of.h | 146 ++++++++-
include/of_device.h | 3 +
18 files changed, 1293 insertions(+), 366 deletions(-)
---
base-commit: 89bf1fcc998fc5fea0ce613d9930dd9ee39c0fb2
change-id: 20250701-v2025-06-0-topic-nvmem-c747b64106e2
Best regards,
--
Marco Felsch <m.felsch@pengutronix.de>
next reply other threads:[~2025-08-04 15:32 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-04 14:36 Marco Felsch [this message]
2025-08-04 14:36 ` [PATCH 01/15] of: sync of_*_phandle_with_args with Linux Marco Felsch
2025-08-04 14:36 ` [PATCH 02/15] of: base: add of_parse_phandle_with_optional_args() Marco Felsch
2025-08-04 14:36 ` [PATCH 03/15] of: device: Export of_device_make_bus_id() Marco Felsch
2025-08-04 14:36 ` [PATCH 04/15] nvmem: core: fix nvmem_register error path Marco Felsch
2025-08-04 14:36 ` [PATCH 05/15] nvmem: core: sync with Linux Marco Felsch
2025-08-04 14:36 ` [PATCH 06/15] nvmem: core: expose nvmem cells as cdev Marco Felsch
2025-08-04 14:36 ` [PATCH 07/15] nvmem: core: allow single and dynamic device ids Marco Felsch
2025-08-04 14:36 ` [PATCH 08/15] eeprom: at24: fix device name handling Marco Felsch
2025-08-04 14:36 ` [PATCH 09/15] nvmem: core: create a header for internal sharing Marco Felsch
2025-08-04 14:36 ` [PATCH 10/15] nvmem: core: add nvmem-layout support Marco Felsch
2025-08-04 14:36 ` [PATCH 11/15] nvmem: core: add an index parameter to the cell Marco Felsch
2025-08-04 14:36 ` [PATCH 12/15] nvmem: core: add per-cell post processing Marco Felsch
2025-08-04 14:36 ` [PATCH 13/15] nvmem: core: add cell based fixup logic Marco Felsch
2025-08-04 14:37 ` [PATCH 14/15] nvmem: core: provide own priv pointer in post process callback Marco Felsch
2025-08-04 14:37 ` [PATCH 15/15] nvmem: core: drop global cell_post_process Marco Felsch
2025-08-05 10:44 ` [PATCH 00/15] NVMEM: Add support for layout drivers Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250804-v2025-06-0-topic-nvmem-v1-0-7603eaa4d2b0@pengutronix.de \
--to=m.felsch@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox