Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1266936rdb; Wed, 24 Jan 2024 09:36:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsx8NfQ+RH1uHAjHzFTC+g5Z8xxbsYMNkN32z7vPEDiCiVjSiQ3h5Keq9GvI/mrw5/TraT X-Received: by 2002:a05:6808:200e:b0:3bd:c69c:a138 with SMTP id q14-20020a056808200e00b003bdc69ca138mr2336416oiw.102.1706117775130; Wed, 24 Jan 2024 09:36:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706117775; cv=pass; d=google.com; s=arc-20160816; b=rFqjVU/314qlaIVHWKoW9eRoweAojINFippSXNeXwiKKMQ6qZIW1uWMZWFiP2V6hVl FpoEFvID717/KBfkWY9luE4LAtp4t+1EeKs0E8VsIJKuDle9m1OT0emV+Jwap0SOfsaQ 5L9v2LQGSSizYDI8POyYvt50PITtyrAd+JhtW1LK4rNp4wMiSSXFFq3rjlfOGZbynxjB rGZiFqbaRkSDYQrRxPRFcyqlyFTLQmDXLonoDXN63b/Lc6ENRECvSbAhaMZyDXKEPeet Tc+Ny1IIfo9KXjsYfWfLW7JCh4hQhoZ0Bs+VHDcnQwrs1K08Ir+Yu0s4EF4dJ9MvKNy6 aWoQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1WNNMXqv3ctDwG992RJjLS0jvtj9IJbG8t02kMH53LQ=; fh=3HHgEnRLpR/KjogymnDeScY7vM7pzP9crRO4BAxOd6I=; b=KCbcgZSxgGfSr7aBB7UvsUbeaRZB4zRFXR7k6R4bIWye8PeNrOEyeuWUZdJePp/i6b q2DczEWvi0dfCcVGMTBL7csxHAgZZG+tNsA7t+5N2H5GneEIWjG2EJvAOyzvQGuKu3o5 mligB7/XSQv6Q1i1MSOige9K4/3mz1kLbGEZ451+n1QM5cqTFwiTTTq70GSB1D301MC2 zsfqO66OzFZZLhNSq4iiFgxekYudeTZAvPVnQDA79kHKDWv0UsIMLGUzS8U8eqVkEnzS Zr/2D2HUkod6DeSbZPyBmnbXLpjXWg35C7I6TxxsFrzDvU72T6keyvfRwXn3LGdac51+ 8Zvg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B0Spo3rG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-37441-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f30-20020a05622a1a1e00b0042a04d87df3si147001qtb.42.2024.01.24.09.36.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 09:36:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37441-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B0Spo3rG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-37441-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 22DF41C20DEA for ; Wed, 24 Jan 2024 17:35:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F13857FBDB; Wed, 24 Jan 2024 17:33:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="B0Spo3rG" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 157CB7E798; Wed, 24 Jan 2024 17:33:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706117639; cv=none; b=SM5b9KGuTDOWuJvBhLDQYuqH5E4DdOYoO4WYv04H7pXwYIF0nD08nBcfzzgHN1yBG+DEFL/Gu1eOtzviOaqOMucn8Ij/6vqw71QKDZ9j248kH/fcx67xqIQQZebbr5qtlqzJdL3HMcpN/SazfTOu529JsTZZhoVabzuqsr5c5OE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706117639; c=relaxed/simple; bh=F8O1LAlWtzyG7pKBPEZ8OXoCR4xC+gD0cGfc5INvsp4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=h3jMwwyi5VsuDIioakMlAqN/H3q3qUuPXodj4uygpjYp0umlg+JlauraRueSn7Jzi1PN4i41qXr8hD6Tq6S+UWpJe+Aoef+7nrrtFnPs+1fqgwtdAf+F8eTR7BGey1r2r/sYREzd60aajIsGmEw2UH9VMdccOfeDQkDTanxoMC0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=B0Spo3rG; arc=none smtp.client-ip=10.30.226.201 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mzfSYH7PP20o44ht" Content-Disposition: inline In-Reply-To: <20240123125043.27192-1-zajec5@gmail.com> --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--