Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1190891rdh; Fri, 27 Oct 2023 07:14:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGq6sEvX9WRhdDhNRMcymGSKHBmKRFpQmwD0h1Dri8k2ySMm9TVzH5oc8zndrhcuVz9bSpO X-Received: by 2002:a81:788e:0:b0:5a7:cc14:9e40 with SMTP id t136-20020a81788e000000b005a7cc149e40mr2796679ywc.5.1698416093350; Fri, 27 Oct 2023 07:14:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698416093; cv=none; d=google.com; s=arc-20160816; b=I6dugmV+ndMEgx1YRvglqDgOGFCO1CAkZAYhihumhvn6FEFf8o+rjroKWmqothC7Da RaEroLG79gXbMvJ8r3y+LutRt+ba1infMo4HuT+Itar/Z3PcsM3hQOZzRoT5imeKRO+j 1XmVwEtAbSnFoRGbCfx44wAJgtdx4KH7UbzUbSyuBN0ogO9VtZ69P5lpXvk0WQ39Dr2y qRo+3XCnFiAEhsFVbnc5q/5XpcUGPkJhNsJtVM5C05H31Q4ekXYfXixBn8seA8MY19Uq n6pgbp3GjS0KOR6oYC9ibeH7hdMm7GgWv4HR0fXmTbE+2hJompBq4b4NeMwnDyzB5twB DjQw== 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=L81t42PH5nMOoVg0ktbyahIltXxwK58QsACiL82y/Yg=; fh=cZyWn/7TwfOLc0h9GGZHqge+yAiY9e0d58nc/KEtUDw=; b=wpx6z/sv82ZJgeC75wCbBymV7IHU1vUzZr0hcl2p/OCjryoLJiFnUcU+56mcvsI5/Q g+gh3EknqpyUaM5JX6WnDHKwCLqAM3guUYz5usixdGP57j9L9Y++POCSxrwv1/52e2Q3 7XyutAg+zL+tj/o8kMTiO9PE/MMdWmfPU6EIhjjvYaNmmwOmgbHGkR6LkQdXPGxC385X 8FtRbKIwF5jMstX5pJEe9ACW8Q4rkuADzmhwYUTCeNb08HtsIX+RIUqKU1MAo6hDkgBi urgfSh60EPwh1fkQ50rJw38mkQd5u7zzqx9/6anPWY1z/mnF94vcaCSCov6coGB7vDiD D7Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ecF+1Ji8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id h124-20020a816c82000000b005af98977e68si2764362ywc.216.2023.10.27.07.14.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 07:14:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ecF+1Ji8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id C6DF780965B9; Fri, 27 Oct 2023 07:14:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345998AbjJ0OOk (ORCPT + 99 others); Fri, 27 Oct 2023 10:14:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231302AbjJ0OOi (ORCPT ); Fri, 27 Oct 2023 10:14:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFE4FDE; Fri, 27 Oct 2023 07:14:35 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 667A1C433C9; Fri, 27 Oct 2023 14:14:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698416075; bh=CbkKydCIGPDLCe+45cMey/d5S+QwoAAmRoHQEvlUMtA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ecF+1Ji8+LIiXPTTMg2TTEgHLQikYo4DwWhtqLYOY+dg1Ks1yhSsjdyqwtCW05lFx bI3kg0xCDtfYE648J/YtD8mUqdUjfmWXjwi24yD1SRyGVWDtqJAfKSqXx0ZLFDPfHj fG0lzF8C8WIOV0Ut+lxWhrOVEolZSekD9+iX89XdildENp4i6kKpoctCV5WfNwJKAZ SbOAWvkanZttVglDVm7Pod5lqYoNQUmXm2RknhkWQMJBZKB6tquCCiMjlsou4saRt7 GMGkRZCwXSXfGb8uGPu1berWbIRQMCvm9tPE83sF7+ZpsqoFhLZxQKmUaYKCPWcMub ZGs1XpcIR8JiQ== Date: Fri, 27 Oct 2023 15:14:31 +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, afd@ti.com, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] dt-bindings: watchdog: davinci-wdt: convert txt to yaml Message-ID: <20231027-antennae-aftermath-b11ede90737f@spud> References: <20231026195313.76756-1-n2h9z4@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ixTGx6tVsBXIMcLW" Content-Disposition: inline In-Reply-To: <20231026195313.76756-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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 27 Oct 2023 07:14:49 -0700 (PDT) --ixTGx6tVsBXIMcLW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, On Thu, Oct 26, 2023 at 09:53:13PM +0200, Nik Bune wrote: > Convert txt file to yaml. > Add maintainers list. > Mark clock as required property, by reviewer's suggestion. > Add power-domains as optional property, by reviewer's suggestion.=20 >=20 > Signed-off-by: Nik Bune > --- >=20 > Changes in 3 (according to review comments): > - Added Andrew Davis into maintainers list. > - Added power-domains property. >=20 > v2 patch: https://lore.kernel.org/all/20231024195839.49607-1-n2h9z4@gmail= =2Ecom/ >=20 >=20 > .../bindings/watchdog/davinci-wdt.txt | 24 --------- > .../bindings/watchdog/ti,davinci-wdt.yaml | 52 +++++++++++++++++++ > 2 files changed, 52 insertions(+), 24 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/watchdog/davinci-wd= t.txt > create mode 100644 Documentation/devicetree/bindings/watchdog/ti,davinci= -wdt.yaml >=20 > diff --git a/Documentation/devicetree/bindings/watchdog/davinci-wdt.txt b= /Documentation/devicetree/bindings/watchdog/davinci-wdt.txt > deleted file mode 100644 > index aa10b8ec36e2..000000000000 > --- a/Documentation/devicetree/bindings/watchdog/davinci-wdt.txt > +++ /dev/null > @@ -1,24 +0,0 @@ > -Texas Instruments DaVinci/Keystone Watchdog Timer (WDT) Controller > - > -Required properties: > -- compatible : Should be "ti,davinci-wdt", "ti,keystone-wdt" > -- reg : Should contain WDT registers location and length > - > -Optional properties: > -- timeout-sec : Contains the watchdog timeout in seconds > -- clocks : the clock feeding the watchdog timer. > - Needed if platform uses clocks. > - See clock-bindings.txt > - > -Documentation: > -Davinci DM646x - https://www.ti.com/lit/ug/spruer5b/spruer5b.pdf > -Keystone - https://www.ti.com/lit/ug/sprugv5a/sprugv5a.pdf > - > -Examples: > - > -wdt: wdt@2320000 { > - compatible =3D "ti,davinci-wdt"; > - reg =3D <0x02320000 0x80>; > - timeout-sec =3D <30>; > - clocks =3D <&clkwdtimer0>; > -}; > diff --git a/Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.ya= ml b/Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml > new file mode 100644 > index 000000000000..17c824f2fc7d > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml > @@ -0,0 +1,52 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/watchdog/ti,davinci-wdt.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Texas Instruments DaVinci/Keystone Watchdog Timer (WDT) Controller > + > +description: | > + Documentation: > + Davinci DM646x - https://www.ti.com/lit/ug/spruer5b/spruer5b.pdf > + Keystone - https://www.ti.com/lit/ug/sprugv5a/sprugv5a > + > +maintainers: > + - Andrew Davis > + > +allOf: > + - $ref: watchdog.yaml# > + > +properties: > + compatible: > + enum: > + - ti,davinci-wdt > + - ti,keystone-wdt > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + power-domains: > + description: > + A phandle and PM domain specifier as defined by bindings of=20 > + the power controller specified by phandle.=20 > + See Documentation/devicetree/bindings/power/power-domain.yaml for = details. I think you missed Rob's comment in reply to Andrew, about constraining and ordering the power-domains: https://lore.kernel.org/all/20231026203037.GA327324-robh@kernel.org/ Cheers, Conor. > + > +required: > + - compatible > + - reg > + - clocks > + > +unevaluatedProperties: false > + > +examples: > + - | > + watchdog@2320000 { > + compatible =3D "ti,davinci-wdt"; > + reg =3D <0x02320000 0x80>; > + timeout-sec =3D <30>; > + clocks =3D <&clkwdtimer0>; > + }; > --=20 > 2.34.1 >=20 --ixTGx6tVsBXIMcLW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZTvFxgAKCRB4tDGHoIJi 0g/NAQDyI6k3NfH6Gtz3jrfdKhsERSZfTUEuPaRJugULbfqFNwEArZQ+vTqb22CM WH8KAtU7U7Nr3wFy8r2rpTGo6CGRBQg= =9UY6 -----END PGP SIGNATURE----- --ixTGx6tVsBXIMcLW--