diff mbox series

dt-bindings: nvmem: add common definition of nvmem-cell-cells

Message ID 20240109213739.558287-1-krzysztof.kozlowski@linaro.org
State Not Applicable
Headers show
Series dt-bindings: nvmem: add common definition of nvmem-cell-cells | expand

Checks

Context Check Description
robh/checkpatch success
robh/patch-applied success
robh/dtbs-check warning build log
robh/dt-meta-schema success

Commit Message

Krzysztof Kozlowski Jan. 9, 2024, 9:37 p.m. UTC
Linux kernel NVMEM consumer bindings define phandle to NVMEM cells
("nvmem-cells"), thus we also want the common definition of property
defining number of cells encoding that specifier, so the

Suggested-by: Rob Herring <robh@kernel.org>
Reported-by: Michael Walle <michael@walle.cc>
Closes: https://github.com/devicetree-org/dt-schema/pull/89
Reported-by: Rafał Miłecki <zajec5@gmail.com>
Closes: https://lore.kernel.org/linux-arm-kernel/20221121105830.7411-1-zajec5@gmail.com/#r
Closes: https://lore.kernel.org/all/bdf7751b-0421-485d-8382-26c084f09d7d@gmail.com/
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../bindings/nvmem/nvmem-provider.yaml         | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/nvmem/nvmem-provider.yaml

Comments

Rob Herring Jan. 16, 2024, 4:39 p.m. UTC | #1
On Tue, 09 Jan 2024 22:37:39 +0100, Krzysztof Kozlowski wrote:
> Linux kernel NVMEM consumer bindings define phandle to NVMEM cells
> ("nvmem-cells"), thus we also want the common definition of property
> defining number of cells encoding that specifier, so the
> 
> Suggested-by: Rob Herring <robh@kernel.org>
> Reported-by: Michael Walle <michael@walle.cc>
> Closes: https://github.com/devicetree-org/dt-schema/pull/89
> Reported-by: Rafał Miłecki <zajec5@gmail.com>
> Closes: https://lore.kernel.org/linux-arm-kernel/20221121105830.7411-1-zajec5@gmail.com/#r
> Closes: https://lore.kernel.org/all/bdf7751b-0421-485d-8382-26c084f09d7d@gmail.com/
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../bindings/nvmem/nvmem-provider.yaml         | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/nvmem/nvmem-provider.yaml
> 

Reviewed-by: Rob Herring <robh@kernel.org>
Srinivas Kandagatla Jan. 27, 2024, 11:51 a.m. UTC | #2
On Tue, 09 Jan 2024 22:37:39 +0100, Krzysztof Kozlowski wrote:
> Linux kernel NVMEM consumer bindings define phandle to NVMEM cells
> ("nvmem-cells"), thus we also want the common definition of property
> defining number of cells encoding that specifier, so the
> 
> 

Applied, thanks!

[1/1] dt-bindings: nvmem: add common definition of nvmem-cell-cells
      commit: c0e855d525b771e6fef67c7b75657380c9e02c31

Best regards,
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/nvmem/nvmem-provider.yaml b/Documentation/devicetree/bindings/nvmem/nvmem-provider.yaml
new file mode 100644
index 000000000000..4009a9a03841
--- /dev/null
+++ b/Documentation/devicetree/bindings/nvmem/nvmem-provider.yaml
@@ -0,0 +1,18 @@ 
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/nvmem/nvmem-provider.yaml#
+$schema: http://devicetree.org/meta-schemas/base.yaml#
+
+title: NVMEM (Non Volatile Memory) Provider
+
+maintainers:
+  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+
+select: true
+
+properties:
+  '#nvmem-cell-cells':
+    enum: [0, 1]
+
+additionalProperties: true