Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1174930lqb; Sat, 25 May 2024 08:50:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU21ySJgMpoKIC3wjhIaDUZ5enWdM/Nbivn1C/b08PKhXqinJhiKIfqcKAwaRTTmAv9vEGHw7Qf/gyFcnsC0ATC54uJcYW+vlvtQuEnMg== X-Google-Smtp-Source: AGHT+IHJlfrgf97w+3hfzzqspZHaAv5DzJg16IlcgDQBvujgm+fNJxQPQ86Tn/c5Fepm27OeqkZW X-Received: by 2002:a17:90a:c909:b0:2bd:d2f9:a836 with SMTP id 98e67ed59e1d1-2bf5f0122camr4698057a91.25.1716652233803; Sat, 25 May 2024 08:50:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716652233; cv=pass; d=google.com; s=arc-20160816; b=vMzNaDYfBNHu6MBIp6IxKs8uGjOJAsrxy0yxbWp3KGjuRtE+1SW6N5wX+LlJK8avC8 /XpDj926mP7J14u8xZu/exVtxKEmldUReDSZEnVF4iMJQJFfYIJv7QHat6NkhvvPMa1K sV1N2hD7E5ztmfOiDfZP4Q+WmM/OJfw0wWIBDHslm+yEdG9MeiB/5oAOw9CVicWYPX8h 0n5QA/oJSJeuGi961GJ5EBL/+SS0omRNUzBG8EHPV8iHft1JnmVfK6dBgQ7Wza4WYsGV /1JZE+rEc6S+075armrhsGUYfjUqm21K/4j+WGm8qQFCK0soLyi8SQBX+kW0HY9JXqO1 ZvTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=j3RSjPrVkvwKiJQAFbYYUkYqnUp8Rim4isiJFrX4Xow=; fh=mFGeNTNcGqnqvcy3htnmw12IQA9Rc/i8YrPIww7zpWw=; b=yzOkh4ItDU8hGCIrLlAsOszl8wzTInbbE7myatP8u24W4DgvAnALhsuuq0TJChxPRI 7OpP4phlZEt+U9PWcsSXJTXYf+bTMPvqvS+0fNAzjcM3ftey6+cqL2kGX5Cd5gMSRkyu 77kvQLRbdmv/wgHnqB2hmhBYY5aUHSQGPW3DQCT6epvsgmnWbhR9VegkpKppNwk2XW4E rj4gNsboroQOXIu+/8aRxfiL9QTY7VhFbAGPjaTo5H/3MZ9dTkTwEIMGNVDnsY3z0FoR +d+tlVnC6yaG78Ed0G0PBNctCcjZbyB0/Bs7R9ZSTE9kq3WKzWv0pk5XRkUHmOE71COC U4uQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QTzyfmWB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-189430-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189430-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bf5f9cc6b2si3287924a91.34.2024.05.25.08.50.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 May 2024 08:50:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189430-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QTzyfmWB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-189430-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189430-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6DD4A2816DF for ; Sat, 25 May 2024 15:50:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0360484FD2; Sat, 25 May 2024 15:50:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QTzyfmWB" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BFD01877; Sat, 25 May 2024 15:50:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716652225; cv=none; b=ojHzVmbVuodR1npw+89Opss2oKfNz9CFqTjUeeVubT6lJibaWJrxjWV36Z1gcP1MW1RmvwZ7o01jGQ3iLhbuU59Yw35JbdZidcnu/yafDqmsTnee2bk2wmn+GIEZ3siCJM5NjVjrlgbkPNQIuGvg0kPMaxxTI2GW0pwwfoZjPo4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716652225; c=relaxed/simple; bh=vEFLHVjNtQlgF5brmdGsKTnFnwRA9guZrFAtVbbZVcM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FqvvDPs0e/o32SdC6CGtrQQNKRPi5OFYs9L7/k++1IxDraqBuZTnL9vZ3IokJtCVt9u3P/9PX9HR66jXHTK+F46rgHxVTrq4C32q7ac9fQSzQIXNBojkwLXR0ykS8Quebzj1XuosA0j4dmWvJ4VZB731i9vDYwCeS3H5jywnzlc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QTzyfmWB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79266C2BD11; Sat, 25 May 2024 15:50:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716652224; bh=vEFLHVjNtQlgF5brmdGsKTnFnwRA9guZrFAtVbbZVcM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QTzyfmWBMdY17vX/jDE7j0qh0ahmwEg7XjmbIdNxPJBaPYAxnuaOm2kutm8DNhOEq IgrR6hQChy6k4M3B2v9OYp/7BmUAszrTYFSsX/b6e0G6sKxIy012I7usOlfQex5QFl z2hTwFJq3D2P43Qu+aAaoDRm3uZVdBKN6FnAMdzIXVFlELfCTpv7FM/X7sxAkyhP0d VlI56sJc6aLtLDpmhmYpHu3vECznM3oOlh46CSmH2kkEGJR4AzEiYaEo6t8zaFpbzt jFEou3RLL81bc31bBDvK7ZXPjr7lOlPS2TdpMUGB1a/uVJsnFqUW/2jrP+cIXmHOFk EseoNK09Xi7+Q== Date: Sat, 25 May 2024 16:50:19 +0100 From: Conor Dooley To: Prabhakar Cc: Geert Uytterhoeven , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Magnus Damm , linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Fabrizio Castro , Lad Prabhakar Subject: Re: [PATCH 1/4] dt-bindings: clock: renesas: Document RZ/V2H(P) SoC CPG driver Message-ID: <20240525-filling-revolving-307de19dd4c5@spud> References: <20240524082800.333991-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240524082800.333991-2-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="YrfRGz1H/vfng7dJ" Content-Disposition: inline In-Reply-To: <20240524082800.333991-2-prabhakar.mahadev-lad.rj@bp.renesas.com> --YrfRGz1H/vfng7dJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 24, 2024 at 09:27:57AM +0100, Prabhakar wrote: > From: Lad Prabhakar >=20 > Document the device tree bindings of the Renesas RZ/V2H(P) SoC > Clock Pulse Generator (CPG). >=20 > CPG block handles the below operations: > - Handles the generation and control of clock signals for the IP modules > - The generation and control of resets > - Control over booting > - Low power consumption and the power supply domains >=20 > Signed-off-by: Lad Prabhakar > --- > .../bindings/clock/renesas,rzv2h-cpg.yaml | 78 +++++++++++++++++++ > 1 file changed, 78 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/renesas,rzv2h= -cpg.yaml >=20 > diff --git a/Documentation/devicetree/bindings/clock/renesas,rzv2h-cpg.ya= ml b/Documentation/devicetree/bindings/clock/renesas,rzv2h-cpg.yaml > new file mode 100644 > index 000000000000..baa0f2a5b6f9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/renesas,rzv2h-cpg.yaml > @@ -0,0 +1,78 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/renesas,rzv2h-cpg.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Renesas RZ/V2H(P) Clock Pulse Generator (CPG) > + > +maintainers: > + - Lad Prabhakar > + > +description: | > + On Renesas RZ/V2H(P) SoC's, the CPG (Clock Pulse Generator) handles th= e generation > + and control of clock signals for the IP modules, the generation and co= ntrol of resets, > + and control over booting, low power consumption and the power supply d= omains. > + > +properties: > + compatible: > + const: renesas,r9a09g057-cpg > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + description: > + Clock source to CPG can be either from external clock input (EXCLK= ) or > + crystal oscillator (XIN/XOUT). I think this description should be in clocks, not clock names. > + const: extal > + > + '#clock-cells': > + description: | > + - For CPG core clocks, the two clock specifier cells must be "CPG_= CORE" > + and a core clock reference, as defined in > + , > + - For module clocks, the two clock specifier cells must be "CPG_MO= D" and > + a module number, as defined in . Can you please explain the difference and why it matters? Why isn't the unique number for a given clock sufficient? Thanks, Conor. > + const: 2 > + > + '#power-domain-cells': > + description: > + SoC devices that are part of the CPG/Module Standby Mode Clock Dom= ain and > + can be power-managed through Module Standby should refer to the CP= G device > + node in their "power-domains" property, as documented by the gener= ic PM > + Domain bindings in Documentation/devicetree/bindings/power/power-d= omain.yaml. > + The power domain specifiers defined in could > + be used to reference individual CPG power domains. > + > + '#reset-cells': > + description: > + The single reset specifier cell must be the module number, as defi= ned in > + . > + const: 1 > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - '#clock-cells' > + - '#power-domain-cells' > + - '#reset-cells' > + > +additionalProperties: false > + > +examples: > + - | > + cpg: clock-controller@10420000 { > + compatible =3D "renesas,r9a09g057-cpg"; > + reg =3D <0x10420000 0x10000>; > + clocks =3D <&extal_clk>; > + clock-names =3D "extal"; > + #clock-cells =3D <2>; > + #power-domain-cells =3D <0>; > + #reset-cells =3D <1>; > + }; > --=20 > 2.34.1 >=20 --YrfRGz1H/vfng7dJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZlIIuwAKCRB4tDGHoIJi 0n4GAQD921aZa5FY8XO8s+yulU416c2y8te4wVBJ03h/gT9KGQD+ICZ0JYB74irE Twf060MsdzypmYOhBIigNoztmynchAA= =OxST -----END PGP SIGNATURE----- --YrfRGz1H/vfng7dJ--