Commit dc401475 authored by Rob Herring's avatar Rob Herring
Browse files

dt-bindings: spmi: Correct 'reg' schema



'reg' is defined to be N address entries of M cells each. For SPMI, N is 1
and M is 1 or 2. The schema fails to define the number of entries as it
only specifies the inner cell(s). To fix, add an outer items list with 1
entry.

Cc: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210615172024.856360-1-robh@kernel.org
parent 67a066b3
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -40,14 +40,15 @@ patternProperties:

    properties:
      reg:
        minItems: 1
        maxItems: 2
        items:
          - minItems: 1
            items:
              - minimum: 0
                maximum: 0xf
              - enum: [ 0 ]
            description: |
              0 means user ID address. 1 is reserved for group ID address.
                description:
                  0 means user ID address. 1 is reserved for group ID
                  address.

    required:
      - reg