dt-bindings: nvmem: make "reg" property optional

Most NVMEM providers have cells at hardcoded addresses however there are
some exceptions. Some devices store cells layout in internal structs
using custom formats.

It's important to allow NVMEM consumers to still reference such NVMEM
cells. Making "reg" optional allows defining NVMEM cells by their names
only and using them with phandles.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20220225175822.8293-4-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Rafał Miłecki 2022-02-25 17:58:21 +00:00 committed by Greg Kroah-Hartman
parent 6e977eaa82
commit 82a05d81d8

View file

@ -60,9 +60,6 @@ patternProperties:
description:
Size in bit within the address range specified by reg.
required:
- reg
additionalProperties: true
examples: