st,nomadik-gpio.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/gpio/st,nomadik-gpio.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Nomadik GPIO controller
  7. description:
  8. The Nomadik GPIO driver handles Nomadik SoC GPIO blocks. This block has also
  9. been called ST STA2X11. On the Nomadik platform, this driver is intertwined
  10. with pinctrl-nomadik.
  11. maintainers:
  12. - Linus Walleij <linus.walleij@linaro.org>
  13. properties:
  14. $nodename:
  15. pattern: "^gpio@[0-9a-f]+$"
  16. compatible:
  17. enum:
  18. - st,nomadik-gpio
  19. - mobileye,eyeq5-gpio
  20. reg:
  21. maxItems: 1
  22. interrupts:
  23. maxItems: 1
  24. "#gpio-cells":
  25. const: 2
  26. gpio-controller: true
  27. interrupt-controller: true
  28. "#interrupt-cells":
  29. const: 2
  30. gpio-bank:
  31. description: System-wide GPIO bank index.
  32. $ref: /schemas/types.yaml#/definitions/uint32
  33. st,supports-sleepmode:
  34. description: Whether the controller can sleep or not.
  35. $ref: /schemas/types.yaml#/definitions/flag
  36. clocks:
  37. maxItems: 1
  38. gpio-ranges:
  39. maxItems: 1
  40. ngpios:
  41. minimum: 0
  42. maximum: 32
  43. resets:
  44. maxItems: 1
  45. required:
  46. - compatible
  47. - reg
  48. - interrupts
  49. - "#gpio-cells"
  50. - gpio-controller
  51. - interrupt-controller
  52. - gpio-bank
  53. unevaluatedProperties: false
  54. allOf:
  55. - if:
  56. properties:
  57. compatible:
  58. contains:
  59. const: mobileye,eyeq5-gpio
  60. then:
  61. properties:
  62. st,supports-sleepmode: false
  63. examples:
  64. - |
  65. gpio@8012e080 {
  66. compatible = "st,nomadik-gpio";
  67. reg = <0x8012e080 0x80>;
  68. interrupts = <0 120 0x4>;
  69. #gpio-cells = <2>;
  70. gpio-controller;
  71. interrupt-controller;
  72. st,supports-sleepmode;
  73. gpio-bank = <1>;
  74. };