loongson,rtc.yaml 1.1 KB

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/loongson,rtc.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Loongson Real-Time Clock
  7. description:
  8. The Loongson family chips use an on-chip counter 0 (Time Of Year
  9. counter) as the RTC.
  10. maintainers:
  11. - Binbin Zhou <zhoubinbin@loongson.cn>
  12. allOf:
  13. - $ref: rtc.yaml#
  14. properties:
  15. compatible:
  16. oneOf:
  17. - enum:
  18. - loongson,ls1b-rtc
  19. - loongson,ls1c-rtc
  20. - loongson,ls7a-rtc
  21. - loongson,ls2k1000-rtc
  22. - items:
  23. - enum:
  24. - loongson,ls2k2000-rtc
  25. - loongson,ls2k0500-rtc
  26. - const: loongson,ls7a-rtc
  27. reg:
  28. maxItems: 1
  29. interrupts:
  30. maxItems: 1
  31. required:
  32. - compatible
  33. - reg
  34. unevaluatedProperties: false
  35. examples:
  36. - |
  37. #include <dt-bindings/interrupt-controller/irq.h>
  38. rtc@1fe27800 {
  39. compatible = "loongson,ls2k1000-rtc";
  40. reg = <0x1fe27800 0x100>;
  41. interrupt-parent = <&liointc1>;
  42. interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
  43. };
  44. ...