Skip to content

Commit 6c27bf4

Browse files
krzklag-linaro
authored andcommitted
dt-bindings: leds: qcom-lpg: Narrow nvmem for other variants
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 <[email protected]> Acked-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 615d49f commit 6c27bf4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,26 @@ required:
130130
additionalProperties: false
131131

132132
allOf:
133+
- if:
134+
properties:
135+
compatible:
136+
contains:
137+
enum:
138+
- qcom,pm660l-lpg
139+
- qcom,pm8150b-lpg
140+
- qcom,pm8150l-lpg
141+
- qcom,pm8916-pwm
142+
- qcom,pm8941-lpg
143+
- qcom,pm8994-lpg
144+
- qcom,pmc8180c-lpg
145+
- qcom,pmi8994-lpg
146+
- qcom,pmi8998-lpg
147+
- qcom,pmk8550-pwm
148+
then:
149+
properties:
150+
nvmem: false
151+
nvmem-names: false
152+
133153
- if:
134154
properties:
135155
compatible:

0 commit comments

Comments
 (0)