From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Aelin Reidel <aelin@mainlining.org>,
Bjorn Andersson <andersson@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Taniya Das <quic_tdas@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux@mainlining.org, phone-devel@vger.kernel.org,
~postmarketos/upstreaming@lists.sr.ht
Subject: Re: [PATCH 3/4] clk: qcom: Add Global Clock controller (GCC) driver for Fillmore
Date: Tue, 10 Mar 2026 16:15:00 +0100 [thread overview]
Message-ID: <1df08447-0ace-4771-bc1c-b0f8c5d0f9b2@oss.qualcomm.com> (raw)
In-Reply-To: <20260308-fillmore-clks-v1-3-976d9a6bebe7@mainlining.org>
On 3/8/26 1:39 AM, Aelin Reidel wrote:
> Add support for the global clock controller found on Fillmore (e.g. SM7450)
> based devices.
>
> Signed-off-by: Aelin Reidel <aelin@mainlining.org>
> ---
[...]
> +static struct clk_regmap_mux gcc_pcie_0_pipe_clk_src = {
This one's a clk_regmap_phy_mux (see other clk drivers for what to
change)
[...]
> +static struct clk_regmap_mux gcc_usb3_prim_phy_pipe_clk_src = {
likewise
[...]
> +static const struct freq_tbl ftbl_gcc_sdcc2_apps_clk_src[] = {
> + F(400000, P_BI_TCXO, 12, 1, 4),
> + F(25000000, P_GCC_GPLL0_OUT_EVEN, 12, 0, 0),
> + F(50000000, P_GCC_GPLL0_OUT_EVEN, 6, 0, 0),
> + F(100000000, P_GCC_GPLL0_OUT_EVEN, 3, 0, 0),
> + F(202000000, P_GCC_GPLL9_OUT_MAIN, 4, 0, 0),
> + { }
> +};
> +
> +static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
> + .cmd_rcgr = 0x24014,
> + .mnd_width = 8,
> + .hid_width = 5,
> + .parent_map = gcc_parent_map_5,
> + .freq_tbl = ftbl_gcc_sdcc2_apps_clk_src,
> + .clkr.hw.init = &(struct clk_init_data){
> + .name = "gcc_sdcc2_apps_clk_src",
> + .parent_data = gcc_parent_data_5,
> + .num_parents = ARRAY_SIZE(gcc_parent_data_5),
.flags = CLK_OPS_PARENT_ENABLE,
> + .ops = &clk_rcg2_ops,
&clk_rcg2_shared_floor_ops
[...]
> +static struct clk_rcg2 gcc_ufs_phy_axi_clk_src = {
> + .cmd_rcgr = 0x8702c,
> + .mnd_width = 8,
> + .hid_width = 5,
> + .parent_map = gcc_parent_map_10,
> + .freq_tbl = ftbl_gcc_ufs_phy_axi_clk_src,
> + .clkr.hw.init = &(struct clk_init_data){
> + .name = "gcc_ufs_phy_axi_clk_src",
> + .parent_data = gcc_parent_data_10,
> + .num_parents = ARRAY_SIZE(gcc_parent_data_10),
> + .ops = &clk_rcg2_ops,
> + },
> +};
please check for .enable_safe_parent or something like that in the downstream
driver - for all RCGs that have it, use clk_rcg2_shared_ops
[...]
> +static struct gdsc pcie_0_gdsc = {
> + .gdscr = 0x7b004,
> + .pd = {
> + .name = "pcie_0_gdsc",
> + },
> + .pwrsts = PWRSTS_RET_ON,
> +};
> +
> +static struct gdsc ufs_phy_gdsc = {
> + .gdscr = 0x87004,
> + .pd = {
> + .name = "ufs_phy_gdsc",
> + },
> + .pwrsts = PWRSTS_OFF_ON,
> +};
> +
> +static struct gdsc usb30_prim_gdsc = {
> + .gdscr = 0x49004,
> + .pd = {
> + .name = "usb30_prim_gdsc",
> + },
> + .pwrsts = PWRSTS_OFF_ON,
> +};
Your downstream DT also has:
HLOS1_VOTE_MMNOC_MMU_TBU_HF[0123]
_SF[01]
_TBU[01]
that all need to be defined and have .flags = VOTABLE
Konrad
next prev parent reply other threads:[~2026-03-10 15:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-08 0:39 [PATCH 0/4] clk: qcom: Add support for basic clock providers on Fillmore SoC Aelin Reidel
2026-03-08 0:39 ` [PATCH 1/4] dt-bindings: clock: qcom: document the Fillmore Global Clock Controller Aelin Reidel
2026-03-08 0:50 ` Aelin Reidel
2026-03-09 7:38 ` Krzysztof Kozlowski
2026-03-09 14:56 ` Aelin Reidel
2026-03-10 13:22 ` Konrad Dybcio
2026-03-08 0:39 ` [PATCH 2/4] dt-bindings: clock: qcom: Document the Fillmore RPMH " Aelin Reidel
2026-03-09 7:39 ` Krzysztof Kozlowski
2026-03-08 0:39 ` [PATCH 3/4] clk: qcom: Add Global Clock controller (GCC) driver for Fillmore Aelin Reidel
2026-03-10 13:33 ` Dmitry Baryshkov
2026-03-10 15:15 ` Konrad Dybcio [this message]
2026-03-08 0:39 ` [PATCH 4/4] clk: qcom: rpmh: Add support for Fillmore rpmh clocks Aelin Reidel
2026-03-10 13:26 ` Konrad Dybcio
2026-03-09 10:57 ` [PATCH 0/4] clk: qcom: Add support for basic clock providers on Fillmore SoC Krzysztof Kozlowski
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=1df08447-0ace-4771-bc1c-b0f8c5d0f9b2@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=aelin@mainlining.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@mainlining.org \
--cc=mturquette@baylibre.com \
--cc=phone-devel@vger.kernel.org \
--cc=quic_tdas@quicinc.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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