Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp199898lqb; Tue, 4 Jun 2024 08:52:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW+/UcuP3kNQIZKcxIQ0kSbm8glMjJjHotEn14c8asWZ8nfnrBEjyVY36qOmGq1pygsd3IRPlfcIqs3y/ZsK3c7btSm+o48hm1qtGafNQ== X-Google-Smtp-Source: AGHT+IFiU/b0+ZrWhT0SyABsZ15a5ACeGwe/BwUgY643Rlr9cCGPoBIRQXqy45mfNci3JXYaXvTY X-Received: by 2002:a17:906:6948:b0:a68:fd49:ab9e with SMTP id a640c23a62f3a-a68fd49ac80mr509809366b.36.1717516351130; Tue, 04 Jun 2024 08:52:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717516351; cv=pass; d=google.com; s=arc-20160816; b=ovLrnMRRPxdeP3va8rxx0W3X/ptP5dQchlMpLV2idVv2qYRpLhlXQU7ZGpyGhr6QQ7 f48kYuUGIb8KRGin6qBqwe0QdJD1eIJ8iPKt3mAz7Tj5ij35Qt8y8WkLI/Rmd4+0gqS7 OxLq37lsLTVD6LPIn5KTSg8tkC6yscWGsRI92BkOoJgLSST6SeYeyZ76gmsGwXKTYKM2 2PIuDd9wC9Zc3vuIK4XfzX899riyRWrXo5pWTBByEKnFAnezEg6UBA84/BdrEdp+lXd2 ByZmUKaKLutTsfv4OechknE1rsB5sE6KS6bEDU8s+yLY7vlGV7WHyn6R4mxhklBAPhSB fu8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=jdl8ZvZjrswfXtiaYupkzfGxYwNns5foQkdy/ZL8qPo=; fh=FK6J0BNdwm3cSwvVk/xwoR0nj+gWEz/YKrfbtfECST8=; b=aEPKItj7n0uJX6Ia7c823DXQ0Mg+MdlHgwYN/IVy33sW8PA1W5f2/ikzye+S+yjljH 1d0MvacHkvj8wL2EQ/uA9tGNB8L/dnAugFiMNc+oeaTFZtCRP2TFW2xftYSW7jyET//r aaDO1R+G2HeLY9Izbs/6kXLuiJCbhr0SV7Vig373wLmAUadotC8v4o6uoiVrUlmgTpN1 +kw1/o8aRB/jYLfN507+Q0xmnYl9aLV5jzatNeq79FqWbO1TXENWRxKcXTDslkEDvmqa IarY5P2Zp6xubIzrBSgKT0xobQ66Z2fjoDzgJGxe+3aLvWTDsMMtUZiuxi47uC9UOEeR 5jfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201006-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a68bdf17bcdsi354514966b.331.2024.06.04.08.52.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 08:52:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201006-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id A899D1F216CA for ; Tue, 4 Jun 2024 15:52:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66AB51474D8; Tue, 4 Jun 2024 15:50:06 +0000 (UTC) Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9705B946C; Tue, 4 Jun 2024 15:50:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717516205; cv=none; b=fwyaWSBWkdb5AwCG1G5QwSu91j9h8kpzA6DLh4zaOHGWBncPkAcTzZgprA050/o1xvZenHELDD2kjBxcJqR0qCs2J/UYVf7RlJGdbGSXe7hs0EDzBguFJBzDtzyfHK9OjjeWl8qRElPIxRKJgmi40NguFMP7D9lIjXvRJMoUVOU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717516205; c=relaxed/simple; bh=H7+KBIj+XhYX0G3IfUFHqSGj8MwKV6m8R2fUal8uXJg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=tvJzJCzyX95MSadzRp3grrJZR0bH4+JFdXmkb1eSB8Kg8JEsNQR6I/FgHdUZAqYYhd+iDS5p6rE1/Mu1EbxG8PQXj/4xoFG5jYY84SAssnjYut/iq8D6n2d5Cc7TEz726ekivz1nZ3CILpWfebTxuU8D6FpoyhVomlTt/JhucZc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.128.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-62a145e0bb2so56137007b3.0; Tue, 04 Jun 2024 08:50:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717516202; x=1718121002; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jdl8ZvZjrswfXtiaYupkzfGxYwNns5foQkdy/ZL8qPo=; b=wYmhmGyGGWLq/08/gzR88hN5vIX3yc0dZeh/7xQ7oYOByUsUX9kbmsj7g1Tlm+J1kz vnBKAnCGp4MrUCsuURXioZ7CUGF+ojcwaOuTgqG+SudP4f7fdOGwRm7zlprQGMgySfzf v6yIX1mfikQTe2k6VU7PM+WsFzE/r8qVJIdLKLOoh3an7jW5D98X36DWYUtGmb92Ve4A np/HLmnqYKxLHvquZfbBRtxVNxGeUzwcGi6I6CnhtRncQ59Q3wavSTZk9nMnbXiXg9Eq L51h/f9xkWVMLfj2hDv+2Yoxl72KDDi8twC/wu2k2MCrTQ6hHGuzxULQvp9kNbN0Wqhl b+JQ== X-Forwarded-Encrypted: i=1; AJvYcCVVCygffeyO6x3p7bO5RVtv/FQ0yXTR49d0SOWQO86YRfsAmpvfjoCMsEadSEFhawmUxdp31+T4ofz+on1ybetiVfuPfh0H7MVkpn7OAPh7N3+mwi6cy12ss3t87S5swtyouz7duASfkntWZAnu2yOdI+N5C/TY39DmZDzF+KTPAdrIunCDGtAJ30zbruYFGgd4TMookiuJvsauSlHZKUp0WdOxAFLC X-Gm-Message-State: AOJu0YzWUWeE+kIHgU/2oUnDsw6q4V9nsrtQbYfMDkFhcnCQ4DLWIHKt WDIv9ASGRu7JazSrFvpI5WOs1ebUvnjol2qxjFjNCrvTYuOK62TZga7JF8+N X-Received: by 2002:a0d:c3c4:0:b0:61b:69f:4c24 with SMTP id 00721157ae682-62c796c3d61mr129326827b3.20.1717516201571; Tue, 04 Jun 2024 08:50:01 -0700 (PDT) Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com. [209.85.219.177]) by smtp.gmail.com with ESMTPSA id 00721157ae682-62c766b42b3sm18788207b3.111.2024.06.04.08.50.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jun 2024 08:50:01 -0700 (PDT) Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-dfa72c9d426so4642166276.3; Tue, 04 Jun 2024 08:50:01 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUL8XHXNeK2j1xUeCJRtS3mY7ARhyo6C99yw8V+WJUFhLvXt2dOIKj+bxMs8QcbElG5N/ASsZI/YvLWuP3zb2IwE5RAv3OV7Lv+ZNF3s/vAYJIN1TEnffG215iN0OYqciIdjYUCfR5AJ5Bnj59qu9T6Ep+HYy5sStym2L1hYXfQMh/nIHgRWxhwaLAzmSiiVtm9fYDPbOLQw1fzM9e6KFXUycfN1LPC X-Received: by 2002:a25:c794:0:b0:df7:c087:579b with SMTP id 3f1490d57ef6-dfa73ddb7famr12853703276.58.1717516200826; Tue, 04 Jun 2024 08:50:00 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240524082800.333991-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240524082800.333991-2-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20240524082800.333991-2-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Tue, 4 Jun 2024 17:49:49 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/4] dt-bindings: clock: renesas: Document RZ/V2H(P) SoC CPG driver To: Prabhakar Cc: 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Prabhakar, Thanks for your patch! Please drop "driver" from the one-line summary. On Fri, May 24, 2024 at 10:29=E2=80=AFAM Prabhakar wrote: > From: Lad Prabhakar > > Document the device tree bindings of the Renesas RZ/V2H(P) SoC s/of/for/ > Clock Pulse Generator (CPG). > > CPG block handles the below operations: > - Handles the generation and control of clock signals for the IP modules Please drop "Handles the" > - The generation and control of resets Please drop "The". > - Control over booting > - Low power consumption and the power supply domains Please drop "the". > > Signed-off-by: Lad Prabhakar > --- /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 SoCs > + 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. Please drop "the". > + > +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). > + const: extal According to Figure 4.4-1 ("CPG Functional Block Diagram"), there are 3 (RTC, audio, main). > + > + '#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 . > + const: 2 I understand this will be changed to 1, the clock number? > + '#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. The latter suggests "const: 1". But the example below uses zero, as does the code? > + > + '#reset-cells': > + description: > + The single reset specifier cell must be the module number, as defi= ned in reset number (or index). > + . > + 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>; > + }; Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k= .org In personal conversations with technical people, I call myself a hacker. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. -- Linus Torvalds