]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: nvmem: consumer: Make 'nvmem' an array of one-item entries
authorKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Wed, 10 Jun 2026 12:52:42 +0000 (14:52 +0200)
committerRob Herring (Arm) <robh@kernel.org>
Wed, 10 Jun 2026 19:27:50 +0000 (14:27 -0500)
'nvmem' unlike 'nvmem-cells', consumes references to just a single
phandle with no arguments (i.e. with 0 cells).

Constrain the schema to enforce that, so that the number of such
single-item entries can then be regulated by IP block-specific YAMLs.

Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://patch.msgid.link/20260610-topic-nvmem_schema_warning_fix-v1-1-4029becf13f9@oss.qualcomm.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Documentation/devicetree/bindings/nvmem/nvmem-consumer.yaml

index a26633bf52dbf7c6c8c059a368e27fc1a2bdd81a..45836308c7244f0b7f329a1f02475e25e6a2c2e3 100644 (file)
@@ -16,6 +16,8 @@ properties:
     $ref: /schemas/types.yaml#/definitions/phandle-array
     description:
       List of phandle to the nvmem providers.
+    items:
+      maxItems: 1
 
   nvmem-cells:
     $ref: /schemas/types.yaml#/definitions/phandle-array