mstar,msc313-gpio.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/gpio/mstar,msc313-gpio.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: MStar/SigmaStar GPIO controller
  7. maintainers:
  8. - Daniel Palmer <daniel@thingy.jp>
  9. properties:
  10. $nodename:
  11. pattern: "^gpio@[0-9a-f]+$"
  12. compatible:
  13. enum:
  14. - mstar,msc313-gpio
  15. - sstar,ssd20xd-gpio
  16. reg:
  17. maxItems: 1
  18. gpio-controller: true
  19. "#gpio-cells":
  20. const: 2
  21. gpio-ranges: true
  22. interrupt-controller: true
  23. "#interrupt-cells":
  24. const: 2
  25. required:
  26. - compatible
  27. - reg
  28. - gpio-controller
  29. - "#gpio-cells"
  30. - interrupt-controller
  31. - "#interrupt-cells"
  32. additionalProperties: false
  33. examples:
  34. - |
  35. #include <dt-bindings/gpio/msc313-gpio.h>
  36. gpio: gpio@207800 {
  37. compatible = "mstar,msc313-gpio";
  38. #gpio-cells = <2>;
  39. reg = <0x207800 0x200>;
  40. gpio-controller;
  41. gpio-ranges = <&pinctrl 0 36 22>,
  42. <&pinctrl 22 63 4>,
  43. <&pinctrl 26 68 6>;
  44. #interrupt-cells = <2>;
  45. interrupt-controller;
  46. interrupt-parent = <&intc_fiq>;
  47. };