2024-02-16 10:36:34

by Marco Felsch

[permalink] [raw]
Subject: [RESEND PATCH 1/2] dt-bindings: iio: ti,tmp117: add vcc supply binding

From: Thomas Haemmerle <[email protected]>

Add the binding to specify the vcc supply. We can't make it required
since this would break the backward compatibility.

Signed-off-by: Thomas Haemmerle <[email protected]>
Signed-off-by: Marco Felsch <[email protected]>
---
Resend since I forgot to add the DT maintainers

.../devicetree/bindings/iio/temperature/ti,tmp117.yaml | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
index 8c6d7735e875..cf7799c9734f 100644
--- a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
+++ b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
@@ -24,6 +24,9 @@ properties:
reg:
maxItems: 1

+ vcc-supply:
+ description: provide VCC power to the sensor.
+
required:
- compatible
- reg
@@ -39,5 +42,6 @@ examples:
tmp117@48 {
compatible = "ti,tmp117";
reg = <0x48>;
+ vcc-supply = <&pmic_reg_3v3>;
};
};
--
2.39.2



2024-02-16 11:24:15

by Marco Felsch

[permalink] [raw]
Subject: Re: [RESEND PATCH 1/2] dt-bindings: iio: ti,tmp117: add vcc supply binding

On 24-02-16, Jonathan Cameron wrote:
> On Fri, 16 Feb 2024 11:28:19 +0100
> Marco Felsch <[email protected]> wrote:
>
> > From: Thomas Haemmerle <[email protected]>
> >
> > Add the binding to specify the vcc supply. We can't make it required
> > since this would break the backward compatibility.
>
> Given convention for supplies like this is to make them required in
> the dt-binding to reflect that providing power is not optional (unlikely
> some other supplies that might not be wired up) and not worry about the
> fact that we happily provide dummy supplies for them if they aren't in a
> particular dts, it should be fine to make it required here.

Will this fact apply to all dt-bindings? I'm asking because, there are
many bindings out there without having the -supply in place.

Regards,
Marco

>
> Jonathan
>
> >
> > Signed-off-by: Thomas Haemmerle <[email protected]>
> > Signed-off-by: Marco Felsch <[email protected]>
> > ---
> > Resend since I forgot to add the DT maintainers
> >
> > .../devicetree/bindings/iio/temperature/ti,tmp117.yaml | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
> > index 8c6d7735e875..cf7799c9734f 100644
> > --- a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
> > +++ b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
> > @@ -24,6 +24,9 @@ properties:
> > reg:
> > maxItems: 1
> >
> > + vcc-supply:
> > + description: provide VCC power to the sensor.
> > +
> > required:
> > - compatible
> > - reg
> > @@ -39,5 +42,6 @@ examples:
> > tmp117@48 {
> > compatible = "ti,tmp117";
> > reg = <0x48>;
> > + vcc-supply = <&pmic_reg_3v3>;
> > };
> > };
>
>

2024-02-16 11:24:20

by Jonathan Cameron

[permalink] [raw]
Subject: Re: [RESEND PATCH 1/2] dt-bindings: iio: ti,tmp117: add vcc supply binding

On Fri, 16 Feb 2024 11:28:19 +0100
Marco Felsch <[email protected]> wrote:

> From: Thomas Haemmerle <[email protected]>
>
> Add the binding to specify the vcc supply. We can't make it required
> since this would break the backward compatibility.

Given convention for supplies like this is to make them required in
the dt-binding to reflect that providing power is not optional (unlikely
some other supplies that might not be wired up) and not worry about the
fact that we happily provide dummy supplies for them if they aren't in a
particular dts, it should be fine to make it required here.

Jonathan

