Skip to content

Commit

Permalink
dt-bindings: nvmem: make "reg" property optional
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafał Miłecki authored and Greg Kroah-Hartman committed Mar 18, 2022
1 parent 6e977ea commit 82a05d8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Documentation/devicetree/bindings/nvmem/nvmem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ patternProperties:
description:
Size in bit within the address range specified by reg.

required:
- reg

additionalProperties: true

examples:
Expand Down

0 comments on commit 82a05d8

Please sign in to comment.