1 AXP209 GPIO & pinctrl controller
3 This driver follows the usual GPIO bindings found in
4 Documentation/devicetree/bindings/gpio/gpio.txt
6 This driver follows the usual pinctrl bindings found in
7 Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
9 This driver employs the per-pin muxing pattern.
12 - compatible: Should be one of:
13 - "x-powers,axp209-gpio"
14 - "x-powers,axp813-gpio"
15 - #gpio-cells: Should be two. The first cell is the pin number and the
16 second is the GPIO flags.
17 - gpio-controller: Marks the device node as a GPIO controller.
19 This node must be a subnode of the axp20x PMIC, documented in
20 Documentation/devicetree/bindings/mfd/axp20x.txt
25 compatible = "x-powers,axp209";
27 interrupt-parent = <&nmi_intc>;
28 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
30 #interrupt-cells = <1>;
33 compatible = "x-powers,axp209-gpio";
39 The GPIOs can be muxed to other functions and therefore, must be a subnode of
45 gpio0_adc: gpio0-adc {
52 pinctrl-names = "default";
53 pinctrl-0 = <&gpio0_adc>;
56 GPIOs and their functions
57 -------------------------
59 Each GPIO is independent from the other (i.e. GPIO0 in gpio_in function does
60 not force GPIO1 and GPIO2 to be in gpio_in function as well).
65 ------------------------
66 GPIO0 | gpio_in, gpio_out, ldo, adc
67 GPIO1 | gpio_in, gpio_out, ldo, adc
68 GPIO2 | gpio_in, gpio_out
73 ------------------------
74 GPIO0 | gpio_in, gpio_out, ldo, adc
75 GPIO1 | gpio_in, gpio_out, ldo