Re: [PATCH 2/4] nvmem: add generic driver for devices with MMIO access
From: AngeloGioacchino Del Regno
Date: Thu Feb 02 2023 - 04:25:27 EST
Il 01/02/23 07:47, Rafał Miłecki ha scritto:
From: Rafał Miłecki <rafal@xxxxxxxxxx>
With nvmem layouts in place we should now work on plain content access
NVMEM drivers (e.g. MMIO one). Actual NVMEM content handling should go
to layout drivers.
Signed-off-by: Rafał Miłecki <rafal@xxxxxxxxxx>
I agree but if you want to really bring on this change, you should add
some kind of write support... and clocks... and regulators with different
voltage levels (write/fuse-blow voltage, read voltage if any)...
Describing this entire thing in device-tree should be possible, but then
some SoCs may need a specific register sequence in order to enter writing
mode, which is something that you can't just put in devicetree, so this
driver should be a framework on its own - hence not as simple as proposed.
Regards,
Angelo