Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp179083lqr; Wed, 5 Jun 2024 02:44:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXUlVK3U9X4wfgB5hLSMycxyDGLVIeiXv87jHfRg3/wfk1wPDqkQDEbTBBFydxdA7YmfyZdZMoQvanbyscVPROnsW9GQAi41lryEKQLpQ== X-Google-Smtp-Source: AGHT+IHNXLjbSsvQ5zoHhaEJwAR05ibBa/AFkQyrQC4Xzqd9vbMtmDMUZy1H3GbOPhbT8EYb4wB3 X-Received: by 2002:a05:620a:1792:b0:794:eb14:be95 with SMTP id af79cd13be357-795240e153fmr223381785a.70.1717580641725; Wed, 05 Jun 2024 02:44:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717580641; cv=pass; d=google.com; s=arc-20160816; b=cdgJ/2hLgaD84EsNOM4iVwAm+qcRySuoafJaFVY2pdcybMSeiWB2SEa0BqOfQsqHjo xH8xihjyqMHq7srBe3++C7eJTNZVs8FdrecB3LgJBLR1WTvfPbaH7f68M1alholrXrn1 N3/PJ4REj7Y71AgViEk5u1oHr8zxX4+WtPoSPMjDxa6E3LSp7rUeoXbZfvSw6RgDGIXz YjFd1NkijvzTMgVML74I+9iqm2y1w5TzPXjsa4t8oxFFFlrgWd7OsfJ4L08URdgASl4B 9Knzs+LFOnsHhhtVozf6QP3y7rqblTJ8UFlzMqMFudUqafZP3GnogfyPoemv73OHVqqL dArQ== 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=ftRQbH4WicPUfKz854Xb+Om1FETcdEVVljV/Kl9PKnI=; fh=poeBCAdDVVSNdaYWZ6ENm9tys+qiF7KxDjbp4bhcVhQ=; b=RqiXKRdGZMj4cqV/+1cLUH88OsC/La634HQNhwVhKUPpu752xAn1fNSAq3UpER/AF9 fbM5PlMn2VeTA/1I3rL+dMkia/N/QKphTzYM7FbLY/fY2aYUu7CAQ9AYTzJs2uXoQ4OG AOUXtkXGrXTx8+Z0fJ9ShTaPVvldCaO/JdeaNoausFOsMgMDPqaVulQIlxB4M6dkWy6B y861cSgry1kPA7cdcitT+otUkfO2JmTtcWRVl4lKggwfdA9Bob1CQxaZLakvFvnt/u6N jancU5Kzm7OZllQgARyeJnnGNaZJ+e8EIOHzL9JsKbqsYqVR28DG/EbRyRnQoyvUUCGa PVyQ==; 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-202137-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202137-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44029ae962esi18837841cf.781.2024.06.05.02.44.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 02:44:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202137-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-202137-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202137-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5B03B1C222E8 for ; Wed, 5 Jun 2024 09:44:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16D14190079; Wed, 5 Jun 2024 09:42:56 +0000 (UTC) Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.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 75F0518FC95; Wed, 5 Jun 2024 09:42:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717580575; cv=none; b=kgg55ZrqZOoWWDte8tnweJ7U8vIqNgdLMkgnu/oPTMC4p6ZYea673YfNZg/JOLwSoBh9njglIBxJRb2/XhdEgaezyRmWE97dnz7E+eth/0hMY7U9v1CtrBL3+qRsJ1Y/rcdrTT7M2y+y5o6VULuIFcOz+3mXEZei1+pKskdYL5U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717580575; c=relaxed/simple; bh=bpuw88h7/ULwUncE97Dy+1F31l30KUzHngnfz7u0Tpc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=FQ36QZrDxWU65HwDywFQ5IQjiCZMU5740Bw2Ox1R9WdurUFy6+/249Dq1yJ00CLH+EYFV0bsEJ4kVZ/DGW6HWTQ6Ll5m8z3sImVHU4CEU8z99xswybOC81x4K6aGMHV4XNdgnaYZL0Pud7qxONGh9KNmhJaBxWza2mvhAr3aiGw= 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.219.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-yb1-f174.google.com with SMTP id 3f1490d57ef6-dfa8427f22dso4837950276.0; Wed, 05 Jun 2024 02:42:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717580572; x=1718185372; 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=ftRQbH4WicPUfKz854Xb+Om1FETcdEVVljV/Kl9PKnI=; b=jYuP8QDvKvsL1D+fA8KXM4RKotM7Z6uBMljnpu0kHRtTBnaT+oOjYuest54w/BzcS2 jKG4xMsMSr30qDb3tjbT2IAAagZz88PodUdCQkSbmU1F2x/ZoactMgJRDNDatp3KYR6H h4mZWdKuGz/TlFQEWcuNmNJccuEdUvbt1s3PEZKqB9x39A3x7jmqpApmA4qMqT03S6JU ZLi1KPGLw32tPXYTb8Va+rGfdKquphLhGJhq0pwnzTkCLsQBJpPTAbPvO7OCHJoSQCSi O4WlOLZM4G2x7XW13idBjD4TSJerpkuCasSaHg6Ir40SzSu+32NnrzcFDB+QHy8pgpvF 9BlQ== X-Forwarded-Encrypted: i=1; AJvYcCVNgrCVXKndsGZtG1LizbHoazfV9wcecKtZ3SPR7QhrJA/DsipjA84bNq1BJONaNCbh/aGqRYn8gH3/yVqMQUHo+J0DV9qfuz8cr2KAvqw1NjadWpjQ2Ownk6YcHHEMzf+zEafuf7oPwRStq4F30gMAbLqbEq3ZN0rtDu1zvJAPRQmVRKIr724zc/T3dKZ1phfnJ+NiJFoOYJUiDVOhDglDrtxq90S7 X-Gm-Message-State: AOJu0YwFkyu/+SemEtYaTqh6b9EQADVORIFH1l+Dl/Na1UBOdVFT4NIu ysfHP2vVc+eE11LcbbogFJ8W4qRcSyIvzBVpBD9y8SwFATWbDpStEcUjxO2q X-Received: by 2002:a25:902:0:b0:dfa:6c81:acd0 with SMTP id 3f1490d57ef6-dfacad25f21mr1814224276.60.1717580572063; Wed, 05 Jun 2024 02:42:52 -0700 (PDT) Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com. [209.85.219.180]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-dfa76af2e49sm2448613276.23.2024.06.05.02.42.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jun 2024 02:42:51 -0700 (PDT) Received: by mail-yb1-f180.google.com with SMTP id 3f1490d57ef6-dfa5b9274feso7170589276.2; Wed, 05 Jun 2024 02:42:51 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUKpeev8nQQeuuirugjBNac6bAsnnLMOH1KPz7xfd1Jdgo/0AFH6Qllf2PUNeqdQxkPNs+6C+o8SD8bUqxjZr1k2dlU5i2+fBa5Ly5fWm8PzQxb8xX+ugmx9goIw6SrdnBkzBQCfsm/dqQAHWVcuxcnQCLL3AmtRFljMXodaiDqbGlLvW/E38NXtIgnpv+erdcyKRsRK+pKH9thkEyDEDAT/nvZkDji X-Received: by 2002:a25:ac09:0:b0:df4:eb0b:8fc with SMTP id 3f1490d57ef6-dfacacff985mr2036937276.43.1717580571709; Wed, 05 Jun 2024 02:42:51 -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: From: Geert Uytterhoeven Date: Wed, 5 Jun 2024 11:42:32 +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, On Tue, Jun 4, 2024 at 5:49=E2=80=AFPM Geert Uytterhoeven wrote: > 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 > > Clock Pulse Generator (CPG). > > > > CPG block handles the below operations: > > - Handles the generation and control of clock signals for the IP module= s > > - The generation and control of resets > > - Control over booting > > - Low power consumption and the power supply domains > > > > Signed-off-by: Lad Prabhakar > > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/clock/renesas,rzv2h-cpg.yaml > > + > > + '#clock-cells': > > + description: | > > + - For CPG core clocks, the two clock specifier cells must be "CP= G_CORE" > > + and a core clock reference, as defined in > > + , > > + - For module clocks, the two clock specifier cells must be "CPG_= MOD" and > > + a module number, as defined in . > > + const: 2 > > I understand this will be changed to 1, the clock number? We typically come up with our own definitions in header files if there are no suitable module numbers listed in the hardware documentation. For RZ/V2H, you could use a combination (e.g. concatenation) of the column (register) and row (bit) numbers from Tables 4.4-14-19 ("Specifications of the CPG_CLKON_m Registers") and Tables 4.4-22-25 ("Specifications of the CPG_RST_m Registers") as the clock resp. reset number, like is done on R-Car Gen2+ SoCs (see MOD_CLK_PACK() for conversion from sparse to packed module numbers). Gr{oetje,eeting}s, Geert --=20 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