x-powers,axp209-gpio.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/gpio/x-powers,axp209-gpio.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: X-Powers AXP209 GPIO
  7. maintainers:
  8. - Chen-Yu Tsai <wens@csie.org>
  9. properties:
  10. "#gpio-cells":
  11. const: 2
  12. description: >
  13. The first cell is the pin number and the second is the GPIO flags.
  14. compatible:
  15. oneOf:
  16. - enum:
  17. - x-powers,axp209-gpio
  18. - x-powers,axp221-gpio
  19. - x-powers,axp813-gpio
  20. - items:
  21. - enum:
  22. - x-powers,axp223-gpio
  23. - x-powers,axp809-gpio
  24. - const: x-powers,axp221-gpio
  25. - items:
  26. - const: x-powers,axp803-gpio
  27. - const: x-powers,axp813-gpio
  28. gpio-controller: true
  29. patternProperties:
  30. "^.*-pins?$":
  31. $ref: /schemas/pinctrl/pinmux-node.yaml#
  32. additionalProperties: false
  33. properties:
  34. pins:
  35. items:
  36. enum:
  37. - GPIO0
  38. - GPIO1
  39. - GPIO2
  40. - GPIO3
  41. function:
  42. enum:
  43. - adc
  44. - ldo
  45. - gpio_in
  46. - gpio_out
  47. required:
  48. - compatible
  49. - "#gpio-cells"
  50. - gpio-controller
  51. additionalProperties: false
  52. ...