[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220210175510.c99eb77c6367d4df5d8bb9a2@hugovil.com>
Date: Thu, 10 Feb 2022 17:55:10 -0500
From: Hugo Villeneuve <hugo@...ovil.com>
To: Alexandre Belloni <alexandre.belloni@...tlin.com>
Cc: Rob Herring <robh@...nel.org>,
Alessandro Zummo <a.zummo@...ertech.it>,
Hugo Villeneuve <hvilleneuve@...onoff.com>,
linux-rtc@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 10/10] dt-bindings: rtc: pcf2127: add PCF2131 INT_A and
INT_B support
On Thu, 10 Feb 2022 23:32:32 +0100
Alexandre Belloni <alexandre.belloni@...tlin.com> wrote:
> On 10/02/2022 17:12:34-0500, Hugo Villeneuve wrote:
> > On Tue, 8 Feb 2022 21:20:28 -0600
> > Rob Herring <robh@...nel.org> wrote:
> >
> > > On Tue, Jan 25, 2022 at 03:00:09PM -0500, Hugo Villeneuve wrote:
> > > > From: Hugo Villeneuve <hvilleneuve@...onoff.com>
> > > >
> > > > The PCF2131 has two output interrupt pins, named INT_A and INT_B.
> > > >
> > > > Add properties to identify onto which pin we want the alarm interrupt
> > > > to be routed. It can be either one, or both.
> > > >
> > > > These properties are automatically set to false for variants other
> > > > than PCF2131 (ex: PCF2127).
> > > >
> > > > Signed-off-by: Hugo Villeneuve <hvilleneuve@...onoff.com>
> > > > ---
> > > > .../devicetree/bindings/rtc/nxp,pcf2127.yaml | 23 +++++++++++++++++++
> > > > 1 file changed, 23 insertions(+)
> > > >
> > > > diff --git a/Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml b/Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml
> > > > index 57eb0a58afa3..83656dd2f97f 100644
> > > > --- a/Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml
> > > > +++ b/Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml
> > > > @@ -24,6 +24,16 @@ properties:
> > > > interrupts:
> > > > maxItems: 1
> > > >
> > > > + alarm-output-a:
> > >
> > > nxp,alarm-output-a
> >
> > Ok, this will be fixed for V2.
> >
>
> Actually, this property has to be made more generic and thought out.
> There are multiple RTCs that have multiple interrupt pins where one of
> the pin can be used for different interrupt or clock output.
>
> With your binding, there is no way to separate which interrupt is going
> to which pin and so there is no way to get the alarm and BLF or the
> watchdog on different pins and we certainly don't want to have a
> property per interrupt type.
Hi,
can you please suggest how you would prefer it to be done?
> Also, the documentation is missing the fact that the driver makes having
> one of the property mandatory.
I will add it.
Thank you, Hugo.
--
Hugo Villeneuve <hugo@...ovil.com>
Powered by blists - more mailing lists