pinctrl: Add sleep related state to indicate sleep related configs
authorBaolin Wang <baolin.wang@spreadtrum.com>
Thu, 17 Aug 2017 06:50:36 +0000 (14:50 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 31 Aug 2017 07:15:21 +0000 (09:15 +0200)
commit6606bc9dee63ad8cda2cc310d2ad5992673a785a
treeee19f111f9e01e5699cb8681f8f117d81c4e07a2
parentca8febe8f91510022572c2238c49c69dac35adae
pinctrl: Add sleep related state to indicate sleep related configs

In some scenarios, we should set some pins as input/output/pullup/pulldown
when the specified system goes into deep sleep mode, then when the system
goes into deep sleep mode, these pins will be set automatically by hardware.

That means some pins are not controlled by any specific driver in the OS, but
need to be controlled when entering sleep mode. Thus we introduce one sleep
state config into pinconf-generic for users to configure.

Signed-off-by: Baolin Wang <baolin.wang@spreadtrum.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
drivers/pinctrl/pinconf-generic.c
include/linux/pinctrl/pinconf-generic.h