Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2145548rda; Tue, 24 Oct 2023 13:56:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHSwhg++kaF/GGxot19o9H6ymfHXae0oY2krN6YiTdc6RwAIL/ENrOL/K96D29bzL9pfiQt X-Received: by 2002:a17:903:2350:b0:1ca:e16f:a71b with SMTP id c16-20020a170903235000b001cae16fa71bmr7968678plh.23.1698180981523; Tue, 24 Oct 2023 13:56:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698180981; cv=none; d=google.com; s=arc-20160816; b=vK+PgFa0ryHQ4ew5TZlUVYrptDQ2YMG04THEfyab6z8uHWotTOnJla2brgSf9BursY cSrOK9GMkRVtLru74KnpPzSlUh4CSb9CkXazYC0dU4JNSxPNto+7DXxYX4kk/O/+6wrQ nqcEXKuex/CWuQ5aGxJtLplBd7fNPMmLFe4nrBCQwQS4h5p07sFNg6punkl9SCgUgX/C hYPL69orz3agm/yp1HyfzlIi08u/Zal5h8u0ufgDzvpjmG6ICvjpBn7hePZwd3Nstp0c caTpjcK2sqAAKChlUf6yyU7CawBMKc5rgNbrfWxo7Ji76CalxoxDylLBvU3+kBNLyxkI tQBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=YdsC+VFRvEfUM56FQgYznvXwnR2rOdnu72PbP3mIbbw=; fh=6iN4GW/WQEz7ksuuWrsmCKRe9bhW+JF3HSS5GnwSvZc=; b=BKY9DRmPBLPvZ5KH8HvePPMu2vBaxBGiYBlUVO+wJY/+aLt9OT69xN3ZVikeF9j6Bh detP4AW0Qtl/PtpYsvYgkNhwZot2rBT9G6SSOmfIuufhnSzYn5kgiDeFdZoxtFr1bsMc Sugu9AibH+iGoyoxLZ7GAFoVyEFYIngpFHKsZO/InKHw2OvuZaTqFJ67vcv57RQ0LO9c JPF08GT1USt7606E0MLky3Bs6mQF+AmVh3yF1AyKFjnIPrLuiWEHCzUFCrMVLlUtWQsH pAH29/43tg1wGbDaLajlOZlgSryE2ViD6GJBuPs9FPDIcHPR03De8eAWzGXfqbompvCq boXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YZ2w8E6g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id a23-20020a170902b59700b001c9ff840285si9071101pls.414.2023.10.24.13.56.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 13:56:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YZ2w8E6g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7ED0F8087268; Tue, 24 Oct 2023 13:56:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344359AbjJXUz6 (ORCPT + 99 others); Tue, 24 Oct 2023 16:55:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344401AbjJXUzv (ORCPT ); Tue, 24 Oct 2023 16:55:51 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D90BD170A; Tue, 24 Oct 2023 13:55:44 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39OKtOpR128045; Tue, 24 Oct 2023 15:55:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1698180924; bh=YdsC+VFRvEfUM56FQgYznvXwnR2rOdnu72PbP3mIbbw=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=YZ2w8E6g10yzwkwiGBpj0/8BK2mc18+KRKe5ZaTSzpsFjUqKpwweHcpRgX+agqWAR pVJkJL1lQZ4feijGAOF5tupT4s+6wIGy6Jwg2eh7oLR6ylBJrdxDcCdElRafH5Rh4u XTZ/6NRZsprnn7afZLDfJMTt/TEGG9spCaK1+mSk= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39OKtO6r072122 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 24 Oct 2023 15:55:24 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 24 Oct 2023 15:55:24 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 24 Oct 2023 15:55:24 -0500 Received: from [10.250.38.120] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 39OKtNUo002203; Tue, 24 Oct 2023 15:55:23 -0500 Message-ID: <41408db6-89f9-4e0b-b407-96c6c922e8a4@ti.com> Date: Tue, 24 Oct 2023 15:55:23 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] dt-bindings: watchdog: davinci-wdt: convert txt to yaml To: Nik Bune , , , , , , , , CC: , , References: <20231024195839.49607-1-n2h9z4@gmail.com> Content-Language: en-US From: Andrew Davis In-Reply-To: <20231024195839.49607-1-n2h9z4@gmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 24 Oct 2023 13:56:19 -0700 (PDT) On 10/24/23 2:58 PM, Nik Bune wrote: > Convert txt file to yaml. > Add maintainers list, based on the git history. > Mark clock as required property, by reviewer's suggestion. > > Signed-off-by: Nik Bune > --- > > Changes in v2 (according to review comments): > - Added clocks to the list of required properties. > - Updated clocks property to have only maxItems without $ref and description. > - Removed timeout-sec explicit definition, as it is defined in watchdog.yaml. > - Updated maintainers list from the git history. > > v1 patch: https://lore.kernel.org/all/20231021171323.113208-1-n2h9z4@gmail.com/ > > .../bindings/watchdog/davinci-wdt.txt | 24 ---------- > .../bindings/watchdog/ti,davinci-wdt.yaml | 47 +++++++++++++++++++ > 2 files changed, 47 insertions(+), 24 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/watchdog/davinci-wdt.txt > create mode 100644 Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml > > 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 = "ti,davinci-wdt"; > - reg = <0x02320000 0x80>; > - timeout-sec = <30>; > - clocks = <&clkwdtimer0>; > -}; > diff --git a/Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml b/Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml > new file mode 100644 > index 000000000000..4747be98b7d9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml > @@ -0,0 +1,47 @@ > +# 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: > + - Murali Karicheri > + - Ivan Khoronzhuk Neither of these folks will be available for this, you can use me if you want an email that won't bounce for now. > + > +allOf: > + - $ref: watchdog.yaml# > + > +properties: > + compatible: > + enum: > + - ti,davinci-wdt > + - ti,keystone-wdt > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 We also have some instances with an optional power-domains prop. power-domains: description: A phandle and PM domain specifier as defined by bindings of the power controller specified by phandle. See Documentation/devicetree/bindings/power/power-domain.yaml for details. Andrew > + > +required: > + - compatible > + - reg > + - clocks > + > +unevaluatedProperties: false > + > +examples: > + - | > + watchdog@2320000 { > + compatible = "ti,davinci-wdt"; > + reg = <0x02320000 0x80>; > + timeout-sec = <30>; > + clocks = <&clkwdtimer0>; > + };