[PATCH 1/2] pinctrl: Add support for Meson8b

Carlo Caione carlo at caione.org
Sun Mar 8 04:07:02 PDT 2015

On Sun, Mar 8, 2015 at 11:43 AM, Carlo Caione <carlo at caione.org> wrote:
> On Sun, Mar 8, 2015 at 9:46 AM, Beniamino Galvani <b.galvani at gmail.com> wrote:
>> I'm not very familiar with the inner mechanisms of the pinctrl
>> subsystem, but I guess that holes in the numbering of pins wouldn't be
>> a problem and thus we can skip the numbers associated to non-existent
>> pins (i.e. GPIOX_11 -> 11, GPIOX_16 -> 16). Pinctrl experts please
>> correct me if I'm wrong :)
> Linus, any thought on that?
> The only problem I see is that since the BANK macro works with 'first'
> and 'last' without considering holes, we will be mapping GPIOs that do
> not actually exist in our SoC.

On a second thought this is not correct since 'first' and 'last' are
only used for boundary checking and to compute the bit offset inside
the mux register.

Carlo Caione

More information about the linux-arm-kernel mailing list