2021-06-08 19:21:47

by Vadym Kochan

[permalink] [raw]
Subject: [PATCH v2 2/3] dt-bindings: nvmem: document nvmem-cells-parser-name property

Describe new "nvmem-cells-parser-name" which is used to bind registered
parser with nvmem device.

Signed-off-by: Vadym Kochan <[email protected]>
---
Documentation/devicetree/bindings/nvmem/nvmem.yaml | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/nvmem/nvmem.yaml b/Documentation/devicetree/bindings/nvmem/nvmem.yaml
index b8dc3d2b6e92..36c6361d0605 100644
--- a/Documentation/devicetree/bindings/nvmem/nvmem.yaml
+++ b/Documentation/devicetree/bindings/nvmem/nvmem.yaml
@@ -39,6 +39,11 @@ properties:
when it's driven low (logical '0') to allow writing.
maxItems: 1

+ nvmem-cells-parser-name:
+ description:
+ Name of the registered parser to parse and register the cells.
+ maxItems: 1
+
patternProperties:
"^.*@[0-9a-f]+$":
type: object
--
2.17.1


2021-06-19 10:49:53

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH v2 2/3] dt-bindings: nvmem: document nvmem-cells-parser-name property

On Tue, Jun 08, 2021 at 10:03:26PM +0300, Vadym Kochan wrote:
> Describe new "nvmem-cells-parser-name" which is used to bind registered
> parser with nvmem device.
>
> Signed-off-by: Vadym Kochan <[email protected]>
> ---
> Documentation/devicetree/bindings/nvmem/nvmem.yaml | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/nvmem/nvmem.yaml b/Documentation/devicetree/bindings/nvmem/nvmem.yaml
> index b8dc3d2b6e92..36c6361d0605 100644
> --- a/Documentation/devicetree/bindings/nvmem/nvmem.yaml
> +++ b/Documentation/devicetree/bindings/nvmem/nvmem.yaml
> @@ -39,6 +39,11 @@ properties:
> when it's driven low (logical '0') to allow writing.
> maxItems: 1
>
> + nvmem-cells-parser-name:
> + description:
> + Name of the registered parser to parse and register the cells.
> + maxItems: 1

I think this should be a 'compatible' string. We already have something
along that line with:

Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml

Rob