diff mbox series

[v2,1/5] dt-bindings: regulator: Document the PM6125 SPMI PMIC

Message ID 20220726181133.3262695-2-iskren.chernev@gmail.com (mailing list archive)
State Superseded
Headers show
Series PM6125 regulator support | expand

Commit Message

Iskren Chernev July 26, 2022, 6:11 p.m. UTC
Add support for pm6125 compatible string and add relevant supplies in QCom SPMI
regulator documentation.

Signed-off-by: Iskren Chernev <iskren.chernev@gmail.com>
Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
---
 .../regulator/qcom,spmi-regulator.yaml        | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

--
2.37.1

Comments

Dmitry Baryshkov July 26, 2022, 8:36 p.m. UTC | #1
On Tue, 26 Jul 2022 at 21:11, Iskren Chernev <iskren.chernev@gmail.com> wrote:
>
> Add support for pm6125 compatible string and add relevant supplies in QCom SPMI
> regulator documentation.
>
> Signed-off-by: Iskren Chernev <iskren.chernev@gmail.com>
> Signed-off-by: Adam Skladowski <a39.skl@gmail.com>

The order of sign-offs seems incorrect. The sender's signature should
be the last one.

> ---
>  .../regulator/qcom,spmi-regulator.yaml        | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
> index 8b7c4af4b551..d8f18b441484 100644
> --- a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
> +++ b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
> @@ -12,6 +12,7 @@ maintainers:
>  properties:
>    compatible:
>      enum:
> +      - qcom,pm6125-regulators
>        - qcom,pm660-regulators
>        - qcom,pm660l-regulators
>        - qcom,pm8004-regulators
> @@ -106,6 +107,24 @@ required:
>    - compatible
>
>  allOf:
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            enum:
> +              - qcom,pm6125-regulators
> +    then:
> +      properties:
> +        vdd_l1_l7_l17_l18-supply: true
> +        vdd_l2_l3_l4-supply: true
> +        vdd_l5_l15_l19_l20_l21_l22-supply: true
> +        vdd_l6_l8-supply: true
> +        vdd_l9_l11-supply: true
> +        vdd_l10_l13_l14-supply: true
> +        vdd_l12_l16-supply: true
> +        vdd_l23_l24-supply: true
> +      patternProperties:
> +        "^vdd_s[1-8]-supply$": true

Add an empty line please.

>    - if:
>        properties:
>          compatible:
> --
> 2.37.1
>
Iskren Chernev July 27, 2022, 7:49 a.m. UTC | #2
On 7/26/22 23:36, Dmitry Baryshkov wrote:
> On Tue, 26 Jul 2022 at 21:11, Iskren Chernev <iskren.chernev@gmail.com> wrote:
>>
>> Add support for pm6125 compatible string and add relevant supplies in QCom SPMI
>> regulator documentation.
>>
>> Signed-off-by: Iskren Chernev <iskren.chernev@gmail.com>
>> Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
> 
> The order of sign-offs seems incorrect. The sender's signature should
> be the last one.

Sure, will do!

>> ---
>>  .../regulator/qcom,spmi-regulator.yaml        | 19 +++++++++++++++++++
>>  1 file changed, 19 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
>> index 8b7c4af4b551..d8f18b441484 100644
>> --- a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
>> +++ b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
>> @@ -12,6 +12,7 @@ maintainers:
>>  properties:
>>    compatible:
>>      enum:
>> +      - qcom,pm6125-regulators
>>        - qcom,pm660-regulators
>>        - qcom,pm660l-regulators
>>        - qcom,pm8004-regulators
>> @@ -106,6 +107,24 @@ required:
>>    - compatible
>>
>>  allOf:
>> +  - if:
>> +      properties:
>> +        compatible:
>> +          contains:
>> +            enum:
>> +              - qcom,pm6125-regulators
>> +    then:
>> +      properties:
>> +        vdd_l1_l7_l17_l18-supply: true
>> +        vdd_l2_l3_l4-supply: true
>> +        vdd_l5_l15_l19_l20_l21_l22-supply: true
>> +        vdd_l6_l8-supply: true
>> +        vdd_l9_l11-supply: true
>> +        vdd_l10_l13_l14-supply: true
>> +        vdd_l12_l16-supply: true
>> +        vdd_l23_l24-supply: true
>> +      patternProperties:
>> +        "^vdd_s[1-8]-supply$": true
> 
> Add an empty line please.

