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 "x-powers,axp209-gpio"
13 - #gpio-cells: Should be two. The first cell is the pin number and the
14 second is the GPIO flags.
15 - gpio-controller: Marks the device node as a GPIO controller.
17 This node must be a subnode of the axp20x PMIC, documented in
18 Documentation/devicetree/bindings/mfd/axp20x.txt
23 compatible = "x-powers,axp209";
25 interrupt-parent = <&nmi_intc>;
26 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
28 #interrupt-cells = <1>;
31 compatible = "x-powers,axp209-gpio";
37 The GPIOs can be muxed to other functions and therefore, must be a subnode of
43 gpio0_adc: gpio0-adc {
50 pinctrl-names = "default";
51 pinctrl-0 = <&gpio0_adc>;
54 GPIOs and their functions
55 -------------------------
57 Each GPIO is independent from the other (i.e. GPIO0 in gpio_in function does
58 not force GPIO1 and GPIO2 to be in gpio_in function as well).
61 ------------------------
62 GPIO0 | gpio_in, gpio_out, ldo, adc
63 GPIO1 | gpio_in, gpio_out, ldo, adc
64 GPIO2 | gpio_in, gpio_out