0137-dt-bindings-rtc-mediatek-add-bindings-for-MediaTek-S.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From 3254edde244fcbcce3bf4da1ade9db2db558ae28 Mon Sep 17 00:00:00 2001
  2. From: Sean Wang <[email protected]>
  3. Date: Mon, 23 Oct 2017 15:16:44 +0800
  4. Subject: [PATCH 137/224] dt-bindings: rtc: mediatek: add bindings for MediaTek
  5. SoC based RTC
  6. Add device-tree binding for MediaTek SoC based RTC
  7. Cc: [email protected]
  8. Signed-off-by: Sean Wang <[email protected]>
  9. Acked-by: Rob Herring <[email protected]>
  10. Signed-off-by: Alexandre Belloni <[email protected]>
  11. ---
  12. .../devicetree/bindings/rtc/rtc-mt7622.txt | 21 +++++++++++++++++++++
  13. 1 file changed, 21 insertions(+)
  14. create mode 100644 Documentation/devicetree/bindings/rtc/rtc-mt7622.txt
  15. --- /dev/null
  16. +++ b/Documentation/devicetree/bindings/rtc/rtc-mt7622.txt
  17. @@ -0,0 +1,21 @@
  18. +Device-Tree bindings for MediaTek SoC based RTC
  19. +
  20. +Required properties:
  21. +- compatible : Should be
  22. + "mediatek,mt7622-rtc", "mediatek,soc-rtc" : for MT7622 SoC
  23. +- reg : Specifies base physical address and size of the registers;
  24. +- interrupts : Should contain the interrupt for RTC alarm;
  25. +- clocks : Specifies list of clock specifiers, corresponding to
  26. + entries in clock-names property;
  27. +- clock-names : Should contain "rtc" entries
  28. +
  29. +Example:
  30. +
  31. +rtc: rtc@10212800 {
  32. + compatible = "mediatek,mt7622-rtc",
  33. + "mediatek,soc-rtc";
  34. + reg = <0 0x10212800 0 0x200>;
  35. + interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_LOW>;
  36. + clocks = <&topckgen CLK_TOP_RTC>;
  37. + clock-names = "rtc";
  38. +};