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)
committerMark Brown <broonie@linaro.org>
Fri, 4 Apr 2014 15:23:33 +0000 (16:23 +0100)
commit9ce1c71276a05cd3849288b2df0a23baf49eec10
treee43b6e5802d929b5d8f5cc5300132bc9dc90c3cf
parentaaba68a91d559c7aa1d52037031878025b8cd48e
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>
(cherry picked from commit e81c8f18afc4fdd6e34d8c83814b8b5134dbb30f)
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/pinctrl/pinconf-generic.c
include/linux/pinctrl/pinconf-generic.h