Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1270223rwb; Wed, 9 Nov 2022 15:32:31 -0800 (PST) X-Google-Smtp-Source: AMsMyM4kVp6CJFtskGk2L9NfGxf6wUE/N7tyGmhjv811DxMrtCnM5+scLGFmUFeKSZeZjYvtwjQI X-Received: by 2002:a63:5d18:0:b0:462:f77b:cd29 with SMTP id r24-20020a635d18000000b00462f77bcd29mr53878503pgb.9.1668036751386; Wed, 09 Nov 2022 15:32:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668036751; cv=none; d=google.com; s=arc-20160816; b=mTEuixmikgXwxV4Q0lzeGum6dqc/KgxPSMaJ9SeZuiRCnIhcur4asdMBpEwcUPOSn/ QBjG/fjBkWVuD/g8BvY86r5bt5DhEW1bzo1sHivsKzPP8jeyVl5h4byrrz0lodfrNnF9 9KC1E5FzJAxqBIS6Ra2DF0/XlmITNe9SYp1UVma9X0Mf1ri6KKpKykI51Sf1V/KZwwcF aleHWt3475tJK+9wSTl5QHlONQWaf3oSS93jGq4q/eEA76jM8RtRX26voRgKe8EsRTB7 1lJpUsT6wA1oaCSj7JegErAiPry0XQVQzAd2mR4wyRQ55swEr6nznrqLx2SvdhLXYNYF HgDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4qutKClpaMtj7cgQ2BDKv2YC/ArzsyxTBFqjgebWdeE=; b=NIyFxcdZi1JCKNvog5IGVN0hprvYTCdxYQtduHagLdj+sbVZMm8yKXFTYeTq5fbIW/ 2pb1dhIeON3pplm3WORlAGig6Iyw+7z55ddRWBWfc3wz3fTwSaQGaYDMg1el7lCpL7j0 JIpDm0x+IsSp6JZP5UlriLMZrq/VSrkIxuN0Cnv2M0eS1zkJi8Ae5A0m1A+9zzwOfuzp 3IwPpKPu1OGZskyZ1R+0ZWdt3ConxXHW26fkLFyBC2sR6iK/uljbzUa6hEBFTH7EsBzV VeFy+PaA2JeSrNchqnINMjgrevl8cRoRFmrtToYzcqXNuRYlRxn73EQFYqhnxf/yTDiQ dHsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Wj1QADdK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e19-20020a63e013000000b0046ec0715bd9si19366305pgh.818.2022.11.09.15.32.19; Wed, 09 Nov 2022 15:32:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Wj1QADdK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231764AbiKIW52 (ORCPT + 92 others); Wed, 9 Nov 2022 17:57:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbiKIW51 (ORCPT ); Wed, 9 Nov 2022 17:57:27 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14FB61EED1; Wed, 9 Nov 2022 14:57:24 -0800 (PST) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 6BDBAFF802; Wed, 9 Nov 2022 22:57:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1668034642; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4qutKClpaMtj7cgQ2BDKv2YC/ArzsyxTBFqjgebWdeE=; b=Wj1QADdKc4kzuieut1F0r5KxBkYYWxjNrJNQK9hOurYpohcXx3snCxMxmQoMuBlHDO7Usd bAuP4MhygFBfrCrUc222hussBxd4Gw+jKFZezkTx0u0q4dq5TsEbPpSrCJfHsoAwBHfrLC B6cdwRgshTy65gyZ8qh6N9yKmBCxckwyuzvikA1Pwkgn4R1++tcKrvbeCrnOE/staWDqk5 GFsE2D0Y4f4iY+mKn1/rHBnnDgYnT+0Ti1f8dUOQgUG4BD21C5VwaX3CYsjR1Hz2ESw3JF tU6xpxAePf4T5DIt/cu4ZSu+e+ivp1Lxz63RNurtq4QE2EXMM5pylre+etBRrg== Date: Wed, 9 Nov 2022 23:57:20 +0100 From: Alexandre Belloni To: Rob Herring Cc: Alexandre Mergnat , Fabien Parent , Krzysztof Kozlowski , Sean Wang , Mark Brown , Matthias Brugger , Lee Jones , Chen Zhong , Alessandro Zummo , Pavel Machek , Liam Girdwood , Dmitry Torokhov , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, AngeloGioacchino Del Regno , Fabien Parent , linux-rtc@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, Mattijs Korpershoek Subject: Re: [PATCH v4 2/9] dt-bindings: rtc: mediatek: convert MT6397 rtc documentation Message-ID: References: <20221005-mt6357-support-v4-0-5d2bb58e6087@baylibre.com> <20221005-mt6357-support-v4-2-5d2bb58e6087@baylibre.com> <20221109222916.GA2985917-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221109222916.GA2985917-robh@kernel.org> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/11/2022 16:29:16-0600, Rob Herring wrote: > On Tue, Nov 08, 2022 at 07:43:37PM +0100, Alexandre Mergnat wrote: > > - Convert rtc/rtc-mt6397.txt to rtc/mt6397-rtc.yaml > > - Add mediatek,mt6357-rtc compatible. > > - Add maintainer > > - Remove the .txt binding file > > > > Signed-off-by: Alexandre Mergnat > > --- > > Documentation/devicetree/bindings/mfd/mt6397.txt | 2 +- > > .../bindings/rtc/mediatek,mt6397-rtc.yaml | 40 ++++++++++++++++++++++ > > .../devicetree/bindings/rtc/rtc-mt6397.txt | 31 ----------------- > > 3 files changed, 41 insertions(+), 32 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/mfd/mt6397.txt b/Documentation/devicetree/bindings/mfd/mt6397.txt > > index 0088442efca1..79aaf21af8e9 100644 > > --- a/Documentation/devicetree/bindings/mfd/mt6397.txt > > +++ b/Documentation/devicetree/bindings/mfd/mt6397.txt > > @@ -33,7 +33,7 @@ Optional subnodes: > > - compatible: "mediatek,mt6331-rtc" > > - compatible: "mediatek,mt6358-rtc" > > - compatible: "mediatek,mt6397-rtc" > > - For details, see ../rtc/rtc-mt6397.txt > > + For details, see ../rtc/mediatek,mt6397-rtc.yaml > > - regulators > > Required properties: > > - compatible: "mediatek,mt6323-regulator" > > diff --git a/Documentation/devicetree/bindings/rtc/mediatek,mt6397-rtc.yaml b/Documentation/devicetree/bindings/rtc/mediatek,mt6397-rtc.yaml > > new file mode 100644 > > index 000000000000..bb48c0150f95 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/rtc/mediatek,mt6397-rtc.yaml > > @@ -0,0 +1,40 @@ > > + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/rtc/mediatek,mt6397-rtc.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: MediaTek MT6397/MT6366/MT6358/MT6357/MT6323 RTC > > + > > +maintainers: > > + - Alexandre Mergnat > > + > > +description: | > > + MediaTek PMIC based RTC is an independent function of MediaTek PMIC that works > > + as a type of multi-function device (MFD). The RTC can be configured and set up > > + with PMIC wrapper bus which is a common resource shared with the other > > + functions found on the same PMIC. > > + > > +properties: > > + compatible: > > + enum: > > + - mediatek,mt6323-rtc > > + - mediatek,mt6357-rtc > > + - mediatek,mt6358-rtc > > + - mediatek,mt6366-rtc > > + - mediatek,mt6397-rtc > > As this is only a compatible string, just fold this into the MFD schema > doc. Actually, it probably also supports the start-year property > > > + > > +additionalProperties: false > > + > > +required: > > + - compatible > > + > > +examples: > > + - | > > + pmic { > > + compatible = "mediatek,mt6397"; > > + > > + rtc { > > + compatible = "mediatek,mt6397-rtc"; > > + }; > > + }; -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com