Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp142966lqs; Thu, 13 Jun 2024 06:25:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWUUj6raOnqMxmYHl0+jzMS4C09/wEPxxmzHtPJWOAr2VlGK7Aoc+ma0Ak65oIO9/CkNljQ0nRnrbhrj6ky0nIKWJrJefyPzAkww/3Vew== X-Google-Smtp-Source: AGHT+IH2dNOu2xLKOwXTWkc9WwryXsR2f1JCGU0iS7LnGwuB5pX2L626gbA6vLG2C8rsG/EhjXl8 X-Received: by 2002:a17:90a:6506:b0:2c4:aa15:8a33 with SMTP id 98e67ed59e1d1-2c4bd8bc97cmr4033347a91.12.1718285132383; Thu, 13 Jun 2024 06:25:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718285132; cv=pass; d=google.com; s=arc-20160816; b=VdCKt90kiMGCAOgugl+ck4MyviQvaCI8y80zN0aL7g3KV7BvSG8+SeALIVeW4W0P9m lbi/KNTN2HyrXyT9wqX+jAkYm8d47ZCqBjFd8+s9OD4elx1c6eWe0tjxwJzSyvorsqje bMarkxZrzw9xv85hECb2QSx2XTrV+9WNt1sK/iiMLmIGl/3r3zrg4K5Fr/XVU8aTmjKI NAyrThAGPwqbkYGVuZ9sX+qFuxSIVf1iZ8Nbxddx67QVLNxYS4iT+N9FARiWTDof9Sv6 B8BdLk2bnCaEy7FMXEhnkX7Gxp4HaWRWSY3GcRYam7J5HXOT7K+QM2SXU925uvGyhT0v zIxQ== 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=iszYa+UCh10OLcgcHtdQhC/D12EP4da947eBZIjB0ss=; fh=gDs4aQYeO5a8WzUF/o6C1yXWjt0Eyqastp9VEKM0vCY=; b=oA13/LRzHi/gfbGzh6FvGEe2Mp3bSLH6OC8rFUlqOwAr69vMjYdyAPyaBoORoxc49s kpPeRnP644EXyFgwkbVc0+XUc60ErPg9PIEFHA+qKxJZkug0fE9orJEWppC2+AyuaoS9 cW9nWo3DIgqTKp9YD44UoRZYnJCYVGsh0278si1IbKTgvGgJsEF5qYJWRAqz4clVADJW 9eBIErxPYE5/9+cdWvSvYVJQ+P2dUgtKgBeC/LSEaN86ifUnOA/u24FnLqEaALSNpz47 eRkAkh3iBHknd0rifdg9R+dQKNOjELIcdx7zv00YU00BinBf8XNuRzH4xbJtsxzJXKAZ etAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tLmPKkO9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213244-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4baee063asi2227984a91.1.2024.06.13.06.25.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 06:25:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tLmPKkO9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213244-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E576EB29160 for ; Thu, 13 Jun 2024 12:57:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2D791428EF; Thu, 13 Jun 2024 12:57:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tLmPKkO9" 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 F022A137914; Thu, 13 Jun 2024 12:57:20 +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=1718283441; cv=none; b=MHJN00Bb0ZrhoAdWqaOOWsDg44TQSEzgVZhpbvq9ZgxKl/2brB2P4uVfv9JsymVXgnvEAZEEn5iwsU9GYU+o0E6yk5S7pi0EvXOjK2+I9VY6KcSdI9gyFFKMR8yCeQRXgR6yW1GbIt6O8InNgPfhOiyUyYexcUY/LNGUnx1JDl0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718283441; c=relaxed/simple; bh=yJAjOAQqBQNR36htT0ttCgoovM3gVryXsetYt+hNFgA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=R6fpb9QaPvkt7qx3HxVvLk/wY5une2ZAWW+2af9N8t+G029PYdzIlXW34LxsbwSWqTjXT/gP/xPjb+yg54fpYV4aaD8w9HFcdsOcsek6+Pt/ztnL04bGyAaI9/qoFDxrmZROUkPJNUzZEe9tzLDaAm+myWvcA9XgVWmJcIUK/8A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tLmPKkO9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E968C2BBFC; Thu, 13 Jun 2024 12:57:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718283440; bh=yJAjOAQqBQNR36htT0ttCgoovM3gVryXsetYt+hNFgA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=tLmPKkO9pnmCOYV8Bhu+mFLOcaWe39ZS/mvEBn/wxczbnqBYt9cHbft4HRNFG6Fqy FFWa6P7eIJYG8Vq4lFnxQkm2z1X7ItxiPPIXJo3fstVyeEFaRYb0IK5D/430vmvv69 QrANsUkL5RYhpxovbAfMMxx7cu01kcX8D8iFGKNE26OuxCTqLn2WmIdM397mxQUYEF lpZZqrf1EbD88xHJp+QP86tFS1/MLmdCHW/IcKCkGhWs3NZ2gbeK3N9LM9dk0IwIcG aV9h3O9FRqfx5PnOiu44UCL+tLo0/ozH8YNI5JcAIQ/1lf5+lrhJlcIh5AozrT12RU ISbq2jFXva/xg== Message-ID: <20438973-d7a1-427f-a2ed-5c5b9f7db872@kernel.org> Date: Thu, 13 Jun 2024 14:57:13 +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: "Lad, Prabhakar" Cc: Geert Uytterhoeven , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 References: <20240610233221.242749-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240610233221.242749-2-prabhakar.mahadev-lad.rj@bp.renesas.com> <34b21e6f-0896-4691-9b66-d06ef2f44905@kernel.org> 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 FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX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ZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 13/06/2024 11:53, Lad, Prabhakar wrote: > Hi Krzysztof, > > Thank you for the review. > > On Tue, Jun 11, 2024 at 8:02 AM Krzysztof Kozlowski wrote: >> >> 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. >> > OK. > >>> + 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? >> > It will be used for blocks using core clocks. > >>> + - 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. >> > Are you suggesting not to differentiate between core/mod clocks. They > are differentiated because the MOD clocks can turned ON/OFF but where > as with the core clocks we cannot turn them ON/OF so the driver needs > to know this, hence two specifiers are used. Every driver knows it... I am really, what is the problem here? Are you saying the drivers create some unknown clocks? Anyway, that's not an argument for bindings. Fix your driver design. Best regards, Krzysztof