Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2463606rdb; Wed, 4 Oct 2023 01:46:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHAGibdXUOAlSt8CxQaCn4FcNCDTtk3p/dz7K1M4uOhVi7u5qHs73H7vNgxVYdMisTQPqWT X-Received: by 2002:a05:6808:3a85:b0:3af:b6ea:2e2 with SMTP id fb5-20020a0568083a8500b003afb6ea02e2mr154777oib.59.1696409207816; Wed, 04 Oct 2023 01:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696409207; cv=none; d=google.com; s=arc-20160816; b=q8AdEsfLzipW7pXzMe11UK4ohbTfVZaz3TUV4tbCypGmynoAct6XUWAWOYRAl1LIIy nQC387BkSZ1upJUeWkb/aZRiBUBCcX0SLqojV9aEVz2kiVIKh6pinbOgjd84apd/xH2s RZV/Edb9VBot321gQQDwsvl7PJa1hzP3FP/TYDkRKQJn44OTkOWr6ksDJcgH5zms8YvF KxgOtBKaegbyC7+4xmzx4G1bIeDQG3LNt2beR9iRCNY0oQpE4r/oTNYoMNVRYzDhQwZT SU6aDpA1cWzxzkgkwvRTpM9YUsyZOUkKX71eJuFnE9K6AklVG3XILf993qroc0shkzv8 /2Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=S9NH+yCz6tgigVWwVavzs82VtIpSt9pvqNyF4O1Jr6g=; fh=h0ui9ha+9HcYmS9uklzEW0ZJ1j34pDNuxEyPi9+DJts=; b=hkkF0xbuS6Oek8sb89vlP999z57RjgPJBO/P1Woav0QpxNDHvzknBRHS9A88SCvM0t DWeHLo0f8ExbnnuWAS4wJ6olqABo0quxBlGUJSNOvKdD8BguROoROqE9b0Fbq45ODUUk lBlGf2kLeDjkPhF90HAvdMV/KdhBqZUENJmog5Rke0Y1A+i0CdnzBNu39GmJnWdexVrX HBVUUhVAbhYujSqvJs5UK6U6Rft9VAjX4Vj87kgsnJ25pURGt5yTapRhRc/Giiy9z6ak 9eUS3vnNlqBcdSPfSwBe524nYH9Yf13IHj3QfD/Xq/7qMhy9ZBTISezL/7codmGuyPIj Jdeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id g24-20020a633758000000b00569161a1885si3153005pgn.288.2023.10.04.01.46.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 01:46:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5553C808BCB5; Wed, 4 Oct 2023 01:45:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241765AbjJDIp2 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 4 Oct 2023 04:45:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241711AbjJDIp1 (ORCPT ); Wed, 4 Oct 2023 04:45:27 -0400 Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73BF498; Wed, 4 Oct 2023 01:45:23 -0700 (PDT) Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-5a1f00b75aaso21367537b3.2; Wed, 04 Oct 2023 01:45:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696409122; x=1697013922; 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=0QS1tAk6LjG5Jt/45jTq2YMqP8RLS9Ds70OkCJABKH4=; b=g7pAN6F3R5XD3TG3mKL7OLhTaUlw46IC8HB771O/OfrO3rI33pfiyVfVQ/GbcmcwYX ygGwETZtjSw3iRTaRsYSJytvJ8xlrm/J0L10Q9MKEpPmNVbNuyeotbsHDA8P17SN4QSY Ii8eo+9zJ660FTVs1dP47TwQAgJzhR+x92tdtCOWCzbgabDo/f0LhmCafoHIPMJdcl4B gqwbXe7MXOjWE2rtZMyFvS0uoYz3frdAFIm76ZUyvSs/JjpwdKJ+/dPxGWkgn1ddlxtc I8mCEbd2gbtmRRVmnG2R2TJkYsjyd9qU1WNNxcWUJZdE2vwbwsw8JDScgCXEkv/uSFfo mayw== X-Gm-Message-State: AOJu0YzKOKY4hwg2taAJZZUdnCwRiOcFDzWRmING+UgtMOrI+S68JA+U U40L3DLkaSSOU1ipISNa6ruonNvzKSZuyQ== X-Received: by 2002:a81:a24a:0:b0:59f:7f8e:dc4a with SMTP id z10-20020a81a24a000000b0059f7f8edc4amr2314373ywg.22.1696409122403; Wed, 04 Oct 2023 01:45:22 -0700 (PDT) Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com. [209.85.128.172]) by smtp.gmail.com with ESMTPSA id d15-20020a81ab4f000000b0057a8de72338sm985000ywk.68.2023.10.04.01.45.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Oct 2023 01:45:22 -0700 (PDT) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-59f57ad6126so21249167b3.3; Wed, 04 Oct 2023 01:45:22 -0700 (PDT) X-Received: by 2002:a0d:fa07:0:b0:591:15a6:c11f with SMTP id k7-20020a0dfa07000000b0059115a6c11fmr1619406ywf.50.1696409121846; Wed, 04 Oct 2023 01:45:21 -0700 (PDT) MIME-Version: 1.0 References: <20230929053915.1530607-1-claudiu.beznea@bp.renesas.com> <20230929053915.1530607-8-claudiu.beznea@bp.renesas.com> In-Reply-To: <20230929053915.1530607-8-claudiu.beznea@bp.renesas.com> From: Geert Uytterhoeven Date: Wed, 4 Oct 2023 10:45:09 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 07/28] clk: renesas: rzg2l: add support for RZ/G3S PLL To: Claudiu Cc: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linus.walleij@linaro.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, magnus.damm@gmail.com, catalin.marinas@arm.com, will@kernel.org, quic_bjorande@quicinc.com, konrad.dybcio@linaro.org, arnd@arndb.de, neil.armstrong@linaro.org, prabhakar.mahadev-lad.rj@bp.renesas.com, biju.das.jz@bp.renesas.com, linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 04 Oct 2023 01:45:48 -0700 (PDT) On Fri, Sep 29, 2023 at 7:39 AM Claudiu wrote: > From: Claudiu Beznea > > Add support for reading the frequency of PLL1/4/6 available on RZ/G3S. > The computation formula for PLL frequency is as follows: > Fout = (nir + nfr / 4096) * Fin / (mr * pr) > > Signed-off-by: Claudiu Beznea > --- > > Changes in v2: > - added GENMASK() defines for DIV_P, DIV_M, DIV_NI, DIV_NF > - used mul_u64_u32_shr() as suggested by Geert on v1 > - s/CLK_TYPE_G3S_SAM_PLL/CLK_TYPE_G3S_PLL/g Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-clk-for-v6.7. 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. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds