Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1460545

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

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH 1/4] pinctrl: st: Use second parameter to gpio specifier
Date 2016-08-11 16:10 +0200
Message-ID <s4YQh-4R3-19@gated-at.bofh.it> (permalink)
References <s4G72-8uN-135@gated-at.bofh.it> <s4GgI-79-109@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

> From: Patrice Chotard <patrice.chotard@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@st.com>
> Signed-off-by: Patrice Chotard <patrice.chotard@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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 1/4] pinctrl: st: Use second parameter to gpio specifier Linus Walleij <linus.walleij@linaro.org> - 2016-08-11 16:10 +0200

csiph-web