From: Rafał Miłecki Date: Fri, 25 Feb 2022 17:58:21 +0000 (+0000) Subject: dt-bindings: nvmem: make "reg" property optional X-Git-Tag: v6.1-rc5~1693^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82a05d81d82bbe00f58be6c32ec57a59e07e0c05;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Rafał Miłecki Signed-off-by: Srinivas Kandagatla Link: https://lore.kernel.org/r/20220225175822.8293-4-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/Documentation/devicetree/bindings/nvmem/nvmem.yaml b/Documentation/devicetree/bindings/nvmem/nvmem.yaml index 43ed7e3..3bb349c 100644 --- a/Documentation/devicetree/bindings/nvmem/nvmem.yaml +++ b/Documentation/devicetree/bindings/nvmem/nvmem.yaml @@ -60,9 +60,6 @@ patternProperties: description: Size in bit within the address range specified by reg. - required: - - reg - additionalProperties: true examples: