dt-bindings: leds: qcom-lpg: Narrow nvmem for other variants
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 26 Feb 2024 07:37:13 +0000 (08:37 +0100)
committerLee Jones <lee@kernel.org>
Thu, 7 Mar 2024 08:48:14 +0000 (08:48 +0000)
Only few variants support PPG and store LPG per-channel data and pattern
in SDAM modules.  Disallow the nvmem for other variants to make the
binding precise.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240226073713.19045-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml

index 699db7995dd52612eaa50b4275894f0d87682299..54a428d3d46ffed37322297b56d5f3d9aeaa8edd 100644 (file)
@@ -130,6 +130,26 @@ required:
 additionalProperties: false
 
 allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - qcom,pm660l-lpg
+              - qcom,pm8150b-lpg
+              - qcom,pm8150l-lpg
+              - qcom,pm8916-pwm
+              - qcom,pm8941-lpg
+              - qcom,pm8994-lpg
+              - qcom,pmc8180c-lpg
+              - qcom,pmi8994-lpg
+              - qcom,pmi8998-lpg
+              - qcom,pmk8550-pwm
+    then:
+      properties:
+        nvmem: false
+        nvmem-names: false
+
   - if:
       properties:
         compatible: