Re: [PATCH v1 1/1] pinctrl: add pinctrl/GPIO driver for Apple SoCs

From
Andy Shevchenko <hidden>
Date
2021-09-27 09:01:33
Reply to
Sven Peter, 2021-09-27
+Cc: Hans (just for a bit offtopic comment below)

On Mon, Sep 27, 2021 at 8:46 AM Sven Peter [off-list ref] wrote:
On Sun, Sep 26, 2021, at 18:28, Andy Shevchenko wrote:
quoted
On Sun, Sep 26, 2021 at 5:36 PM Sven Peter [off-list ref] wrote:
quoted
On Sun, Sep 26, 2021, at 15:10, Linus Walleij wrote:
quoted
On Sun, Sep 26, 2021 at 2:56 PM Sven Peter [off-list ref] wrote:
quoted
On Sun, Sep 26, 2021, at 14:48, Linus Walleij wrote:
...
quoted
quoted
I'd prefer to have a single compatible and get the npins from some
property and I don't think that's necessarily over-generalizing.
AFAICT Apple has been using the exact same MMIO interface for years
and I'd expect them to continue using it in the future. The only thing
that seems to change is the number of pins available and their assignment.
If we just have a single compatible we can likely support the M1X/2 or
however Apple calls the next SoCs with just a simple DTB change without
touching any driver code.
Hmm... Dunno the details, but at least AOP GPIO is definitely ca[able
of waking a system from a deep sleep (that's what SUS == suspend do on
Intel). Haven't checked if you implemented ->irq_set_wake() callbacks,
though.
I don't think Joey implemented the set_wake callback because we didn't
even consider that the AOP GPIOs might be able to wake the system from
deep sleep. I'll see if I can figure out some details about that though.
I have checked Intel drivers and above mentioned do not implement
->irq_set_wake() callback. Hmm... Maybe Hans can share his thoughts
why it's so
(note, the Skylake and newest are all based on pinctrl-intel.c which
implements it. So does Merrifield) and if we also need to consider
adding it.

-- 
With Best Regards,
Andy Shevchenko
Thread (24 messages) 24 messages, 8 authors, last reply 2021-09-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help