]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48c02243c0ec793a75632a6d4498919925d2ff6b
tree7526e7e9f2ddfdc5e79b3a7cd0ec952db8f44d12
parent02ddf897b4109417583e7f9473855e77312cf9a2
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