s3c-rtc.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/rtc/s3c-rtc.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Samsung S3C, S5P and Exynos Real Time Clock controller
  7. maintainers:
  8. - Krzysztof Kozlowski <krzk@kernel.org>
  9. properties:
  10. compatible:
  11. oneOf:
  12. - enum:
  13. - samsung,s3c2410-rtc
  14. - samsung,s3c2416-rtc
  15. - samsung,s3c2443-rtc
  16. - samsung,s3c6410-rtc
  17. - items:
  18. - enum:
  19. - samsung,exynos7-rtc
  20. - samsung,exynos850-rtc
  21. - const: samsung,s3c6410-rtc
  22. - const: samsung,exynos3250-rtc
  23. deprecated: true
  24. reg:
  25. maxItems: 1
  26. clocks:
  27. description:
  28. Must contain a list of phandle and clock specifier for the rtc
  29. clock and in the case of a s3c6410 compatible controller, also
  30. a source clock.
  31. minItems: 1
  32. maxItems: 2
  33. clock-names:
  34. description:
  35. Must contain "rtc" and for a s3c6410 compatible controller
  36. also "rtc_src".
  37. minItems: 1
  38. maxItems: 2
  39. interrupts:
  40. description:
  41. Two interrupt numbers to the cpu should be specified. First
  42. interrupt number is the rtc alarm interrupt and second interrupt number
  43. is the rtc tick interrupt. The number of cells representing a interrupt
  44. depends on the parent interrupt controller.
  45. minItems: 2
  46. maxItems: 2
  47. allOf:
  48. - $ref: rtc.yaml#
  49. - if:
  50. properties:
  51. compatible:
  52. contains:
  53. enum:
  54. - samsung,s3c6410-rtc
  55. - samsung,exynos3250-rtc
  56. then:
  57. properties:
  58. clocks:
  59. minItems: 2
  60. maxItems: 2
  61. clock-names:
  62. items:
  63. - const: rtc
  64. - const: rtc_src
  65. else:
  66. properties:
  67. clocks:
  68. minItems: 1
  69. maxItems: 1
  70. clock-names:
  71. items:
  72. - const: rtc
  73. unevaluatedProperties: false
  74. examples:
  75. - |
  76. #include <dt-bindings/clock/exynos5420.h>
  77. #include <dt-bindings/clock/samsung,s2mps11.h>
  78. rtc@10070000 {
  79. compatible = "samsung,s3c6410-rtc";
  80. reg = <0x10070000 0x100>;
  81. interrupts = <0 44 4>, <0 45 4>;
  82. clocks = <&clock CLK_RTC>,
  83. <&s2mps11_osc S2MPS11_CLK_AP>;
  84. clock-names = "rtc", "rtc_src";
  85. };