Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp806506rda; Sun, 22 Oct 2023 10:31:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFAcFY+pm3Z6Zx3QtRTik/Cg6EsoXjguOU1RdeA++nMYKbmJ5qCMT93oO32mOm+Hln+61qm X-Received: by 2002:a05:6a20:2451:b0:15d:fc71:1b9e with SMTP id t17-20020a056a20245100b0015dfc711b9emr5867740pzc.49.1697995864240; Sun, 22 Oct 2023 10:31:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697995864; cv=none; d=google.com; s=arc-20160816; b=b3F6GDV0UhCHFZkOFua4Owmc3AE6tKu+i1DKfAD9I8zmSnvv8sUlyk+kY2T1XeuyI5 bfnm1nS7WUzNWuNshKqdjhqhGEptAqe2E60cndjGNMPkiPqDCEHQiyoK81l22bQ+mHq/ bxYW0JXydso1YNbzmAfLbb+oY+MsXSKy3YS7iVpvLoZ2vTghQuvyYEo7WiEm82zz0BMH Q0K7kVqxU+SouZEBOTdKusG4dNKiNsXrK43VmLszIjlql3GaG7AvK6OdwMBdxwGlbHiA ae4m73Pgw9HTfBt5oPcdqOz4YhuNDAkJWaX5GXpu5nwe+wX1N3K/FucUZMofdmC+z3hy gTTg== 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=BaW4pIgmV53N1Hbe+bVuTi2EBh0IZ2ZRPXZUY/VP9wQ=; fh=IV3SGOfh1yYMR2wcCLEkg3n+UkpLiU/uTX0cv+iv7IY=; b=O6+94gUIXyfil4DTOWC2TaAvWfEuICqdDiiEX5WdxCYct5iKtt3j75AeF3U70iLd5q K08X3o81w5UPWMSZiSQjuzDz92yZhF0gEbb3xQRpJ5Ij8C30UBRBFzCr/7scliDeKWHN LBanTfnHG5vBnIK8ohqm/eFWF3n4Qr3cvHcp/SNV6RCepgfw8XFvYXIC1CQoW0xusDLz 4OIK6PMfc8GlWMP2DpTVLOm9MQTzfY/G0a88w4K1tgJdvN5IZN5sVmILFkEo0CZH/WUL dUZsXZ2bF+onL1CPelYF0P8j5yGS9ihlqaCJhOvfaqNPd1RMuuot6OlWeZoAN8GZyei4 WRLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cAI+Fdqi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id u14-20020a170902e5ce00b001ca8e7953besi5356259plf.497.2023.10.22.10.31.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 10:31:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cAI+Fdqi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 2668E807C868; Sun, 22 Oct 2023 10:30:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232478AbjJVRaM (ORCPT + 99 others); Sun, 22 Oct 2023 13:30:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjJVRaL (ORCPT ); Sun, 22 Oct 2023 13:30:11 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 868D1E5; Sun, 22 Oct 2023 10:30:09 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B516C433C7; Sun, 22 Oct 2023 17:30:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697995809; bh=+cy7JrdQOmAKxt5f/1oHsfduy+/ecpkdk3TsslBEOTY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cAI+FdqiohNObLN8vZFnXApengck5oXzAl/+SYEG5mKg/HGiYc+DR/Z+N1y9OArMq 52RpK8oTCSc8RjZIByTPrPXBs355+Zze/yyrb6EGu6wpK7z/cMK5lPy7fQs67YZ48q RTp98LC7Erz/rDuIvFUByM6QK3SAO2LU8p+mcuthYOTFvXYnrEXFoEq0w7Eochi4rz Bf6kFBclcMktn9ZxCzJWaJD92yV6opUYMIGQJDtWZmjmI44e5qgs7YhSenDGA8vHj/ fYm84jrgHKGvXDp/EIbtz9B/N5F+uwWbwLothAO7IHrERVg7cWcvMxA/GUdoHCmg53 XcBMomOmBR01g== Date: Sun, 22 Oct 2023 18:30:04 +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, baruch@tkos.co.il, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: watchdog: cnxt,cx92755-wdt: convert txt to yaml Message-ID: <20231022-perish-ample-e8c009664a19@spud> References: <20231022120328.137788-1-n2h9z4@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zVdCFydyJvbEUsVE" Content-Disposition: inline In-Reply-To: <20231022120328.137788-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 fry.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 (fry.vger.email [0.0.0.0]); Sun, 22 Oct 2023 10:30:28 -0700 (PDT) --zVdCFydyJvbEUsVE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 22, 2023 at 02:03:28PM +0200, Nik Bune wrote: > Convert txt file to yaml. > Add maintainers list. Took from Documentation/devicetree/bindings/arm/dig= icolor.yaml file.=20 That seems like a bit of an odd reasoning, but Baruch was the submitter for the original txt form binding for this watchdog , per the git history. >=20 > Signed-off-by: Nik Bune > --- > .../bindings/watchdog/cnxt,cx92755-wdt.yaml | 49 +++++++++++++++++++ > .../bindings/watchdog/digicolor-wdt.txt | 25 ---------- > 2 files changed, 49 insertions(+), 25 deletions(-) > create mode 100644 Documentation/devicetree/bindings/watchdog/cnxt,cx927= 55-wdt.yaml > delete mode 100644 Documentation/devicetree/bindings/watchdog/digicolor-= wdt.txt >=20 > diff --git a/Documentation/devicetree/bindings/watchdog/cnxt,cx92755-wdt.= yaml b/Documentation/devicetree/bindings/watchdog/cnxt,cx92755-wdt.yaml > new file mode 100644 > index 000000000000..acd2d30b20f3 > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/cnxt,cx92755-wdt.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/cnxt,cx92755-wdt.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Conexant Digicolor SoCs Watchdog timer > + > +description: | > + The watchdog functionality in Conexant Digicolor SoCs relies on the so= called > + "Agent Communication" block. This block includes the eight programmabl= e system > + timer counters. The first timer (called "Timer A") is the only one tha= t can be > + used as watchdog. > + > +allOf: > + - $ref: watchdog.yaml# > + > +maintainers: > + - Baruch Siach > + > +properties: > + compatible: > + const: cnxt,cx92755-wdt > + > + reg: > + maxItems: 1 > + > + clocks: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + specifies the clock that drives the timer This can just be: clocks: maxItems: 1 as clocks is a generic property & if there's only one clock, describing it is usually needless. Otherwise this conversion looks okay to me. Cheers, Conor. > + > + timeout-sec: true > + > +required: > + - compatible > + - reg > + - clocks > + > +unevaluatedProperties: false > + > +examples: > + - | > + watchdog@f0000fc0 { > + compatible =3D "cnxt,cx92755-wdt"; > + reg =3D <0xf0000fc0 0x8>; > + clocks =3D <&main_clk>; > + timeout-sec =3D <15>; > + }; > diff --git a/Documentation/devicetree/bindings/watchdog/digicolor-wdt.txt= b/Documentation/devicetree/bindings/watchdog/digicolor-wdt.txt > deleted file mode 100644 > index a882967e17d4..000000000000 > --- a/Documentation/devicetree/bindings/watchdog/digicolor-wdt.txt > +++ /dev/null > @@ -1,25 +0,0 @@ > -Conexant Digicolor SoCs Watchdog timer > - > -The watchdog functionality in Conexant Digicolor SoCs relies on the so c= alled > -"Agent Communication" block. This block includes the eight programmable = system > -timer counters. The first timer (called "Timer A") is the only one that = can be > -used as watchdog. > - > -Required properties: > - > -- compatible : Should be "cnxt,cx92755-wdt" > -- reg : Specifies base physical address and size of the registers > -- clocks : phandle; specifies the clock that drives the timer > - > -Optional properties: > - > -- timeout-sec : Contains the watchdog timeout in seconds > - > -Example: > - > - watchdog@f0000fc0 { > - compatible =3D "cnxt,cx92755-wdt"; > - reg =3D <0xf0000fc0 0x8>; > - clocks =3D <&main_clk>; > - timeout-sec =3D <15>; > - }; > --=20 > 2.34.1 >=20 --zVdCFydyJvbEUsVE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZTVcGAAKCRB4tDGHoIJi 0u4nAQDbfwbOCduGR4mJFXl7eEwdSLF3zenXhEc5OBaGfw4rXwD/RcUcNDtbgrK9 h2Ia6oTdJyJ2mf5wa0SlZO72g3zlGwA= =8fe0 -----END PGP SIGNATURE----- --zVdCFydyJvbEUsVE--