realtek,rtd-gpio.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. # Copyright 2023 Realtek Semiconductor Corporation
  3. %YAML 1.2
  4. ---
  5. $id: http://devicetree.org/schemas/gpio/realtek,rtd-gpio.yaml#
  6. $schema: http://devicetree.org/meta-schemas/core.yaml#
  7. title: Realtek DHC GPIO controller
  8. maintainers:
  9. - Tzuyi Chang <tychang@realtek.com>
  10. description:
  11. The GPIO controller is designed for the Realtek DHC (Digital Home Center)
  12. RTD series SoC family, which are high-definition media processor SoCs.
  13. properties:
  14. compatible:
  15. enum:
  16. - realtek,rtd1295-misc-gpio
  17. - realtek,rtd1295-iso-gpio
  18. - realtek,rtd1315e-iso-gpio
  19. - realtek,rtd1319-iso-gpio
  20. - realtek,rtd1319d-iso-gpio
  21. - realtek,rtd1395-iso-gpio
  22. - realtek,rtd1619-iso-gpio
  23. - realtek,rtd1619b-iso-gpio
  24. reg:
  25. items:
  26. - description: GPIO controller registers
  27. - description: GPIO interrupt registers
  28. interrupts:
  29. items:
  30. - description: Interrupt number of the assert GPIO interrupt, which is
  31. triggered when there is a rising edge.
  32. - description: Interrupt number of the deassert GPIO interrupt, which is
  33. triggered when there is a falling edge.
  34. gpio-ranges: true
  35. gpio-controller: true
  36. "#gpio-cells":
  37. const: 2
  38. required:
  39. - compatible
  40. - reg
  41. - interrupts
  42. - gpio-ranges
  43. - gpio-controller
  44. - "#gpio-cells"
  45. additionalProperties: false
  46. examples:
  47. - |
  48. gpio@100 {
  49. compatible = "realtek,rtd1319d-iso-gpio";
  50. reg = <0x100 0x100>,
  51. <0x0 0xb0>;
  52. interrupt-parent = <&iso_irq_mux>;
  53. interrupts = <19>, <20>;
  54. gpio-ranges = <&pinctrl 0 0 82>;
  55. gpio-controller;
  56. #gpio-cells = <2>;
  57. };