pinctrl: palmas: add pincontrol driver
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 6 Aug 2013 13:12:35 +0000 (18:42 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 14 Aug 2013 19:00:42 +0000 (21:00 +0200)
commit0a8d3e2412841c6b1dab1006fd5f7ab5b689db21
tree85073dffb6f90054e59446578315ec3a67ffc5e8
parente81c8f18afc4fdd6e34d8c83814b8b5134dbb30f
pinctrl: palmas: add pincontrol driver

TI Palmas series Power Management IC have multiple pins which can be
configured for different functionality. This pins can be configured
for different function. Also their properties like pull up/down,
open drain enable/disable are configurable.

Add support for pincontrol driver Palmas series device like TPS65913,
TPS80036. The driver supports to be register from DT only.

Changes from V1:
- Add generic property for pins and functions in pinconf-generic.
- Add APIs to map the DT and subnode.
- Move common utils APIs to the pinctrl-utils from this file.
- Update the binding document accordingly.
Changes from V2:
- Add ack by Lee.
- Correct the binding docs.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/pinctrl-palmas.txt [new file with mode: 0644]
drivers/pinctrl/Kconfig
drivers/pinctrl/Makefile
drivers/pinctrl/pinctrl-palmas.c [new file with mode: 0644]
include/linux/mfd/palmas.h