pinctrl: pinconf-generic: add generic APIs for mapping pinctrl node
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 6 Aug 2013 13:12:34 +0000 (18:42 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 14 Aug 2013 19:00:41 +0000 (21:00 +0200)
commite81c8f18afc4fdd6e34d8c83814b8b5134dbb30f
tree59435df0785247baed2bfe63bbd10a32c3769e60
parent1eb207a9ecaafb980704d8bc055a9a0269f62f8e
pinctrl: pinconf-generic: add generic APIs for mapping pinctrl node

Add generic APIs to map the DT node and its sub node in pinconf generic
driver. These APIs can be used from driver to parse the DT node who
uses the pinconf generic APIs for defining their nodes.

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:
- Rebased the pinctrl binding doc on top of Stephen's cleanup.
- Rename properties "pinctrl-pins" and "pinctrl-function" to
  "pins" and "function".

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinconf-generic.c
include/linux/pinctrl/pinconf-generic.h