Re: [PATCH] gpio: add support for ITE IT87xx Super I/O GPIO.

From: Diego Elio Pettenò
Date: Mon Mar 19 2012 - 11:59:09 EST


Il giorno dom, 18/03/2012 alle 17.54 -0700, Guenter Roeck ha scritto:
> On IT8721F (which is supposedly mostly compatible to IT8728F), only four of the 87 GPIO pins
> are GPIO-only (unless I miscounted ;). All others have at least two different functions.

On the IT8728F the 64 GPIO (11 to 87, they use an X-Y notation) are
divided in eight banks, and only the latest three banks are GPIO-only,
the others all have alternate functions.

> Not sure if it is a good idea to re-configure any of those pins. I would assume
> there is a reason if a given set of pins is configured as UART, for example.

That's true, on the other hand there are a few pins that should be
reused without other issues: for instance the LED ones. That's what I
was thinking of with an MFD SuperIO driver.

At any rate I'll look at the pinctrl subsystem since the gpio_request
function in the gpio driver is indeed changing the mapping like pinmux
should. And there I thought it would have been an easy driver to write
^^;;

--
Diego Elio Pettenà â Flameeyes
http://blog.flameeyes.eu/


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/