Received: by 10.213.65.68 with SMTP id h4csp244674imn; Fri, 23 Mar 2018 03:48:10 -0700 (PDT) X-Google-Smtp-Source: AG47ELtYC1VUH78mjI09ZheFi5QPPMlvCF0cnY6zI2aUCtZbZvxL3t09mMRrgZ+RWgpMgXWUDrew X-Received: by 10.99.96.79 with SMTP id u76mr19909667pgb.199.1521802090058; Fri, 23 Mar 2018 03:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521802090; cv=none; d=google.com; s=arc-20160816; b=AOsBHZ//HNl+O2irvkYMS6jP050//Q6nEj7Zn9dr7FIeHJnIy667RXyHItaUpF+5Bq rfOayR5vb1WRf+YXmdAHXsLr+sk4cWhkf2utRTODav1Nkn27y1BTVt5G2Ncup+GHj1hn aHilwcIBvB/lwCg2NSAU0NqIynna1YFHw9hH9V9gslho0bcClFPLZ24T61YS6KmpsA0j zVhKu1O+ax65UZJk56aLNUe6KV6Mx13YdOLddduVkBEDTS9JsNIToOZefseFqEEkY6Wh nWXn19SiNn8aBeAuiop4yEnbkIgd7gAjWu7161FaQOg5Cx4c1mYpdt+83kRm4NhTiTTo +pEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=oPa53nbScISN4wzgF/5IAYlMgGS4gybqlOifmjhtSiE=; b=SYQJK+lEGHWevzr4CXl0tbSug20f8sfKsSE/lfqAULAKVfEH1Kfwb35Mu6tN5RZr+x +lS4O0HOn+cBFw/WiJzlCxK3eTKatarnFBfJV7E5r0XquCMHLSWPEZDjm9wpLGdnQHkd TgcuU/KK7P/qCTyxcneke/4vBMIL7k3AfMU8CRaqxBt7sufawyzKoOkL98OxMaB4FnWp r/C9wuQwLhL6h/8pRWCeqlsfPU8EjBedEhXAkEkWPn65uwVlSOXjnYNtHl1XWpE1vqp/ T9WqU6MOSTQUNZAg9XnlM9jerFsVyn6xPT713264HmuqQrrt5CD4TDE1SiOoUkWrbNUQ NpPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m13si433579pgp.204.2018.03.23.03.47.55; Fri, 23 Mar 2018 03:48:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752477AbeCWKqi (ORCPT + 99 others); Fri, 23 Mar 2018 06:46:38 -0400 Received: from mail.bootlin.com ([62.4.15.54]:41116 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933440AbeCWKPS (ORCPT ); Fri, 23 Mar 2018 06:15:18 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 8641020858; Fri, 23 Mar 2018 11:15:15 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id 0E7B72038E; Fri, 23 Mar 2018 11:15:05 +0100 (CET) Date: Fri, 23 Mar 2018 11:15:05 +0100 From: Alexandre Belloni To: sean.wang@mediatek.com Cc: robh+dt@kernel.org, mark.rutland@arm.com, sre@kernel.org, lee.jones@linaro.org, a.zummo@towertech.it, eddie.huang@mediatek.com, devicetree@vger.kernel.org, linux-rtc@vger.kernel.org, linux-pm@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 02/16] dt-bindings: rtc: mediatek: add bindings for PMIC RTC Message-ID: <20180323101505.GF3417@piout.net> References: <5846e8be319c4836808c8127d5bb51b7e999e896.1521794177.git.sean.wang@mediatek.com> <20180323094118.GC3417@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180323094118.GC3417@piout.net> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/03/2018 at 10:41:18 +0100, Alexandre Belloni wrote: > Hi, > > On 23/03/2018 at 17:14:59 +0800, sean.wang@mediatek.com wrote: > > 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"; > > + }; > > I'm pretty sure the whole point of mfd is to avoid having the poweroff > controller under the rtc > BTW, I think it is enough to have that documented in only one file (the MFD one is enough) > > -- > Alexandre Belloni, Bootlin (formerly Free Electrons) > Embedded Linux and Kernel engineering > https://bootlin.com -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com