Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp457619rdg; Thu, 12 Oct 2023 10:18:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGUS3CLaJHuERvPJULlGbkEf4h7eeo8ojJ2sMvBV+3EjBDeIBVRvL8dismNqe+hMLHHJQ+K X-Received: by 2002:a05:6e02:1084:b0:352:a73a:16f5 with SMTP id r4-20020a056e02108400b00352a73a16f5mr21287383ilj.18.1697131123410; Thu, 12 Oct 2023 10:18:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697131123; cv=none; d=google.com; s=arc-20160816; b=fHg+7i3zcNHDl7b//W2RtM7wfDiA722drqOQTu5VDE+sFFkA3Iudse4UvIJbsawXw3 86hJqbn+dJgHQn4PV79OkOZ0v1FILetAQtPD/QDYFrl4h3EX/KQ85+vAkhXgSRVMa4AW TAuVgJXA1uofOReg8aKU0ZgZLeKs2DHtX6wk7dhMTY6A2j2WWNmz2ujRQvY5DVMe1cQu u6eL5NZa4dSQKTurmfm5bQlN5pr/Ql+0kdl3vSUHl44F32+F/Iv1n5xhaTrs5mnrkj0q hGPk4xQrqd9dw9uzQf2jNY03KW0yPA2UfPpiUbcL7cr2q59sxN2D/X+UrKfGi9FPYizh cG2A== 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=LFyR1DTyZvRXjwUWNGOuSQSqQOnajWahGrHYUpR5NCM=; fh=eWqMpO/oIbm/5W4OI4srnpBlYb0AArVUUywC53xgg8k=; b=InjHKgZciOFkso8W+JZOzQT60Z58YB+Bf2Jmqp5oAuLJXggM5OlRdVRNCx9/k3wWxv 4ap2BTqDiB00220W8b6Ib2sbz1QzB/A22mh/fWdvnK92A3Easjse0xzObSCw7r4MVC22 TYiXiH77JWmRWdTmObgPyAdhbp+snUYv0l+ea6dNtXkFHDK5QjoY7+8BME+X5ODq8keM pGypD7flYpuH5FGETMWTF/UNuHa8seOhwnIzmgFuUUqlEqC2UWvX6Sksu4RKcmdRExR/ 3D8+5O/J229VxFA9UzAya52/m7MpKSM37jZMnzIdS+pPxRa9ovWJXiLaH7aCyYiREhSF uj4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kl8LkNA5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id g26-20020a63111a000000b0055b731aa9adsi2724457pgl.562.2023.10.12.10.18.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 10:18:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kl8LkNA5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E0A7E819D703; Thu, 12 Oct 2023 10:18:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379549AbjJLRSc (ORCPT + 99 others); Thu, 12 Oct 2023 13:18:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344077AbjJLRSb (ORCPT ); Thu, 12 Oct 2023 13:18:31 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A952CBB; Thu, 12 Oct 2023 10:18:28 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13BACC433C7; Thu, 12 Oct 2023 17:18:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697131108; bh=8WQ9WakSvt0JZ1o1r9TPQaTSax9+Eye313WbhUWk1EQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Kl8LkNA5ef1H6uTBtWbtzIF1HUfk2o9uojzT2FId2a0LPq4wUbg5HLCCBup4tqfg3 MgfZd3BZLPSnF4AYYvsuiwsHT4fnhks+zBnlj89BPB/jmVRJKNegXtoLVwhGK44Tqt IrmI9JAz96wnyYR3HK2KZLH/j/t68ZgSAMlBN6sE0vymx/6uA+jfs3CEPKeqfZTYlO 8dLFdcN5bD5MvkuTn+vOS7lXjuVuYE5rpDjmKjEhMF8WfRqSmPmVQQcb0GY8+zokJH wKTPe0+CblOGkNsXx97tn/lnGjiL4tHnnwQ+vidKTT4MSnrEnvOpm7825WAoQFTdbK KSfPvXbTIq/WA== Date: Thu, 12 Oct 2023 18:18:23 +0100 From: Conor Dooley To: Nik Bune Cc: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, skhan@linuxfoundation.org, stwiss.opensource@diasemi.com, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [v2 PATCH] dt-bindings: watchdog: da9062-wdt: convert txt to yaml Message-ID: <20231012-flaky-humvee-0a0532621940@spud> References: <20231010211439.98458-1-n2h9z4@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rTv/DG15mkuu5z6g" Content-Disposition: inline In-Reply-To: <20231010211439.98458-1-n2h9z4@gmail.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 12 Oct 2023 10:18:40 -0700 (PDT) --rTv/DG15mkuu5z6g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 10, 2023 at 11:14:39PM +0200, Nik Bune wrote: > Convert txt file to yaml. > Add a mainterner block. Took a value from dlg,da9063 PMIC. >=20 > Signed-off-by: Nik Bune > --- >=20 > Changes in v2: > - Updated filename to be equal to compatible value. > - Removed ">" in description fields.=20 > - Added optional properties to the example.=20 > - Removed reg property, as it is not present in the txt version.=20 >=20 >=20 > .../bindings/watchdog/da9062-wdt.txt | 34 ------------- > .../watchdog/dlg,da9062-watchdog.yaml | 49 +++++++++++++++++++ > 2 files changed, 49 insertions(+), 34 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/watchdog/da9062-wdt= =2Etxt > create mode 100644 Documentation/devicetree/bindings/watchdog/dlg,da9062= -watchdog.yaml >=20 > diff --git a/Documentation/devicetree/bindings/watchdog/da9062-wdt.txt b/= Documentation/devicetree/bindings/watchdog/da9062-wdt.txt > deleted file mode 100644 > index 354314d854ef..000000000000 > --- a/Documentation/devicetree/bindings/watchdog/da9062-wdt.txt > +++ /dev/null > @@ -1,34 +0,0 @@ > -* Dialog Semiconductor DA9062/61 Watchdog Timer > - > -Required properties: > - > -- compatible: should be one of the following valid compatible string lin= es: > - "dlg,da9061-watchdog", "dlg,da9062-watchdog" > - "dlg,da9062-watchdog" > - > -Optional properties: > -- dlg,use-sw-pm: Add this property to disable the watchdog during suspen= d. > - Only use this option if you can't use the watchdog automatic suspend > - function during a suspend (see register CONTROL_B). > -- dlg,wdt-sd: Set what happens on watchdog timeout. If this bit is set t= he > - watchdog timeout triggers SHUTDOWN, if cleared the watchdog triggers > - POWERDOWN. Can be 0 or 1. Only use this option if you want to change the > - default chip's OTP setting for WATCHDOG_SD bit. If this property is NOT > - set the WATCHDOG_SD bit and on timeout watchdog behavior will match the > - chip's OTP settings. > - > -Example: DA9062 > - > - pmic0: da9062@58 { > - watchdog { > - compatible =3D "dlg,da9062-watchdog"; > - }; > - }; > - > -Example: DA9061 using a fall-back compatible for the DA9062 watchdog dri= ver > - > - pmic0: da9061@58 { > - watchdog { > - compatible =3D "dlg,da9061-watchdog", "dlg,da9062-watchdog"; > - }; > - }; > diff --git a/Documentation/devicetree/bindings/watchdog/dlg,da9062-watchd= og.yaml b/Documentation/devicetree/bindings/watchdog/dlg,da9062-watchdog.ya= ml > new file mode 100644 > index 000000000000..9b7ffdb01da0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/dlg,da9062-watchdog.yaml > @@ -0,0 +1,49 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/watchdog/dlg,da9062-watchdog.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Dialog Semiconductor DA9062/61 Watchdog Timer > + > +maintainers: > + - Steve Twiss > + > +allOf: > + - $ref: watchdog.yaml# > + > +properties: > + compatible: > + enum:=20 > + - dlg,da9061-watchdog > + - dlg,da9062-watchdog > + > + dlg,use-sw-pm: > + type: boolean > + description: > + Add this property to disable the watchdog during suspend. > + Only use this option if you can't use the watchdog automatic suspe= nd > + function during a suspend (see register CONTROL_B). > + =20 > + dlg,wdt-sd: > + type: boolean This property is a boolean... > + description: > + Set what happens on watchdog timeout. If this bit is set the > + watchdog timeout triggers SHUTDOWN, if cleared the watchdog trigge= rs > + POWERDOWN. Can be 0 or 1. =2E.. but you say "can be 0 or 1". Does this refer to the bit value, or the property? There are no in-kernel users of this property as far as a quick grep shows so it is a bi hard to tell. Otherwise, I'm happy with this. Thanks, Conor. > Only use this option if you want to change the > + default chip's OTP setting for WATCHDOG_SD bit. If this property i= s NOT > + set the WATCHDOG_SD bit and on timeout watchdog behavior will matc= h the > + chip's OTP settings. > + > +required: > + - compatible > + > +unevaluatedProperties: false > + > +examples: > + - | > + watchdog { > + compatible =3D "dlg,da9062-watchdog"; > + dlg,use-sw-pm; > + dlg,wdt-sd; > + }; > --=20 > 2.34.1 >=20 --rTv/DG15mkuu5z6g Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZSgqXwAKCRB4tDGHoIJi 0ggqAQCkoZx9c6Yh77TrRv7mNju5mBSXOD4Jza5NVnKIvTQlxAD/Tquzix7jblNL /bhL9kUfDSrutdB3WihQbqRy+mYzuQ4= =tJk+ -----END PGP SIGNATURE----- --rTv/DG15mkuu5z6g--