diff mbox series

[RESEND,2/2] regulator: dt-bindings: qcom,rpmh: Combine PM6150L and PM8150L if-then

Message ID 20230327080626.24200-2-krzysztof.kozlowski@linaro.org
State Superseded
Headers show
Series [RESEND,1/2] regulator: dt-bindings: qcom,rpmh: Correct PM8550 family supplies | expand

Commit Message

Krzysztof Kozlowski March 27, 2023, 8:06 a.m. UTC
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>

---

Cc: Danila Tikhonov <danila@jiaxyga.com>
---
 .../regulator/qcom,rpmh-regulator.yaml         | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

Comments

Mark Brown April 17, 2023, 7:57 p.m. UTC | #1
On Mon, Mar 27, 2023 at 10:06:26AM +0200, Krzysztof Kozlowski wrote:
> The supplies for PM6150L and PM8150L are the same, so they can be part
> of one if-then block, for smaller code.

This doesn't apply against current code, please check and resend.
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
index 74e3acf92d21..dd52cc9f1846 100644
--- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
@@ -144,6 +144,7 @@  allOf:
         compatible:
           enum:
             - qcom,pm6150l-rpmh-regulators
+            - qcom,pm8150l-rpmh-regulators
     then:
       properties:
         vdd-bob-supply:
@@ -244,23 +245,6 @@  allOf:
       patternProperties:
         "^vdd-s([1-9]|10)-supply$": true
 
-  - if:
-      properties:
-        compatible:
-          enum:
-            - qcom,pm8150l-rpmh-regulators
-    then:
-      properties:
-        vdd-bob-supply:
-          description: BOB regulator parent supply phandle.
-        vdd-l1-l8-supply: true
-        vdd-l2-l3-supply: true
-        vdd-l4-l5-l6-supply: true
-        vdd-l7-l11-supply: true
-        vdd-l9-l10-supply: true
-      patternProperties:
-        "^vdd-s[1-8]-supply$": true
-
   - if:
       properties:
         compatible: