Commit fda47617 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring
Browse files

dt-bindings: leds: qcom-wled: fix number of addresses



On PM660L, PMI8994 and PMI8998, the WLED has two address spaces.  This
also fixes dtbs_check warnings like:

  arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dtb: leds@d800: reg: [[55296], [55552]] is too long

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220825125410.232377-3-krzysztof.kozlowski@linaro.org


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent e3f36b2b
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -26,7 +26,8 @@ properties:
      - qcom,pm8150l-wled
      - qcom,pm8150l-wled


  reg:
  reg:
    maxItems: 1
    minItems: 1
    maxItems: 2


  default-brightness:
  default-brightness:
    description: |
    description: |
@@ -171,6 +172,9 @@ allOf:


    then:
    then:
      properties:
      properties:
        reg:
          maxItems: 1

        qcom,current-boost-limit:
        qcom,current-boost-limit:
          enum: [ 105, 385, 525, 805, 980, 1260, 1400, 1680 ]
          enum: [ 105, 385, 525, 805, 980, 1260, 1400, 1680 ]
          default: 805
          default: 805
@@ -189,6 +193,9 @@ allOf:


    else:
    else:
      properties:
      properties:
        reg:
          minItems: 2

        qcom,current-boost-limit:
        qcom,current-boost-limit:
          enum: [ 105, 280, 450, 620, 970, 1150, 1300, 1500 ]
          enum: [ 105, 280, 450, 620, 970, 1150, 1300, 1500 ]
          default: 970
          default: 970