From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: "Tilki, Ibrahim" <Ibrahim.Tilki@analog.com>
Cc: "a.zummo@towertech.it" <a.zummo@towertech.it>,
"jdelvare@suse.com" <jdelvare@suse.com>,
"linux@roeck-us.net" <linux@roeck-us.net>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"krzysztof.kozlowski+dt@linaro.org"
<krzysztof.kozlowski+dt@linaro.org>,
"linux-rtc@vger.kernel.org" <linux-rtc@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-hwmon@vger.kernel.org" <linux-hwmon@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"Arslanbenzer, Zeynep" <Zeynep.Arslanbenzer@analog.com>
Subject: Re: [PATCH 2/2] dt-bindings: rtc: add bindings for max313xx RTCs
Date: Fri, 21 Oct 2022 14:29:48 +0200 [thread overview]
Message-ID: <Y1KQvPAwh7NC0wbA@mail.local> (raw)
In-Reply-To: <DM8PR03MB62477670C186E6CC5308B600962D9@DM8PR03MB6247.namprd03.prod.outlook.com>
On 21/10/2022 11:44:12+0000, Tilki, Ibrahim wrote:
> > > + interrupt-names:
> > > + description: |
> > > + Name of the interrupt pin of the RTC used for IRQ. Not required for
> > > + RTCs that only have single interrupt pin available. Some of the RTCs
> > > + share interrupt pins with clock input/output pins.
> > > + minItems: 1
> > > + items:
> > > + - enum: [INTA, INTB]
> > > + - enum: [INTA, INTB]
> > > +
> >
> > I don't think this is right, what this is doing is essentially pinmuxing
> > interrupts versus clocks. What happens if you want INTB but this goes
> > directly to a PMIC instead of the SoC?
> > It is not something you can express with your current bindings.
> >
>
> Why would a user want INTB when it is not connected to SoC?
> User can specify none, either one or both of the interrupt pins.
> I don't see what the problem here is.
>
the interrupt pin may be connected to a PMIC that is able to start or
wake up the platform. In that case, the user would not have any
interrupt-names and your driver will fail to mux the interrupt on INTB.
Please fix.
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2022-10-21 12:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-19 13:39 [PATCH 1/2] drivers: rtc: add max313xx series rtc driver Ibrahim Tilki
2022-10-19 13:39 ` [PATCH 2/2] dt-bindings: rtc: add bindings for max313xx RTCs Ibrahim Tilki
2022-10-19 14:34 ` Krzysztof Kozlowski
2022-10-19 15:34 ` Guenter Roeck
2022-10-20 14:25 ` Tilki, Ibrahim
2022-10-20 15:33 ` Krzysztof Kozlowski
2022-10-20 21:13 ` Alexandre Belloni
2022-10-21 11:44 ` Tilki, Ibrahim
2022-10-21 12:29 ` Alexandre Belloni [this message]
2022-10-21 13:05 ` Tilki, Ibrahim
2022-10-21 13:40 ` Krzysztof Kozlowski
2022-10-21 13:56 ` Tilki, Ibrahim
2022-10-19 15:29 ` [PATCH 1/2] drivers: rtc: add max313xx series rtc driver Guenter Roeck
2022-10-20 14:47 ` Tilki, Ibrahim
2022-10-20 18:57 ` Guenter Roeck
2022-10-20 21:01 ` Alexandre Belloni
2022-10-21 8:34 ` kernel test robot
2022-10-22 3:15 ` kernel test robot
2022-10-22 6:07 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y1KQvPAwh7NC0wbA@mail.local \
--to=alexandre.belloni@bootlin.com \
--cc=Ibrahim.Tilki@analog.com \
--cc=Zeynep.Arslanbenzer@analog.com \
--cc=a.zummo@towertech.it \
--cc=devicetree@vger.kernel.org \
--cc=jdelvare@suse.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).