GPIO polarity in bindings for Freescale MXS

Shawn Guo shawn.guo at linaro.org
Fri Mar 15 16:24:11 EST 2013


On Thu, Mar 14, 2013 at 01:35:47PM +0100, Hector Palacios wrote:
> On 03/14/2013 11:02 AM, Hector Palacios wrote:
> >Hello,
> >
> >Maybe I'm missing something but the MXS processors (at least i.MX23 and i.MX28) cannot
> >set the polarity of the GPIOs, so shouldn't the #gpio-cells be 1?
> >
> >(From Documentation/devicetree/bindings/gpio/fsl-imx-gpio.txt):
> 
> Sorry, I meant: from Documentation/devicetree/bindings/gpio/gpio-mxs.txt
> 
> >
> >- #gpio-cells : Should be two.  The first cell is the pin number and
> >   the second cell is used to specify the gpio polarity:
> >       0 = active high
> >       1 = active low

The second cell is used by client devices to specify their gpio
connection polarity.  Check of_get_named_gpio_flags() in
drivers/mmc/host/mxs-mmc.c for example to see how it's used.

Shawn



More information about the devicetree-discuss mailing list