[PATCH 07/11] pinctrl: use ngpios propety from DT
Linus Walleij
linus.walleij at linaro.org
Fri Oct 30 04:06:04 PDT 2015
On Thu, Oct 29, 2015 at 3:47 PM, Jonas Gorski <jogo at openwrt.org> wrote:
> Using ngpios to restrict the amount of actually available GPIOs from
> the possible amount of GPIOs seems a rather limited use, as rerouted
> gpios are seldom at the end of the GPIO space.
I need an example.
> So maybe it makes more sense to use ngpio as the number of
> possible gpios and then have an additional "reserved-gpios"
> bitmask / list of unavailable gpios?
This idea is good, but let's not make upfront design until we have a
piece of hardware that requires exactly this.
I sent a patch to the gpio.txt binding including a diplomatic statement
on this...
> Ideally those would be just consumed by a pinctrl instance, but I
> guess that these are sometimes controlled through pinstrapping,
> so there might be no driver to attach to them.
Uhmm.... Not quite following but all right... With gpio ranges the
GPIO to pins are mapped, and they can switch functions at runtime.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list