sun6i-rtc.txt 840 B

123456789101112131415161718192021222324252627
  1. * sun6i Real Time Clock
  2. RTC controller for the Allwinner A31
  3. Required properties:
  4. - compatible : Should be "allwinner,sun6i-a31-rtc"
  5. - reg : physical base address of the controller and length of
  6. memory mapped region.
  7. - interrupts : IRQ lines for the RTC alarm 0 and alarm 1, in that order.
  8. Required properties for new device trees
  9. - clocks : phandle to the 32kHz external oscillator
  10. - clock-output-names : names of the LOSC and its external output clocks created
  11. - #clock-cells : must be equals to 1. The RTC provides two clocks: the
  12. LOSC and its external output, with index 0 and 1
  13. respectively.
  14. Example:
  15. rtc: rtc@1f00000 {
  16. compatible = "allwinner,sun6i-a31-rtc";
  17. reg = <0x01f00000 0x54>;
  18. interrupts = <0 40 4>, <0 41 4>;
  19. clock-output-names = "osc32k", "osc32k-out";
  20. clocks = <&ext_osc32k>;
  21. #clock-cells = <1>;
  22. };