>
> Signed-off-by: Thomas Haemmerle <[email protected]>
> Signed-off-by: Marco Felsch <[email protected]>
> ---
> Resend since I forgot to add the DT maintainers
>
> .../devicetree/bindings/iio/temperature/ti,tmp117.yaml | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
> index 8c6d7735e875..cf7799c9734f 100644
> --- a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
> +++ b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
> @@ -24,6 +24,9 @@ properties:
> reg:
> maxItems: 1
>
> + vcc-supply:
> + description: provide VCC power to the sensor.
> +
> required:
> - compatible
> - reg
> @@ -39,5 +42,6 @@ examples:
> tmp117@48 {
> compatible = "ti,tmp117";
> reg = <0x48>;
> + vcc-supply = <&pmic_reg_3v3>;
> };
> };


2024-02-16 15:51:10

by Jonathan Cameron

[permalink] [raw]
Subject: Re: [RESEND PATCH 1/2] dt-bindings: iio: ti,tmp117: add vcc supply binding

On Fri, 16 Feb 2024 12:23:48 +0100
Marco Felsch <[email protected]> wrote:

> On 24-02-16, Jonathan Cameron wrote:
> > On Fri, 16 Feb 2024 11:28:19 +0100
> > Marco Felsch <[email protected]> wrote:
> >
> > > From: Thomas Haemmerle <[email protected]>
> > >
> > > Add the binding to specify the vcc supply. We can't make it required
> > > since this would break the backward compatibility.
> >
> > Given convention for supplies like this is to make them required in
> > the dt-binding to reflect that providing power is not optional (unlikely
> > some other supplies that might not be wired up) and not worry about the
> > fact that we happily provide dummy supplies for them if they aren't in a
> > particular dts, it should be fine to make it required here.
>
> Will this fact apply to all dt-bindings? I'm asking because, there are
> many bindings out there without having the -supply in place.

Yes in theory - in practice it's noise to do it unless we have a reason
to be touching the dt-binding anyway. I don't plan to fix them up on
mass.

Jonathan

>
> Regards,
> Marco
>
> >
> > Jonathan
> >
> > >
> > > Signed-off-by: Thomas Haemmerle <[email protected]>
> > > Signed-off-by: Marco Felsch <[email protected]>
> > > ---
> > > Resend since I forgot to add the DT maintainers
> > >
> > > .../devicetree/bindings/iio/temperature/ti,tmp117.yaml | 4 ++++
> > > 1 file changed, 4 insertions(+)
> > >
> > > diff --git a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
> > > index 8c6d7735e875..cf7799c9734f 100644
> > > --- a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
> > > +++ b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
> > > @@ -24,6 +24,9 @@ properties:
> > > reg:
> > > maxItems: 1
> > >
> > > + vcc-supply:
> > > + description: provide VCC power to the sensor.
> > > +
> > > required:
> > > - compatible
> > > - reg
> > > @@ -39,5 +42,6 @@ examples:
> > > tmp117@48 {
> > > compatible = "ti,tmp117";
> > > reg = <0x48>;
> > > + vcc-supply = <&pmic_reg_3v3>;
> > > };
> > > };
> >
> >


2024-02-16 19:42:44

by Conor Dooley

[permalink] [raw]
Subject: Re: [RESEND PATCH 1/2] dt-bindings: iio: ti,tmp117: add vcc supply binding

On Fri, Feb 16, 2024 at 11:21:20AM +0000, Jonathan Cameron wrote:
> On Fri, 16 Feb 2024 11:28:19 +0100
> Marco Felsch <[email protected]> wrote:
>
> > From: Thomas Haemmerle <[email protected]>
> >
> > Add the binding to specify the vcc supply. We can't make it required
> > since this would break the backward compatibility.
>
> Given convention for supplies like this is to make them required in
> the dt-binding to reflect that providing power is not optional (unlikely
> some other supplies that might not be wired up) and not worry about the
> fact that we happily provide dummy supplies for them if they aren't in a
> particular dts, it should be fine to make it required here.

With the suggested change,
Reviewed-by: Conor Dooley <[email protected]>

Cheers,
Conor.


Attachments:
(No filename) (832.00 B)
signature.asc (235.00 B)
Download all attachments