[PATCH 1/4] pinctrl: st: Use second parameter to gpio specifier

Linus Walleij linus.walleij at linaro.org
Thu Aug 11 07:07:52 PDT 2016


On Wed, Aug 10, 2016 at 3:12 PM,  <patrice.chotard at st.com> wrote:

> From: Patrice Chotard <patrice.chotard at st.com>
>
> This patch allows to use the second parameter of gpio
> specifier, which is used to specify whether the gpio is
> active high or low.
>
> Simply remove specific of_xlate callback() and of_gpio_n_cells
> and use default one set by of_gpiochip_add() which allows
> to use second parameter gpio specifier.
>
> Signed-off-by: Maxime Coquelin <maxime.coquelin at st.com>
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>

Patch applied.

It seems this is one of those drivers that could also implement
.set_single_ended() and support native open drain.

Either it can do so by poking that pin config directly from the
gpiochip callback or by figuring out how to interface with the
pin config backend and do it genercially... I've been thinking a
bit about that.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list