Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp166978lqp; Tue, 11 Jun 2024 00:02:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzP72MsQMSFP6NnbuusXCNNy8uqs/MBGE1Qj/0y0yVyGc5yTGqWsB4+kQcORCF7RKbkbUSDX1XVjJsTJHYZdzVk7MLkWI3PtWDe4pYTw== X-Google-Smtp-Source: AGHT+IFb37WoZdxpADSfZC7DgAy3LJuXmcxhnBsbxuIvbC8E5QEwTNEhn7DiFbfFMfPIasiQmrXu X-Received: by 2002:a50:96c4:0:b0:57c:5b26:46c9 with SMTP id 4fb4d7f45d1cf-57c5b264930mr8266054a12.9.1718089361557; Tue, 11 Jun 2024 00:02:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718089361; cv=pass; d=google.com; s=arc-20160816; b=aYw7Prb0y4r+3O62GSt+nduw5bYwXgeLCDptBu8dalB4GQBiOhI3f9viiI8704Lzom Z5L4z/dXzv9FPxI3zwspXYYfY+PQdbTmS9a0Ng+kQXVcgj2ZvDN/r25jigQ6wR5nru5V XvqD80Er6W4AjTZl0VuGd8RAum98JhHeQhycu1Nao6krsvLz45swj/wj4I7hMboxArIY jC4n38QIEnhgP3Saxq/9lgSn6KyK3QTHqqRl7pztt0yKIMKRatuFlhsgFP+nnw12CY68 iJdm8y3q4tX4M2q+L8y8/3ZLhh1Esrjca8YUvNqOfacTKSo97MLwzHQpuarO2Li6Vtg7 uv6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=QFHJOgkAr/2xfK9ZU7ACpKY49lZite2Uv1yrtko0CAQ=; fh=eLPJEEiySU9av0ggkIu420zCckrn6KmcBwYNwJSsQoQ=; b=t27u+PX+q7ZYWSuvrbUFpzqLruCnoF7UHasAHQr44MlcbiI/jtdtwbHp2gG8FW6jCA F4IFO5lDhb3Tlz+celvNkDPnsw8yTOjFVrjBMAWCEqDDDs0Dhvv4n5xaISb2+kGJY7tN YFQ5qmcFPOIsZzArDj0cZmk9xoUbozFLhjSUZhJLI/FVbmIuoAkA3t5UOJIMRUm1c7e7 fADJk0S8F3fp728EfMOPT//4bVw1qjzwwoLBNP1XvdP03WsCtvOPYxgoEtPRh/vMF5FY zh0zT8qXcHbicE/8adKqPEYP/mAA4xRon9rz7FCzh4p94PuTWzP80evRpiu1Ewxyb4/v FFaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VYqjNd+C; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209356-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 4fb4d7f45d1cf-57c70174e35si3312457a12.71.2024.06.11.00.02.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 00:02:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209356-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VYqjNd+C; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209356-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209356-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 17B941F27249 for ; Tue, 11 Jun 2024 07:02:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8F7B171E7F; Tue, 11 Jun 2024 07:02:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VYqjNd+C" 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 C2CCAB657; Tue, 11 Jun 2024 07:02:32 +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=1718089352; cv=none; b=rNzsrn05+N7qp2at+S6UivXsoNQ/wNoU0tXx5r5sNhP2y3+mNURkwgaBF16grynObWu6EDGqpogkZk76tvqH5igtDRU+HfFw1jwezeH9whlsuHE8yLIekey2OM6DhPvOc59TrfGo/x3xVLuEbT9XAAezwBdAqw4IDjXOBz8XIHA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718089352; c=relaxed/simple; bh=aLoDwbt7IafobJGOE/3b1eLM3mDAudCQ5TjJiv/fgP0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RmO5f/+OAaCJtvLf9SRXBOKs7bRduTpkILwsHFTNuSsn3o6lWDokXbS18pC+EcwtnkiXSFf2dOe4p3WwcRUR9ePIx2j72f+xmj/A7Ls2rSV0e+PYY2RmNS7NYwTL8JW2yb9PeeTcagcp/ztpF4/fooEaTfepTMMZMV7yWP1eap0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VYqjNd+C; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A476C2BD10; Tue, 11 Jun 2024 07:02:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718089352; bh=aLoDwbt7IafobJGOE/3b1eLM3mDAudCQ5TjJiv/fgP0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=VYqjNd+CDxBS1fO0YDPXp+JLHxG9rk1O7Ksq9hPonSnpIre3I9MpDqfBMaWINmoYi 0xfwvnnyPTgxU0QQa2DaRElPzYW+LA0mf0EAaj79ocaCFP5eeAwoxHUI0kEWxN+ns0 ptFeqPu2+43om1eoTOY50z5dCRdUMBJtHodJsxpAaDgUkKXxFVIaWRHfrO5cQZKLyu uQKdskAtGexhrDP8uvldhaBTelTli9syzvq6YO9D/8KPSGA8cyvjbI2a5XQAN7T5G/ igkakk/gVc6k6v+226t6t4mTwdBLwVxhJuNa2s+XjJHIw/mKOtiZ7c/sFkcWDBFF3L tmYC/u/wDhIfw== Message-ID: <34b21e6f-0896-4691-9b66-d06ef2f44905@kernel.org> Date: Tue, 11 Jun 2024 09:02:26 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH v2 1/4] dt-bindings: clock: renesas: Document RZ/V2H(P) SoC CPG To: Prabhakar , Geert Uytterhoeven , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm Cc: linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Fabrizio Castro , Lad Prabhakar References: <20240610233221.242749-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240610233221.242749-2-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl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In-Reply-To: <20240610233221.242749-2-prabhakar.mahadev-lad.rj@bp.renesas.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/06/2024 01:32, Prabhakar wrote: > From: Lad Prabhakar > > Document the device tree bindings for the Renesas RZ/V2H(P) SoC > Clock Pulse Generator (CPG). > > CPG block handles the below operations: > - Generation and control of clock signals for the IP modules > - Generation and control of resets > - Control over booting > - Low power consumption and power supply domains > > Signed-off-by: Lad Prabhakar Since this is not a finished work (RFC), only limited review follows. > +$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: | Do not need '|' unless you need to preserve formatting. > + On Renesas RZ/V2H(P) SoCs, the CPG (Clock Pulse Generator) handles generation > + and control of clock signals for the IP modules, generation and control of resets, > + and control over booting, low power consumption and power supply domains. > + > +properties: > + compatible: > + const: renesas,r9a09g057-cpg > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + description: > + Clock source to CPG on QEXTAL pin. > + const: qextal > + > + '#clock-cells': > + description: | > + - For CPG core clocks, the two clock specifier cells must be "CPG_CORE" > + and a core clock reference, as defined in > + , So second cell is not used? > + - For module clocks, the two clock specifier cells must be "CPG_MOD" and > + a module number. The module number is calculated as the CLKON register > + offset index multiplied by 16, plus the actual bit in the register > + used to turn the CLK ON. For example, for CGC_GIC_0_GICCLK, the > + calculation is (1 * 16 + 3) = 19. You should not have different values. Make it const: 1 and just use IDs. > + const: 2 > + > + '#power-domain-cells': > + description: > + SoC devices that are part of the CPG/Module Standby Mode Clock Domain and > + can be power-managed through Module Standby should refer to the CPG device > + node in their "power-domains" property, as documented by the generic PM > + Domain bindings in Documentation/devicetree/bindings/power/power-domain.yaml. Drop description, it's redundant. > + const: 0 > + > + '#reset-cells': > + description: > + The single reset specifier cell must be the reset number. The reset number > + is calculated as the reset register offset index multiplied by 16, plus the > + actual bit in the register used to reset the specific IP block. For example, > + for SYS_0_PRESETN, the calculation is (3 * 16 + 0) = 48. > + const: 1 > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - '#clock-cells' > + - '#power-domain-cells' > + - '#reset-cells' > + > +additionalProperties: false > + > +examples: > + - | > + cpg: clock-controller@10420000 { Drop unused label. > + compatible = "renesas,r9a09g057-cpg"; Use 4 spaces for example indentation. > + }; Best regards, Krzysztof