Commit 6cf75e90 authored by Cosmin Tanislav's avatar Cosmin Tanislav Committed by Jonathan Cameron
Browse files

dt-bindings: iio: temperature: ltc2983: describe matrix items



Give a little bit of information on what each item in the matrix is
supposed to be.

Also, some matrices put the 'minItems' and 'maxItems' keywords in the
wrong level. They should be on the same level as the 'items' keyword.
Fix it.

Signed-off-by: default avatarCosmin Tanislav <cosmin.tanislav@analog.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20221103130041.2153295-6-demonsingur@gmail.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 828a6c22
Loading
Loading
Loading
Loading
+12 −11
Original line number Diff line number Diff line
@@ -126,8 +126,9 @@ patternProperties:
        minItems: 3
        maxItems: 64
        items:
          minItems: 2
          maxItems: 2
          items:
            - description: Voltage point in nV, signed.
            - description: Temperature point in uK.

  "^diode@":
    type: object
@@ -249,12 +250,12 @@ patternProperties:
          resistance(ohm)-temperature(K). The entries added here are in uohm
          and uK. For more details values look at table 74 and 75.
        $ref: /schemas/types.yaml#/definitions/uint64-matrix
        items:
        minItems: 3
        maxItems: 64
        items:
            minItems: 2
            maxItems: 2
          items:
            - description: Resistance point in uOhms.
            - description: Temperature point in uK.

    required:
      - adi,rsense-handle
@@ -328,8 +329,9 @@ patternProperties:
        minItems: 3
        maxItems: 64
        items:
          minItems: 2
          maxItems: 2
          items:
            - description: Resistance point in uOhms.
            - description: Temperature point in uK.

      adi,custom-steinhart:
        description:
@@ -338,7 +340,6 @@ patternProperties:
          Steinhart sensors the coefficients are given in the raw
          format. Look at table 82 for more information.
        $ref: /schemas/types.yaml#/definitions/uint32-array
        items:
        minItems: 6
        maxItems: 6