All other if-then blocks don't have newlines, shall I add one between each as
well?

>>    - if:
>>        properties:
>>          compatible:
>> --
>> 2.37.1
>>
> 
>
Dmitry Baryshkov July 27, 2022, 8:34 a.m. UTC | #3
On Wed, 27 Jul 2022 at 10:49, Iskren Chernev <iskren.chernev@gmail.com> wrote:
>
>
>
> On 7/26/22 23:36, Dmitry Baryshkov wrote:
> > On Tue, 26 Jul 2022 at 21:11, Iskren Chernev <iskren.chernev@gmail.com> wrote:
> >>
> >> Add support for pm6125 compatible string and add relevant supplies in QCom SPMI
> >> regulator documentation.
> >>
> >> Signed-off-by: Iskren Chernev <iskren.chernev@gmail.com>
> >> Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
> >
> > The order of sign-offs seems incorrect. The sender's signature should
> > be the last one.
>
> Sure, will do!
>
> >> ---
> >>  .../regulator/qcom,spmi-regulator.yaml        | 19 +++++++++++++++++++
> >>  1 file changed, 19 insertions(+)
> >>
> >> diff --git a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
> >> index 8b7c4af4b551..d8f18b441484 100644
> >> --- a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
> >> +++ b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
> >> @@ -12,6 +12,7 @@ maintainers:
> >>  properties:
> >>    compatible:
> >>      enum:
> >> +      - qcom,pm6125-regulators
> >>        - qcom,pm660-regulators
> >>        - qcom,pm660l-regulators
> >>        - qcom,pm8004-regulators
> >> @@ -106,6 +107,24 @@ required:
> >>    - compatible
> >>
> >>  allOf:
> >> +  - if:
> >> +      properties:
> >> +        compatible:
> >> +          contains:
> >> +            enum:
> >> +              - qcom,pm6125-regulators
> >> +    then:
> >> +      properties:
> >> +        vdd_l1_l7_l17_l18-supply: true
> >> +        vdd_l2_l3_l4-supply: true
> >> +        vdd_l5_l15_l19_l20_l21_l22-supply: true
> >> +        vdd_l6_l8-supply: true
> >> +        vdd_l9_l11-supply: true
> >> +        vdd_l10_l13_l14-supply: true
> >> +        vdd_l12_l16-supply: true
> >> +        vdd_l23_l24-supply: true
> >> +      patternProperties:
> >> +        "^vdd_s[1-8]-supply$": true
> >
> > Add an empty line please.
>
> All other if-then blocks don't have newlines, shall I add one between each as
> well?

Yes, please, in a separate commit.
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
index 8b7c4af4b551..d8f18b441484 100644
--- a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
@@ -12,6 +12,7 @@  maintainers:
 properties:
   compatible:
     enum:
+      - qcom,pm6125-regulators
       - qcom,pm660-regulators
       - qcom,pm660l-regulators
       - qcom,pm8004-regulators
@@ -106,6 +107,24 @@  required:
   - compatible

 allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - qcom,pm6125-regulators
+    then:
+      properties:
+        vdd_l1_l7_l17_l18-supply: true
+        vdd_l2_l3_l4-supply: true
+        vdd_l5_l15_l19_l20_l21_l22-supply: true
+        vdd_l6_l8-supply: true
+        vdd_l9_l11-supply: true
+        vdd_l10_l13_l14-supply: true
+        vdd_l12_l16-supply: true
+        vdd_l23_l24-supply: true
+      patternProperties:
+        "^vdd_s[1-8]-supply$": true
   - if:
       properties:
         compatible: