rtc-mxc.yaml 1023 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/rtc/rtc-mxc.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Real Time Clock of the i.MX SoCs
  7. allOf:
  8. - $ref: rtc.yaml#
  9. maintainers:
  10. - Philippe Reynes <tremyfr@gmail.com>
  11. properties:
  12. compatible:
  13. enum:
  14. - fsl,imx1-rtc
  15. - fsl,imx21-rtc
  16. reg:
  17. maxItems: 1
  18. interrupts:
  19. maxItems: 1
  20. clocks:
  21. items:
  22. - description: input reference
  23. - description: the SoC RTC clock
  24. clock-names:
  25. items:
  26. - const: ref
  27. - const: ipg
  28. required:
  29. - compatible
  30. - reg
  31. - interrupts
  32. - clocks
  33. - clock-names
  34. additionalProperties: false
  35. examples:
  36. - |
  37. #include <dt-bindings/clock/imx27-clock.h>
  38. rtc@10007000 {
  39. compatible = "fsl,imx21-rtc";
  40. reg = <0x10007000 0x1000>;
  41. interrupts = <22>;
  42. clocks = <&clks IMX27_CLK_CKIL>,
  43. <&clks IMX27_CLK_RTC_IPG_GATE>;
  44. clock-names = "ref", "ipg";
  45. };