aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2016-07-20 10:11:36 -0400
committerLinus Walleij <linus.walleij@linaro.org>2016-08-11 04:24:08 -0400
commitf72f4b44dfa88350b7072ca06fee83ce000a4177 (patch)
treea58838410348812b67bef731fcf1d2a2b0fd74e0 /Documentation
parente23efa311110648d58268c9b83b21de9d990a78c (diff)
gpio: Add AXP209 GPIO driver
The AXP209 PMIC has a bunch of GPIOs accessible, that are usually used to control LEDs or backlight. Add a driver for them Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/gpio/gpio-axp209.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/gpio-axp209.txt b/Documentation/devicetree/bindings/gpio/gpio-axp209.txt
new file mode 100644
index 000000000000..a6611304dd3c
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/gpio-axp209.txt
@@ -0,0 +1,30 @@
1AXP209 GPIO controller
2
3This driver follows the usual GPIO bindings found in
4Documentation/devicetree/bindings/gpio/gpio.txt
5
6Required properties:
7- compatible: Should be "x-powers,axp209-gpio"
8- #gpio-cells: Should be two. The first cell is the pin number and the
9 second is the GPIO flags.
10- gpio-controller: Marks the device node as a GPIO controller.
11
12This node must be a subnode of the axp20x PMIC, documented in
13Documentation/devicetree/bindings/mfd/axp20x.txt
14
15Example:
16
17axp209: pmic@34 {
18 compatible = "x-powers,axp209";
19 reg = <0x34>;
20 interrupt-parent = <&nmi_intc>;
21 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
22 interrupt-controller;
23 #interrupt-cells = <1>;
24
25 axp_gpio: gpio {
26 compatible = "x-powers,axp209-gpio";
27 gpio-controller;
28 #gpio-cells = <2>;
29 };
30};