gpio-axp209.txt 769 B

12345678910111213141516171819202122232425262728293031
  1. AXP209 GPIO controller
  2. This driver follows the usual GPIO bindings found in
  3. Documentation/devicetree/bindings/gpio/gpio.txt
  4. Required properties:
  5. - compatible: Should be "x-powers,axp209-gpio"
  6. - #gpio-cells: Should be two. The first cell is the pin number and the
  7. second is the GPIO flags.
  8. - gpio-controller: Marks the device node as a GPIO controller.
  9. This node must be a subnode of the axp20x PMIC, documented in
  10. Documentation/devicetree/bindings/mfd/axp20x.txt
  11. Example:
  12. axp209: pmic@34 {
  13. compatible = "x-powers,axp209";
  14. reg = <0x34>;
  15. interrupt-parent = <&nmi_intc>;
  16. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  17. interrupt-controller;
  18. #interrupt-cells = <1>;
  19. axp_gpio: gpio {
  20. compatible = "x-powers,axp209-gpio";
  21. gpio-controller;
  22. #gpio-cells = <2>;
  23. };
  24. };