pinctrl: axp209: add support for AXP813 GPIOs
authorQuentin Schulz <quentin.schulz@free-electrons.com>
Tue, 5 Dec 2017 14:46:46 +0000 (15:46 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 7 Dec 2017 09:08:12 +0000 (10:08 +0100)
commite1190083b89bd0d53c83b647ff313d9f004c6772
tree7526e7e9f2ddfdc5e79b3a7cd0ec952db8f44d12
parenta0a4b4c2420e0af6171a2be1965bdd983d35953c
pinctrl: axp209: add support for AXP813 GPIOs

The AXP813 has only two GPIOs. GPIO0 can either be used as a GPIO, an
LDO regulator or an ADC. GPIO1 can be used either as a GPIO or an LDO
regulator.

Moreover, the status bit of the GPIOs when in input mode is not offset
by 4 unlike the AXP209.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/gpio/gpio-axp209.txt
drivers/pinctrl/pinctrl-axp209.c