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 749CBC4828F for ; Sat, 3 Feb 2024 16:19:01 +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=JSiCNdEwrQvq/JThAZf67pzIkPHg7kaIp8m2C5WC8P0=; b=MqQW4xmXgL08HITEE6h+IDpYcE F2qVpiVaBMmOga38KYZgmbkx81YjuBoVziPHECSQa7rkpB3terILDTUQ+DKJjZYw5eprGnEe63yJu 8aZIXBotuwcTTei/zIufL9gNy/2vlHYhaNv/lh5d3ME5bJic1d0jLyDTNfZu6HmiISHXPKoXWCB+8 ENGt00+VEXmmsWPi5Byu8OdjdPpQ2UGh9X0J96tVkQa4XgLIn9FPyYP8sTOWbx29KTxpwhlv5TDSy MsZNYNi5r8CkbpBkjhAOgDJuQobrUOg5Grijs9RS+fPsDBdHpTs6cp702iZnWCOhvgbmtnEMF863A aA4BoWNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rWIj9-0000000GnDP-1Y5E; Sat, 03 Feb 2024 16:18:47 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rWHfU-0000000Ggey-1joR for linux-arm-kernel@lists.infradead.org; Sat, 03 Feb 2024 15:10:57 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id CC54760A1C; Sat, 3 Feb 2024 15:10:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C22AC433F1; Sat, 3 Feb 2024 15:10:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706973055; bh=iy/JXt4YE+LvE7ZBENrUKrSe66OESfhfmI4kfMKbZdg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D4ggV+2fVNA7zZ+az+2oGX/YCywj28jC/1ND4uni1aX7nbK4j7+oWYVBroFXWe9bD 8qdudMp6raF2CJygLhh6vP841SKkX3u2EYf2Vdb8rsGNLzeSMA87m4LdzPqsIFepXC jRYOXF4Spn7NSwMO30KXkTfoCeSKziJFu4dehTcdclfLzhuz/Wh1r4c1l9D9cPpHKJ A/AlG3NmlvUq47aA96SIvYR4bvltcjL1/d96RFPB/+vin7n0eJ1b3CAN1Y0YwLnod4 z414w30LDy8kWE2hWuCq47Npv5USozUMDJXWa7l3/C9B3/FmVQZkmNRXU341APEUkf GMs9A7oz0v5gQ== Date: Sat, 3 Feb 2024 15:10:50 +0000 From: Conor Dooley To: Josua Mayer Cc: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alessandro Zummo , Alexandre Belloni , Yazan Shhady , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org Subject: Re: [PATCH v4 2/5] dt-bindings: rtc: abx80x: convert to yaml Message-ID: <20240203-tummy-egomaniac-5aba55889a83@spud> References: <20240202-add-am64-som-v4-0-5f8b12af5e71@solid-run.com> <20240202-add-am64-som-v4-2-5f8b12af5e71@solid-run.com> <20240203-prolonged-backfield-c659e0016d70@spud> MIME-Version: 1.0 In-Reply-To: <20240203-prolonged-backfield-c659e0016d70@spud> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240203_071056_571245_D3950D09 X-CRM114-Status: GOOD ( 26.83 ) 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="===============0951380913688738027==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============0951380913688738027== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HClS5m0LnfolVLZL" Content-Disposition: inline --HClS5m0LnfolVLZL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 03, 2024 at 03:08:59PM +0000, Conor Dooley wrote: > Hey, >=20 > On Fri, Feb 02, 2024 at 05:10:49PM +0100, Josua Mayer wrote: > > Convert the abracon abx80x rtc text bindings to dt-schema format. > >=20 > > In addition to the text description reference generic interrupts > > properties and add an example. > >=20 > > Signed-off-by: Josua Mayer > > --- > > .../devicetree/bindings/rtc/abracon,abx80x.txt | 31 --------- > > .../devicetree/bindings/rtc/abracon,abx80x.yaml | 74 ++++++++++++++= ++++++++ > > 2 files changed, 74 insertions(+), 31 deletions(-) > >=20 > > diff --git a/Documentation/devicetree/bindings/rtc/abracon,abx80x.txt b= /Documentation/devicetree/bindings/rtc/abracon,abx80x.txt > > deleted file mode 100644 > > index 2405e35a1bc0..000000000000 > > --- a/Documentation/devicetree/bindings/rtc/abracon,abx80x.txt > > +++ /dev/null > > @@ -1,31 +0,0 @@ > > -Abracon ABX80X I2C ultra low power RTC/Alarm chip > > - > > -The Abracon ABX80X family consist of the ab0801, ab0803, ab0804, ab080= 5, ab1801, > > -ab1803, ab1804 and ab1805. The ab0805 is the superset of ab080x and th= e ab1805 > > -is the superset of ab180x. > > - > > -Required properties: > > - > > - - "compatible": should one of: > > - "abracon,abx80x" > > - "abracon,ab0801" > > - "abracon,ab0803" > > - "abracon,ab0804" > > - "abracon,ab0805" > > - "abracon,ab1801" > > - "abracon,ab1803" > > - "abracon,ab1804" > > - "abracon,ab1805" > > - "microcrystal,rv1805" > > - Using "abracon,abx80x" will enable chip autodetection. > > - - "reg": I2C bus address of the device > > - > > -Optional properties: > > - > > -The abx804 and abx805 have a trickle charger that is able to charge the > > -connected battery or supercap. Both the following properties have to b= e defined > > -and valid to enable charging: > > - > > - - "abracon,tc-diode": should be "standard" (0.6V) or "schottky" (0.3V) > > - - "abracon,tc-resistor": should be <0>, <3>, <6> or <11>. 0 disables = the output > > - resistor, the other values are in kOhm. > > diff --git a/Documentation/devicetree/bindings/rtc/abracon,abx80x.yaml = b/Documentation/devicetree/bindings/rtc/abracon,abx80x.yaml > > new file mode 100644 > > index 000000000000..405b386a54b0 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/rtc/abracon,abx80x.yaml > > @@ -0,0 +1,74 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/rtc/abracon,abx80x.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Abracon ABX80X I2C ultra low power RTC/Alarm chip > > + > > +maintainers: > > + - devicetree@vger.kernel.org >=20 > Ideally you put someone here, not the DT list. Usually the original > author is a good choice, which I think happens to be the subsystem > maintainer... Failing that, the rtc subsystem list is likely a better > choice than the DT one. >=20 > > + > > +allOf: > > + - $ref: rtc.yaml# >=20 > > + - $ref: /schemas/interrupts.yaml# >=20 > This should not be need. Ahh I now realise what your intent was here. All you need to do is add | interrupts: | maxItems: 1 to your binding and it should do what you're looking for. --HClS5m0LnfolVLZL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZb5XegAKCRB4tDGHoIJi 0sOTAQDffNu5fDfBfG1UVePkzaZdi8iRgQBhHT4P/gogSzFe/wEAomBdnunofNhF 8MSnD1Jd2edeMQIFZbQjOX1p+ITILAM= =QkK0 -----END PGP SIGNATURE----- --HClS5m0LnfolVLZL-- --===============0951380913688738027== 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 --===============0951380913688738027==--