On Thu, Dec 21, 2023 at 06:34:21PM +0100, Rafał Miłecki wrote: > From: Rafał Miłecki <rafal@xxxxxxxxxx> > > Move all generic (NVMEM devices independent) code from NVMEM device > driver to NVMEM layout driver. Then add a simple NVMEM layout code on > top of it. > > Thanks to proper layout it's possible to support U-Boot env data stored > on any kind of NVMEM device. > > For backward compatibility with old DT bindings we need to keep old > NVMEM device driver functional. To avoid code duplication export and > reuse a parsing function. > > Signed-off-by: Rafał Miłecki <rafal@xxxxxxxxxx> > Reviewed-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx> > --- > V2: Support new compatibles & use device_get_match_data() helper > V3: Use imperative in commit body > > IMPORTANT: > This is based on top of the: > [PATCH v6.8 1/2] nvmem: layouts: refactor .add_cells() callback arguments I applied patches 2-5 in this series, I'll let you rebase the remaining two after addressing the issues discussed in patch 1. thanks, gre gk-h