* [PATCH] dt-bindings: hwmon: tda38640: Add interrupt & regulator properties
@ 2024-01-26 11:29 Naresh Solanki
2024-01-26 16:24 ` Conor Dooley
0 siblings, 1 reply; 3+ messages in thread
From: Naresh Solanki @ 2024-01-26 11:29 UTC (permalink / raw)
To: Jean Delvare, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Naresh Solanki
Cc: mazziesaccount, linux-hwmon, devicetree, linux-kernel
Add properties for interrupt & regulator.
Also update example.
TEST=Run below command & make sure there is no error.
make DT_CHECKER_FLAGS=-m dt_binding_check
Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
---
.../hwmon/pmbus/infineon,tda38640.yaml | 20 +++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml
index ded1c115764b..2df625a8b514 100644
--- a/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml
+++ b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml
@@ -30,6 +30,15 @@ properties:
unconnected(has internal pull-down).
type: boolean
+ interrupts:
+ maxItems: 1
+
+ regulators:
+ $ref: /schemas/regulator/regulator.yaml#
+ type: object
+ description: |
+ list of regulators provided by this controller.
+
required:
- compatible
- reg
@@ -38,6 +47,7 @@ additionalProperties: false
examples:
- |
+ #include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
@@ -45,5 +55,15 @@ examples:
tda38640@40 {
compatible = "infineon,tda38640";
reg = <0x40>;
+
+ //interrupt-parent = <&smb_pex_cpu0_event>;
+ interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
+ regulators {
+ pvnn_main_cpu0: vout0 {
+ regulator-compatible = "vout0";
+ regulator-name = "pvnn_main_cpu0";
+ regulator-enable-ramp-delay = <200>;
+ };
+ };
};
};
base-commit: ecb1b8288dc7ccbdcb3b9df005fa1c0e0c0388a7
--
2.42.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] dt-bindings: hwmon: tda38640: Add interrupt & regulator properties
2024-01-26 11:29 [PATCH] dt-bindings: hwmon: tda38640: Add interrupt & regulator properties Naresh Solanki
@ 2024-01-26 16:24 ` Conor Dooley
2024-02-14 9:20 ` Naresh Solanki
0 siblings, 1 reply; 3+ messages in thread
From: Conor Dooley @ 2024-01-26 16:24 UTC (permalink / raw)
To: Naresh Solanki
Cc: Jean Delvare, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, mazziesaccount, linux-hwmon, devicetree,
linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2618 bytes --]
On Fri, Jan 26, 2024 at 04:59:44PM +0530, Naresh Solanki wrote:
> Add properties for interrupt & regulator.
> Also update example.
Feeling like a broken record, given I am leaving the same comments on
multiple patches. The commit message needs to explain why you're doing
something. I can read the diff and see what you did!
>
> TEST=Run below command & make sure there is no error.
> make DT_CHECKER_FLAGS=-m dt_binding_check
Same comment here as elsewhere.
>
> Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
> ---
> .../hwmon/pmbus/infineon,tda38640.yaml | 20 +++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml
> index ded1c115764b..2df625a8b514 100644
> --- a/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml
> +++ b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml
> @@ -30,6 +30,15 @@ properties:
> unconnected(has internal pull-down).
> type: boolean
>
> + interrupts:
> + maxItems: 1
> +
> + regulators:
> + $ref: /schemas/regulator/regulator.yaml#
> + type: object
> + description: |
The | here is not needed, there's no formatting to preserve.
From a quick check, most bindings with regulator subnodes restrict the
subnode names with patternproperties. Is there a reason you have not?
> + list of regulators provided by this controller.
> +
> required:
> - compatible
> - reg
> @@ -38,6 +47,7 @@ additionalProperties: false
>
> examples:
> - |
> + #include <dt-bindings/interrupt-controller/irq.h>
> i2c {
> #address-cells = <1>;
> #size-cells = <0>;
> @@ -45,5 +55,15 @@ examples:
> tda38640@40 {
> compatible = "infineon,tda38640";
> reg = <0x40>;
> +
> + //interrupt-parent = <&smb_pex_cpu0_event>;
Why is this commented out? Please either restore it or remove it (with
justification).
Thanks
Conor.
> + interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
Blank line here please.
> + regulators {
> + pvnn_main_cpu0: vout0 {
> + regulator-compatible = "vout0";
> + regulator-name = "pvnn_main_cpu0";
> + regulator-enable-ramp-delay = <200>;
> + };
> + };
> };
> };
>
> base-commit: ecb1b8288dc7ccbdcb3b9df005fa1c0e0c0388a7
> --
> 2.42.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] dt-bindings: hwmon: tda38640: Add interrupt & regulator properties
2024-01-26 16:24 ` Conor Dooley
@ 2024-02-14 9:20 ` Naresh Solanki
0 siblings, 0 replies; 3+ messages in thread
From: Naresh Solanki @ 2024-02-14 9:20 UTC (permalink / raw)
To: Conor Dooley
Cc: Jean Delvare, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, mazziesaccount, linux-hwmon, devicetree,
linux-kernel
Hi,
On Fri, 26 Jan 2024 at 21:54, Conor Dooley <conor@kernel.org> wrote:
>
> On Fri, Jan 26, 2024 at 04:59:44PM +0530, Naresh Solanki wrote:
> > Add properties for interrupt & regulator.
> > Also update example.
>
> Feeling like a broken record, given I am leaving the same comments on
> multiple patches. The commit message needs to explain why you're doing
> something. I can read the diff and see what you did!
>
> >
> > TEST=Run below command & make sure there is no error.
> > make DT_CHECKER_FLAGS=-m dt_binding_check
>
> Same comment here as elsewhere.
Ack
>
> >
> > Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
> > ---
> > .../hwmon/pmbus/infineon,tda38640.yaml | 20 +++++++++++++++++++
> > 1 file changed, 20 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml
> > index ded1c115764b..2df625a8b514 100644
> > --- a/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml
> > +++ b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml
> > @@ -30,6 +30,15 @@ properties:
> > unconnected(has internal pull-down).
> > type: boolean
> >
> > + interrupts:
> > + maxItems: 1
> > +
> > + regulators:
> > + $ref: /schemas/regulator/regulator.yaml#
> > + type: object
> > + description: |
>
> The | here is not needed, there's no formatting to preserve.
Ack
>
> From a quick check, most bindings with regulator subnodes restrict the
> subnode names with patternproperties. Is there a reason you have not?
I have corrected it now & will push in next revision.
regulators is expected to have subnode vout0. like below:
regulators:
type: object
description:
list of regulators provided by this controller.
properties:
vout0:
$ref: /schemas/regulator/regulator.yaml#
type: object
unevaluatedProperties: false
additionalProperties: false
>
> > + list of regulators provided by this controller.
> > +
> > required:
> > - compatible
> > - reg
> > @@ -38,6 +47,7 @@ additionalProperties: false
> >
> > examples:
> > - |
> > + #include <dt-bindings/interrupt-controller/irq.h>
> > i2c {
> > #address-cells = <1>;
> > #size-cells = <0>;
> > @@ -45,5 +55,15 @@ examples:
> > tda38640@40 {
> > compatible = "infineon,tda38640";
> > reg = <0x40>;
> > +
> > + //interrupt-parent = <&smb_pex_cpu0_event>;
>
> Why is this commented out? Please either restore it or remove it (with
> justification).
Ack. will restore it.
>
> Thanks
>
> Conor.
>
> > + interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
>
> Blank line here please.
Ack
Regards,
Naresh
>
> > + regulators {
> > + pvnn_main_cpu0: vout0 {
> > + regulator-compatible = "vout0";
> > + regulator-name = "pvnn_main_cpu0";
> > + regulator-enable-ramp-delay = <200>;
> > + };
> > + };
> > };
> > };
> >
> > base-commit: ecb1b8288dc7ccbdcb3b9df005fa1c0e0c0388a7
> > --
> > 2.42.0
> >
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-02-14 9:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-26 11:29 [PATCH] dt-bindings: hwmon: tda38640: Add interrupt & regulator properties Naresh Solanki
2024-01-26 16:24 ` Conor Dooley
2024-02-14 9:20 ` Naresh Solanki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).