From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3691FC46CD2 for ; Wed, 24 Jan 2024 17:34:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=eeoUcfPebc/YoRUzcgK8HONcshwiOen5SiNPBlsm6Fw=; b=q8NVwulgDTqlmb5eXpYiZM75uO a8Pb3O/j/Egz0YBn7cq7YsvZF21uYdK/nPwv5fRvuvmJ7gwyGHuL1FlLMTruslIZiZLRpiF4DI1UK RP2jp/Q1TNhCq2d+v+o56ocRvp5qw7ddhiahi1dwZ03BDZkIB6Hx3nfphpmg0cL1eajyLklXY3Alr 3jjpS9jzbkRseFN41pmF1kKrBuEZh400jmsBZkcjo6Vfv0k2uIICItZhDAIEoNxbs79a+IDCM8uul HXnRI8foaE5PU9404nosrW5AI36oygFnCU/S5XoJA7gKrHgLA5kt3Uu9hHxcPfZ9HJpcCSVPnLWKv leIX423A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSh8X-004VcB-1Y; Wed, 24 Jan 2024 17:34:05 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSh8T-004VZw-1h; Wed, 24 Jan 2024 17:34:03 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 178CB61DF0; Wed, 24 Jan 2024 17:33:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B46AAC433C7; Wed, 24 Jan 2024 17:33:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706117638; bh=F8O1LAlWtzyG7pKBPEZ8OXoCR4xC+gD0cGfc5INvsp4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B0Spo3rGnbgB9zPHV4UIgRZdD+ZLoVGQFY2Eu1smFyFZaHu5L5OPcrsFb2P+VUiDd LsK8KfQNiPp+twAUPul1m/4JYuSFohbWVFdIT+cJMA/7hiCVydYWQ/rGrZ1nEDpYF+ saudLPuSyYrdYkiYA8mFF57PrCNvPDuXeb+5kR3VnN3fEI1QP5VMROZ4NjiKOOVx0R jByrTxfv6+39YfMDW5rYa9A6x0pxJ5AcNsedxJ73HgScC18dgziw/KCrD26cJA2KMx FfXQngOx7sr9KzHMJBpSWEuOR8C+2E8h76e9LowWxURe1wrgOg4Wi+QSOq4VX18hnc jD+a89wJ92Xgw== Date: Wed, 24 Jan 2024 17:33:52 +0000 From: Conor Dooley To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Eddie Huang , Sean Wang , linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: Re: [PATCH] dt-bindings: rtc: convert MT7622 RTC to the json-schema Message-ID: <20240124-footnote-country-9dc331c51819@spud> References: <20240123125043.27192-1-zajec5@gmail.com> MIME-Version: 1.0 In-Reply-To: <20240123125043.27192-1-zajec5@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240124_093401_651317_01F10EF6 X-CRM114-Status: GOOD ( 20.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============8090964742105799307==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============8090964742105799307== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mzfSYH7PP20o44ht" Content-Disposition: inline --mzfSYH7PP20o44ht Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 23, 2024 at 01:50:43PM +0100, Rafa=C5=82 Mi=C5=82ecki wrote: > From: Rafa=C5=82 Mi=C5=82ecki >=20 > This helps validating DTS files. Introduced changes: > 1. Reworded title > 2. Dropper redundant properties descriptions > 3. Added required #include-s and adjusted "reg" in example >=20 > Signed-off-by: Rafa=C5=82 Mi=C5=82ecki Reviewed-by: Conor Dooley Cheers, Conor. > --- > .../bindings/rtc/mediatek,mt7622-rtc.yaml | 52 +++++++++++++++++++ > .../devicetree/bindings/rtc/rtc-mt7622.txt | 21 -------- > 2 files changed, 52 insertions(+), 21 deletions(-) > create mode 100644 Documentation/devicetree/bindings/rtc/mediatek,mt7622= -rtc.yaml > delete mode 100644 Documentation/devicetree/bindings/rtc/rtc-mt7622.txt >=20 > diff --git a/Documentation/devicetree/bindings/rtc/mediatek,mt7622-rtc.ya= ml b/Documentation/devicetree/bindings/rtc/mediatek,mt7622-rtc.yaml > new file mode 100644 > index 000000000000..e74dfc161cfc > --- /dev/null > +++ b/Documentation/devicetree/bindings/rtc/mediatek,mt7622-rtc.yaml > @@ -0,0 +1,52 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/rtc/mediatek,mt7622-rtc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek MT7622 on-SoC RTC > + > +allOf: > + - $ref: rtc.yaml# > + > +maintainers: > + - Sean Wang > + > +properties: > + compatible: > + items: > + - const: mediatek,mt7622-rtc > + - const: mediatek,soc-rtc > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + const: rtc > + > +required: > + - reg > + - interrupts > + - clocks > + - clock-names > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + > + rtc@10212800 { > + compatible =3D "mediatek,mt7622-rtc", "mediatek,soc-rtc"; > + reg =3D <0x10212800 0x200>; > + interrupts =3D ; > + clocks =3D <&topckgen CLK_TOP_RTC>; > + clock-names =3D "rtc"; > + }; > diff --git a/Documentation/devicetree/bindings/rtc/rtc-mt7622.txt b/Docum= entation/devicetree/bindings/rtc/rtc-mt7622.txt > deleted file mode 100644 > index 09fe8f51476f..000000000000 > --- a/Documentation/devicetree/bindings/rtc/rtc-mt7622.txt > +++ /dev/null > @@ -1,21 +0,0 @@ > -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 =3D "mediatek,mt7622-rtc", > - "mediatek,soc-rtc"; > - reg =3D <0 0x10212800 0 0x200>; > - interrupts =3D ; > - clocks =3D <&topckgen CLK_TOP_RTC>; > - clock-names =3D "rtc"; > -}; > --=20 > 2.35.3 >=20 --mzfSYH7PP20o44ht Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZbFKAAAKCRB4tDGHoIJi 0hieAQCSVtBR/QWefVi/R8aPudHESw7FQN1nfXuBKJuUNQjjlAD+NLxT1QNvQr9y CoJayyLMfGR1nC0ul+pEvzRdrx6kUAA= =LfgQ -----END PGP SIGNATURE----- --mzfSYH7PP20o44ht-- --===============8090964742105799307== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============8090964742105799307==--