From patchwork Fri Mar 23 09:14:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Wang X-Patchwork-Id: 10303059 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 673BB605FE for ; Fri, 23 Mar 2018 09:20:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45A3728D38 for ; Fri, 23 Mar 2018 09:20:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4293F28D4B; Fri, 23 Mar 2018 09:20:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C60028D25 for ; Fri, 23 Mar 2018 09:20:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752227AbeCWJUG (ORCPT ); Fri, 23 Mar 2018 05:20:06 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:24959 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752009AbeCWJPb (ORCPT ); Fri, 23 Mar 2018 05:15:31 -0400 X-UUID: 0eb758de64fc4f2bb60390d1187e0327-20180323 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1869929563; Fri, 23 Mar 2018 17:15:25 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 23 Mar 2018 17:15:23 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Fri, 23 Mar 2018 17:15:24 +0800 From: To: , , , , , , CC: , , , , , Sean Wang Subject: [PATCH v1 02/16] dt-bindings: rtc: mediatek: add bindings for PMIC RTC Date: Fri, 23 Mar 2018 17:14:59 +0800 Message-ID: <5846e8be319c4836808c8127d5bb51b7e999e896.1521794177.git.sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-12.5.0.5042-8.2.9001-23736.004 X-TM-AS-Result: No-5.369500-8.000000-10 X-TMASE-MatchedRID: JLDJ3zY9u2kxFdXyW/P+XRWCVBr+Ay98TJDl9FKHbrm7qpOHKudqczQz 47GqDWjpnD3AxwqeC/r+5j8x5GH+mf+rTYoF7Kee05yZiz1u26Rdxx6WRf+5sM7EPIkVcg+Oxtf MCZzvZ+lPN9Ds5e3i44Ay6p60ZV62fJ5/bZ6npdg7AFczfjr/7JJ0UX/rKgouzOHrU8JWvsOZ7v bKAdnMwEolWaGFokF9vyjT7c4jENc= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.369500-8.000000 X-TMASE-Version: SMEX-12.5.0.5042-8.2.9001-23736.004 X-TMASE-POSTMAN: 2-d; X-MTK: N Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sean Wang Add device-tree binding for MediaTek PMIC based RTC. Signed-off-by: Sean Wang --- .../devicetree/bindings/rtc/rtc-mt6397.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/rtc-mt6397.txt diff --git a/Documentation/devicetree/bindings/rtc/rtc-mt6397.txt b/Documentation/devicetree/bindings/rtc/rtc-mt6397.txt new file mode 100644 index 0000000..83ff6be --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/rtc-mt6397.txt @@ -0,0 +1,39 @@ +Device-Tree bindings for MediaTek PMIC based RTC + +MediaTek PMIC based RTC is an independent function of MediaTek PMIC which +is working as a multi-function device (MFD). And the RTC can be configured and +set up via PMIC wrapper bus. Which is also common resource shared among the +other functions present on the PMIC. + +For MediaTek PMIC wrapper bus bindings, see: +Documentation/devicetree/bindings/soc/mediatek/pwrap.txt + +Required parent node: +- pmic + For MediaTek PMIC MFD bindings, see: + Documentation/devicetree/bindings/mfd/mt6397.txt + +Required properties: +- compatible: Should be one of follows + "mediatek,mt6323-rtc": for MT6323 PMIC + "mediatek,mt6397-rtc": for MT6397 PMIC + +Optional child node: +- power-off + For Power-Off Device for MediaTek PMIC RTC bindings, see: + Documentation/devicetree/bindings/power/reset/mt6397-rtc-poweroff.txt + +Example: + + pmic { + compatible = "mediatek,mt6323"; + + ... + rtc { + compatible = "mediatek,mt6323-rtc"; + + power-off { + compatible = "mediatek,mt6323-rtc-poweroff"; + }; + }; +};