Thread (24 messages) 24 messages, 8 authors, 2021-09-28

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

From: Linus Walleij <hidden>
Date: 2021-09-28 21:51:06

On Tue, Sep 28, 2021 at 8:21 PM Joey Gouly [off-list ref] wrote:
quoted
quoted
Linus? Do we really need this?
I don't really see this as necessary, we don't need to check everything.
Not that it hurts either, so I would say maintainer preference?
I'm unsure if that means you (Linus), or Hector Martin as I put this
file under the "ARM/APPLE MACHINE SUPPORT" section in MAINTAINERS.
Your preference, I am sure that even if Hector certainly may want to
chime in, he expects the code author (you) to assume a bit of
ownership of this piece of code for the foreseeable future,
so do what you consider reasonable.
quoted
I think npins should be known from the compatible (we know that
this version of the SoC has so and so many pins) and the base
should always be 0? It's not like we have several pin controllers
of this type in the SoC is it?
All we need is the number of GPIOs from the DT now.
I got a bit confused with the 'base' here, locally I have removed the
'pin_base' variable and usage. I was confusing it with the `gpio_chip.base` field,
however that seems to be about the internal GPIO numbering.
The GPIO bindings have a standardized "ngpios" property that
indicates if you use less than the HW max number of GPIO
lines (roughly).

This is about pins rather, so something custom like
apple,npins = <...>;
could be used in that case.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help