Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751883AbdIVDdf (ORCPT ); Thu, 21 Sep 2017 23:33:35 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:22583 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751791AbdIVDdd (ORCPT ); Thu, 21 Sep 2017 23:33:33 -0400 X-UUID: 8af3fbd77f7f4a8bb1321d91c0680b5f-20170922 From: To: , , , CC: , , , , Sean Wang Subject: [PATCH 1/4] dt-bindings: rtc: mediatek: add bindings for MediaTek SoC based RTC Date: Fri, 22 Sep 2017 11:33:14 +0800 Message-ID: <1357cb02adb88a8a2d7c2268b8573c0a9b6f8d0c.1506049341.git.sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1350 Lines: 40 From: Sean Wang Add device-tree binding for MediaTek SoC based RTC Cc: devicetree@vger.kernel.org Signed-off-by: Sean Wang --- .../devicetree/bindings/rtc/rtc-mediatek.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/rtc-mediatek.txt diff --git a/Documentation/devicetree/bindings/rtc/rtc-mediatek.txt b/Documentation/devicetree/bindings/rtc/rtc-mediatek.txt new file mode 100644 index 0000000..09fe8f5 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/rtc-mediatek.txt @@ -0,0 +1,21 @@ +Device-Tree bindings for MediaTek SoC based RTC + +Required properties: +- compatible : Should be + "mediatek,mt7622-rtc", "mediatek,soc-rtc" : for MT7622 SoC +- reg : Specifies base physical address and size of the registers; +- interrupts : Should contain the interrupt for RTC alarm; +- clocks : Specifies list of clock specifiers, corresponding to + entries in clock-names property; +- clock-names : Should contain "rtc" entries + +Example: + +rtc: rtc@10212800 { + compatible = "mediatek,mt7622-rtc", + "mediatek,soc-rtc"; + reg = <0 0x10212800 0 0x200>; + interrupts = ; + clocks = <&topckgen CLK_TOP_RTC>; + clock-names = "rtc"; +}; -- 2.7.4