faraday,ftrtc010.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/rtc/faraday,ftrtc010.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Faraday Technology FTRTC010 Real Time Clock
  7. maintainers:
  8. - Linus Walleij <linus.walleij@linaro.org>
  9. description: |
  10. This RTC appears in for example the Storlink Gemini family of SoCs.
  11. properties:
  12. compatible:
  13. oneOf:
  14. - const: faraday,ftrtc010
  15. - items:
  16. - const: cortina,gemini-rtc
  17. - const: faraday,ftrtc010
  18. resets:
  19. maxItems: 1
  20. reg:
  21. maxItems: 1
  22. interrupts:
  23. maxItems: 1
  24. clocks:
  25. items:
  26. - description: PCLK clocks
  27. - description: EXTCLK clocks. Faraday calls it CLK1HZ and says the clock
  28. should be 1 Hz, but implementers actually seem to choose different
  29. clocks here, like Cortina who chose 32768 Hz (a typical low-power clock).
  30. clock-names:
  31. items:
  32. - const: PCLK
  33. - const: EXTCLK
  34. required:
  35. - compatible
  36. additionalProperties: false
  37. examples:
  38. - |
  39. #include <dt-bindings/interrupt-controller/irq.h>
  40. rtc@45000000 {
  41. compatible = "cortina,gemini-rtc", "faraday,ftrtc010";
  42. reg = <0x45000000 0x100>;
  43. interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
  44. clocks = <&foo 0>, <&foo 1>;
  45. clock-names = "PCLK", "EXTCLK";
  46. };