]> git.karo-electronics.de Git - karo-tx-linux.git/commit
gpiolib: provide provision to register pin ranges
authorShiraz Hashim <shiraz.hashim@st.com>
Sat, 27 Oct 2012 09:51:36 +0000 (15:21 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 6 Nov 2012 08:04:10 +0000 (09:04 +0100)
commit69e1601bca88809dc118abd1becb02c15a02ec71
tree8f66e460140245c08ad9bcdf813a0e1cc10f8c71
parent2476c80cb7b2f1cf8f31ca83e712e0bace491d1b
gpiolib: provide provision to register pin ranges

pinctrl subsystem needs gpio chip base to prepare set of gpio
pin ranges, which a given pinctrl driver can handle. This is
important to handle pinctrl gpio request calls in order to
program a given pin properly for gpio operation.

As gpio base is allocated dynamically during gpiochip
registration, presently there exists no clean way to pass this
information to the pinctrl subsystem.

After few discussions from [1], it was concluded that may be
gpio controller reporting the pin range it supports, is a
better way than pinctrl subsystem directly registering it.

[1] http://comments.gmane.org/gmane.linux.ports.arm.kernel/184816

Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
[Edited documentation a bit]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/gpio/gpio.txt
Documentation/gpio.txt
Documentation/pinctrl.txt
drivers/gpio/gpiolib-of.c
drivers/gpio/gpiolib.c
drivers/pinctrl/core.c
drivers/pinctrl/devicetree.c
include/asm-generic/gpio.h
include/linux/gpio.h
include/linux/pinctrl/pinctrl.h