diff mbox series

[1/2] regulator: qcom,rpmh: Add compatible for PM8550

Message ID 20221116110515.2612515-2-abel.vesa@linaro.org (mailing list archive)
State Superseded
Headers show
Series regulator: qcom-rpmh: Add support for PM8550 | expand

Commit Message

Abel Vesa Nov. 16, 2022, 11:05 a.m. UTC
Add compatible string for PM8550 used in SM8550 boards.

Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
---
 .../regulator/qcom,rpmh-regulator.yaml        | 29 +++++++++++++++++--
 1 file changed, 26 insertions(+), 3 deletions(-)

Comments

Krzysztof Kozlowski Nov. 16, 2022, 11:23 a.m. UTC | #1
On 16/11/2022 12:05, Abel Vesa wrote:
> Add compatible string for PM8550 used in SM8550 boards.

Use subject prefixes matching the subsystem (git log --oneline -- ...).

> 
> Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
> ---
>  .../regulator/qcom,rpmh-regulator.yaml        | 29 +++++++++++++++++--
>  1 file changed, 26 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
> index 90c3bda31c23..66e6bda923cf 100644
> --- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
> +++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
> @@ -47,6 +47,7 @@ description: |
>        For PM8350, smps1 - smps12, ldo1 - ldo10
>        For PM8350C, smps1 - smps10, ldo1 - ldo13, bob
>        For PM8450, smps1 - smps6, ldo1 - ldo4
> +      For PM8550, smps1 - smps6, ldo1 - ldo17, bob1 - bob2
>        For PM8998, smps1 - smps13, ldo1 - ldo28, lvs1 - lvs2
>        For PMI8998, bob
>        For PMR735A, smps1 - smps3, ldo1 - ldo7
> @@ -70,6 +71,9 @@ properties:
>        - qcom,pm8350-rpmh-regulators
>        - qcom,pm8350c-rpmh-regulators
>        - qcom,pm8450-rpmh-regulators
> +      - qcom,pm8550-rpmh-regulators
> +      - qcom,pm8550ve-rpmh-regulators
> +      - qcom,pm8550vs-rpmh-regulators
>        - qcom,pm8998-rpmh-regulators
>        - qcom,pmg1110-rpmh-regulators
>        - qcom,pmi8998-rpmh-regulators
> @@ -83,7 +87,7 @@ properties:
>          RPMh resource name suffix used for the regulators found
>          on this PMIC.
>      $ref: /schemas/types.yaml#/definitions/string
> -    enum: [a, b, c, d, e, f, h, k]
> +    enum: [a, b, c, d, e, f, g, h, k]
>  
>    qcom,always-wait-for-ack:
>      description: |
> @@ -107,7 +111,7 @@ properties:
>        regulator-allow-set-load: ["regulator-allowed-modes"]
>  
>  patternProperties:
> -  "^(smps|ldo|lvs)[0-9]+$":
> +  "^(smps|ldo|lvs|bob)[0-9]+$":
>      type: object
>      $ref: "regulator.yaml#"
>      description: smps/ldo regulator nodes(s).
> @@ -296,8 +300,27 @@ allOf:
>              - qcom,pm8450-rpmh-regulators
>      then:
>        patternProperties:
> -        "^vdd-l[1-4]-supply$": true
> +        "^vdd-l[1-9]-supply$": true

Does not look related to this patch - aren't you changing some other
variant?

>          "^vdd-s[1-6]-supply$": true
> +        "^vdd-bob[1-2]-supply$": true

Does not look related to this patch.

> +
> +  - if:
> +      properties:
> +        compatible:
> +          enum:
> +            - qcom,pm8550-rpmh-regulators
> +            - qcom,pm8550ve-rpmh-regulators
> +            - qcom,pm8550vs-rpmh-regulators
> +    then:
> +      properties:
> +        vdd-l2-l13-l14-supply: true
> +        vdd-l5-l16-supply: true
> +        vdd-l6-l7-supply: true
> +        vdd-l8-l9-supply: true
> +      patternProperties:
> +        "^vdd-l([1-4]|1[0-7])-supply$": true
> +        "^vdd-s[1-6]-supply$": true
> +        "^vdd-bob[1-2]-supply$": true
>  
>    - if:
>        properties:

Best regards,
Krzysztof
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 90c3bda31c23..66e6bda923cf 100644
--- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
@@ -47,6 +47,7 @@  description: |
       For PM8350, smps1 - smps12, ldo1 - ldo10
       For PM8350C, smps1 - smps10, ldo1 - ldo13, bob
       For PM8450, smps1 - smps6, ldo1 - ldo4
+      For PM8550, smps1 - smps6, ldo1 - ldo17, bob1 - bob2
       For PM8998, smps1 - smps13, ldo1 - ldo28, lvs1 - lvs2
       For PMI8998, bob
       For PMR735A, smps1 - smps3, ldo1 - ldo7
@@ -70,6 +71,9 @@  properties:
       - qcom,pm8350-rpmh-regulators
       - qcom,pm8350c-rpmh-regulators
       - qcom,pm8450-rpmh-regulators
+      - qcom,pm8550-rpmh-regulators
+      - qcom,pm8550ve-rpmh-regulators
+      - qcom,pm8550vs-rpmh-regulators
       - qcom,pm8998-rpmh-regulators
       - qcom,pmg1110-rpmh-regulators
       - qcom,pmi8998-rpmh-regulators
@@ -83,7 +87,7 @@  properties:
         RPMh resource name suffix used for the regulators found
         on this PMIC.
     $ref: /schemas/types.yaml#/definitions/string
-    enum: [a, b, c, d, e, f, h, k]
+    enum: [a, b, c, d, e, f, g, h, k]
 
   qcom,always-wait-for-ack:
     description: |
@@ -107,7 +111,7 @@  properties:
       regulator-allow-set-load: ["regulator-allowed-modes"]
 
 patternProperties:
-  "^(smps|ldo|lvs)[0-9]+$":
+  "^(smps|ldo|lvs|bob)[0-9]+$":
     type: object
     $ref: "regulator.yaml#"
     description: smps/ldo regulator nodes(s).
@@ -296,8 +300,27 @@  allOf:
             - qcom,pm8450-rpmh-regulators
     then:
       patternProperties:
-        "^vdd-l[1-4]-supply$": true
+        "^vdd-l[1-9]-supply$": true
         "^vdd-s[1-6]-supply$": true
+        "^vdd-bob[1-2]-supply$": true
+
+  - if:
+      properties:
+        compatible:
+          enum:
+            - qcom,pm8550-rpmh-regulators
+            - qcom,pm8550ve-rpmh-regulators
+            - qcom,pm8550vs-rpmh-regulators
+    then:
+      properties:
+        vdd-l2-l13-l14-supply: true
+        vdd-l5-l16-supply: true
+        vdd-l6-l7-supply: true
+        vdd-l8-l9-supply: true
+      patternProperties:
+        "^vdd-l([1-4]|1[0-7])-supply$": true
+        "^vdd-s[1-6]-supply$": true
+        "^vdd-bob[1-2]-supply$": true
 
   - if:
       properties: