From: "Heiko Stübner" <heiko@sntech.de>
To: mturquette@baylibre.com, sboyd@kernel.org,
sugar.zhang@rock-chips.com, zhangqing@rock-chips.com,
robh@kernel.org, krzysztof.kozlowski+dt@linaro.org,
conor+dt@kernel.org, Elaine Zhang <zhangqing@rock-chips.com>
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-clk@vger.kernel.org, linux-rockchip@lists.infradead.org,
linux-kernel@vger.kernel.org, huangtao@rock-chips.com
Subject: Re: [PATCH v1 1/5] clk: rockchip: Implement rockchip_clk_register_armclk_v2()
Date: Wed, 15 Oct 2025 12:10:33 +0200 [thread overview]
Message-ID: <2271625.NgBsaNRSFp@diego> (raw)
In-Reply-To: <20251015091325.71333-2-zhangqing@rock-chips.com>
Hi Elaine,
Am Mittwoch, 15. Oktober 2025, 11:13:21 Mitteleuropäische Sommerzeit schrieb Elaine Zhang:
> The clock path of CPU may be simplified as follows:
>
> --gpll--|--\
> | \
> | \
> | \
> --v0pll--| mux |--[gate]--[div]--clk_core--
> | /
> | /
> --v1pll--| /
> |--/
>
when introducing new core concepts, please really try to explain the
concept and also in detail why the old code cannot fullfill the new
requirements.
From what I gathered, the main difference is that on the bigger socs we
have one sort of dedicated PLL for each armclk (i.e. B0PLL, B1PLL, LPLL
on rk3588) with the other parents being used as an interim source while
we adjust the main one.
Here the rv1126b (and rk3506) don't have that, but instead can select
from a number of "equal-but-shared" PLL sources.
Is my reading correct here?
> Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
> ---
> drivers/clk/rockchip/clk-cpu.c | 165 +++++++++++++++++++++++++++++++++
> drivers/clk/rockchip/clk.c | 24 +++++
> drivers/clk/rockchip/clk.h | 15 +++
> 3 files changed, 204 insertions(+)
>
> diff --git a/drivers/clk/rockchip/clk-cpu.c b/drivers/clk/rockchip/clk-cpu.c
> index dcc9dcb597ae..a48628e5c095 100644
> --- a/drivers/clk/rockchip/clk-cpu.c
> +++ b/drivers/clk/rockchip/clk-cpu.c
[...]
> +struct clk *rockchip_clk_register_cpuclk_v2(const char *name,
can we please find a descriptive name instead of "_v2"
I guess if my reading above is correct something like "_multi_pll" or so
might be nice.
Thanks
Heiko
next prev parent reply other threads:[~2025-10-15 10:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-15 9:13 [PATCH v1 0/5] clk: rockchip: Add clock controller for the RV1126B Elaine Zhang
2025-10-15 9:13 ` [PATCH v1 1/5] clk: rockchip: Implement rockchip_clk_register_armclk_v2() Elaine Zhang
2025-10-15 10:10 ` Heiko Stübner [this message]
2025-10-15 9:13 ` [PATCH v1 2/5] dt-bindings: clock, reset: Add support for rv1126b Elaine Zhang
2025-10-15 9:13 ` [PATCH v1 3/5] clk: rockchip: Add clock controller for the RV1126B Elaine Zhang
2025-10-16 3:25 ` kernel test robot
2025-10-16 5:20 ` kernel test robot
2025-10-15 9:13 ` [PATCH v1 4/5] dt-bindings: clock: Add support for rockchip pvtpll Elaine Zhang
2025-10-15 10:12 ` Heiko Stübner
2025-10-15 10:39 ` Rob Herring (Arm)
2025-10-15 9:13 ` [PATCH v1 5/5] clk: rockchip: add support for pvtpll clk Elaine Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2271625.NgBsaNRSFp@diego \
--to=heiko@sntech.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=huangtao@rock-chips.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mturquette@baylibre.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=sugar.zhang@rock-chips.com \
--cc=zhangqing@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).