]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: winbond: Add driver
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Fri, 5 Jan 2018 23:46:08 +0000 (00:46 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 9 Jan 2018 13:51:00 +0000 (14:51 +0100)
commit968d9ebc61fdf7fefc5cbb1fe4565cd7dc49f5df
tree83138a4868c2cdc7c86fd53aebcbdbc5581dee49
parent6a004d388f5dcb29bde72cc5f3ea3c9207df55be
gpio: winbond: Add driver

This commit adds GPIO driver for Winbond Super I/Os.

Currently, only W83627UHG model (also known as Nuvoton NCT6627UD)
is supported but in the future a support for other Winbond models,
too, can be added to the driver.

A module parameter "gpios" sets a bitmask of GPIO ports to enable
(bit 0 is GPIO1, bit 1 is GPIO2, etc.).

One should be careful which ports one tinkers with since some
might be managed by the firmware (for functions like powering on and
off, sleeping, BIOS recovery, etc.) and some of GPIO port pins are
physically shared with other devices included in the Super I/O chip.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpio-winbond.c [new file with mode: 0644]