[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240824120903.GI9644@vamoiridPC>
Date: Sat, 24 Aug 2024 14:09:03 +0200
From: Vasileios Amoiridis <vassilisamir@...il.com>
To: Biju Das <biju.das.jz@...renesas.com>
Cc: Vasileios Amoiridis <vassilisamir@...il.com>,
"jic23@...nel.org" <jic23@...nel.org>,
"lars@...afoo.de" <lars@...afoo.de>,
"robh@...nel.org" <robh@...nel.org>,
"krzk+dt@...nel.org" <krzk+dt@...nel.org>,
"conor+dt@...nel.org" <conor+dt@...nel.org>,
"andriy.shevchenko@...ux.intel.com" <andriy.shevchenko@...ux.intel.com>,
"ang.iglesiasg@...il.com" <ang.iglesiasg@...il.com>,
"linus.walleij@...aro.org" <linus.walleij@...aro.org>,
"javier.carrasco.cruz@...il.com" <javier.carrasco.cruz@...il.com>,
"semen.protsenko@...aro.org" <semen.protsenko@...aro.org>,
"579lpy@...il.com" <579lpy@...il.com>,
"ak@...klinger.de" <ak@...klinger.de>,
"linux-iio@...r.kernel.org" <linux-iio@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3 5/7] dt-bindings: iio: pressure: bmp085: Add
interrupts for BMP3xx and BMP5xx devices
On Sat, Aug 24, 2024 at 11:41:26AM +0000, Biju Das wrote:
> Hi Vasileios Amoiridis,
>
> > -----Original Message-----
> > From: Vasileios Amoiridis <vassilisamir@...il.com>
> > Sent: Saturday, August 24, 2024 12:31 PM
> > Subject: Re: [PATCH v3 5/7] dt-bindings: iio: pressure: bmp085: Add interrupts for BMP3xx and BMP5xx
> > devices
> >
> > On Fri, Aug 23, 2024 at 06:51:55PM +0000, Biju Das wrote:
> > > Hi Vasileios Amoiridis,
> > >
> > > Thanks for the patch.
> > >
> > > > -----Original Message-----
> > > > From: Vasileios Amoiridis <vassilisamir@...il.com>
> > > > Sent: Friday, August 23, 2024 7:17 PM
> > > > Subject: [PATCH v3 5/7] dt-bindings: iio: pressure: bmp085: Add
> > > > interrupts for BMP3xx and BMP5xx devices
> > > >
> > > > Add interrupt options for BMP3xx and BMP5xx devices as well.
> > > >
> > > > Signed-off-by: Vasileios Amoiridis <vassilisamir@...il.com>
> > > > ---
> > > > Documentation/devicetree/bindings/iio/pressure/bmp085.yaml | 7
> > > > ++++++-
> > > > 1 file changed, 6 insertions(+), 1 deletion(-)
> > > >
> > > > diff --git
> > > > a/Documentation/devicetree/bindings/iio/pressure/bmp085.yaml
> > > > b/Documentation/devicetree/bindings/iio/pressure/bmp085.yaml
> > > > index 6fda887ee9d4..eb1e1ab3dd18 100644
> > > > --- a/Documentation/devicetree/bindings/iio/pressure/bmp085.yaml
> > > > +++ b/Documentation/devicetree/bindings/iio/pressure/bmp085.yaml
> > > > @@ -48,9 +48,14 @@ properties:
> > > >
> > > > interrupts:
> > > > description:
> > > > - interrupt mapping for IRQ (BMP085 only)
> > > > + interrupt mapping for IRQ. Supported in BMP085, BMP3xx,
> > > > + BMP5xx
> > >
> > > Since you have updated the description. It is better to enforce the
> > > same in conditional schema?? So that dt binding check throws error if
> > > interrupt used in bmp{180,280 and bme280}.
> > >
> > > Cheers,
> > > Biju
> > >
> >
> > Hi Biju,
> >
> > Thanks for the feedback! It is true that it would be good to throw an error in case the IRQ is used in
> > a not supported sensor. If you could point me to an example of another sensor implementing it, it
> > would be even more helpful, but I am sure I will find something :)
>
> As Krzysztof Kozlowski mentioned it depends upon driver(s/w) or device(H/W).
>
> if it is driver(s/w), then you don't need conditional check as bindings describes
> hardware.
>
> There are plenty of examples for allOf:if:then:
>
> Cheers,
> Biju
>
Hi Biju,
Indeed, I checked Krzysztof's mail later. I will implement it like this
since it is a device(H/W) issue.
Cheers,
Vasilis
> >
> > Cheers,
> > Vasilis
> >
> > > > maxItems: 1
> > > >
> > > > + drive-open-drain:
> > > > + description:
> > > > + set if the interrupt pin should be configured as open drain.
> > > > + If not set, defaults to push-pull configuration.
> > > > +
> > > > required:
> > > > - compatible
> > > > - vddd-supply
> > > > --
> > > > 2.25.1
> > >
Powered by blists - more mailing lists