Skip to content

Commit ed47990

Browse files
krzkbroonie
authored andcommitted
regulator: dt-bindings: qcom,rpmh: Combine PM6150L and PM8150L if-then
The supplies for PM6150L and PM8150L are the same, so they can be part of one if-then block, for smaller code. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20230418071734.5706-2-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 3747339 commit ed47990

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ allOf:
147147
compatible:
148148
enum:
149149
- qcom,pm6150l-rpmh-regulators
150+
- qcom,pm8150l-rpmh-regulators
151+
- qcom,pmc8180c-rpmh-regulators
150152
then:
151153
properties:
152154
vdd-bob-supply:
@@ -264,24 +266,6 @@ allOf:
264266
patternProperties:
265267
"^vdd-s[1-9]-supply$": true
266268

267-
- if:
268-
properties:
269-
compatible:
270-
enum:
271-
- qcom,pm8150l-rpmh-regulators
272-
- qcom,pmc8180c-rpmh-regulators
273-
then:
274-
properties:
275-
vdd-bob-supply:
276-
description: BOB regulator parent supply phandle.
277-
vdd-l1-l8-supply: true
278-
vdd-l2-l3-supply: true
279-
vdd-l4-l5-l6-supply: true
280-
vdd-l7-l11-supply: true
281-
vdd-l9-l10-supply: true
282-
patternProperties:
283-
"^vdd-s[1-8]-supply$": true
284-
285269
- if:
286270
properties:
287271
compatible:

0 commit comments

Comments
 (0)