From: Sumit Garg <sumit.garg@kernel.org>
To: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
Cc: trini@konsulko.com, casey.connolly@linaro.org,
neil.armstrong@linaro.org, lukma@denx.de,
aswin.murugan@oss.qualcomm.com, rui.silva@linaro.org,
david.wronek@mainlining.org, ilias.apalodimas@linaro.org,
luca.weiss@fairphone.com, jorge.ramirez@oss.qualcomm.com,
stephan.gerhold@linaro.org, quic_varada@quicinc.com,
u-boot-qcom@groups.io, u-boot@lists.denx.de
Subject: Re: [PATCH v1 1/3] clk: qcom: Add QCS615 SDCC clock support and RPMH-CLK compatibility
Date: Tue, 27 Jan 2026 11:58:49 +0530 [thread overview]
Message-ID: <aXhbIav5Wk4o466J@sumit-xelite> (raw)
In-Reply-To: <20260126155938.2717540-2-balaji.selvanathan@oss.qualcomm.com>
On Mon, Jan 26, 2026 at 09:29:36PM +0530, Balaji Selvanathan wrote:
> Add SDCC (SD Card Controller) clock support for QCS615 platform to
> enable eMMC functionality. This includes adding SDCC1 and SDCC2 clock
> gates, implementing SDCC1 apps clock rate configuration
> and adding QCS615 RPMH clock compatibility to the stub
> driver to handle device tree clock controller references.
>
> Signed-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
> ---
> drivers/clk/clk-stub.c | 2 +-
> drivers/clk/qcom/clock-qcom.h | 1 +
> drivers/clk/qcom/clock-qcs615.c | 10 ++++++++++
> 3 files changed, 12 insertions(+), 1 deletion(-)
Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
-Sumit
>
> diff --git a/drivers/clk/clk-stub.c b/drivers/clk/clk-stub.c
> index 117266ac778..1bc749e47b3 100644
> --- a/drivers/clk/clk-stub.c
> +++ b/drivers/clk/clk-stub.c
> @@ -50,6 +50,7 @@ static struct clk_ops stub_clk_ops = {
>
> static const struct udevice_id stub_clk_ids[] = {
> { .compatible = "qcom,rpmcc" },
> + { .compatible = "qcom,qcs615-rpmh-clk" },
> { .compatible = "qcom,sdm670-rpmh-clk" },
> { .compatible = "qcom,sdm845-rpmh-clk" },
> { .compatible = "qcom,sc7180-rpmh-clk" },
> @@ -69,4 +70,3 @@ U_BOOT_DRIVER(clk_stub) = {
> .of_match = stub_clk_ids,
> .flags = DM_FLAG_DEFAULT_PD_CTRL_OFF,
> };
> -
> diff --git a/drivers/clk/qcom/clock-qcom.h b/drivers/clk/qcom/clock-qcom.h
> index 3a4550d8536..bc7e0453cba 100644
> --- a/drivers/clk/qcom/clock-qcom.h
> +++ b/drivers/clk/qcom/clock-qcom.h
> @@ -14,6 +14,7 @@
> #define CFG_CLK_SRC_GPLL0_AUX2 (2 << 8)
> #define CFG_CLK_SRC_GPLL2 (2 << 8)
> #define CFG_CLK_SRC_GPLL2_MAIN (2 << 8)
> +#define CFG_CLK_SRC_GPLL6_OUT_MAIN (2 << 8)
> #define CFG_CLK_SRC_GPLL9 (2 << 8)
> #define CFG_CLK_SRC_GPLL0_ODD (3 << 8)
> #define CFG_CLK_SRC_GPLL6 (4 << 8)
> diff --git a/drivers/clk/qcom/clock-qcs615.c b/drivers/clk/qcom/clock-qcs615.c
> index 4700baba8c9..483642531ef 100644
> --- a/drivers/clk/qcom/clock-qcs615.c
> +++ b/drivers/clk/qcom/clock-qcs615.c
> @@ -18,6 +18,7 @@
> #define USB30_PRIM_MOCK_UTMI_CLK_CMD_RCGR 0xf034
> #define USB30_PRIM_MASTER_CLK_CMD_RCGR 0xf01c
> #define USB3_PRIM_PHY_AUX_CMD_RCGR 0xf060
> +#define SDCC1_APPS_CLK_CMD_RCGR 0x12028
>
> #define GCC_QUPV3_WRAP0_S0_CLK_ENA_BIT BIT(10)
> #define GCC_QUPV3_WRAP0_S1_CLK_ENA_BIT BIT(11)
> @@ -52,6 +53,10 @@ static ulong qcs615_set_rate(struct clk *clk, ulong rate)
> 5, 0, 0, CFG_CLK_SRC_GPLL0, 8);
> clk_rcg_set_rate(priv->base, USB3_PRIM_PHY_AUX_CMD_RCGR, 0, 0);
> return rate;
> + case GCC_SDCC1_APPS_CLK:
> + clk_rcg_set_rate(priv->base, SDCC1_APPS_CLK_CMD_RCGR,
> + 1, CFG_CLK_SRC_GPLL6_OUT_MAIN);
> + return rate;
> default:
> return 0;
> }
> @@ -66,6 +71,11 @@ static const struct gate_clk qcs615_clks[] = {
> GATE_CLK(GCC_USB3_PRIM_PHY_AUX_CLK, 0xf050, BIT(0)),
> GATE_CLK(GCC_USB3_PRIM_PHY_COM_AUX_CLK, 0xf054, BIT(0)),
> GATE_CLK(GCC_USB3_PRIM_PHY_PIPE_CLK, 0xf058, BIT(0)),
> + GATE_CLK(GCC_SDCC1_AHB_CLK, 0x12008, BIT(0)),
> + GATE_CLK(GCC_SDCC1_APPS_CLK, 0x12004, BIT(0)),
> + GATE_CLK(GCC_SDCC1_ICE_CORE_CLK, 0x1200c, BIT(0)),
> + GATE_CLK(GCC_SDCC2_AHB_CLK, 0x14008, BIT(0)),
> + GATE_CLK(GCC_SDCC2_APPS_CLK, 0x14004, BIT(0)),
> GATE_CLK(GCC_QUPV3_WRAP0_S0_CLK, 0x5200c, GCC_QUPV3_WRAP0_S0_CLK_ENA_BIT),
> GATE_CLK(GCC_QUPV3_WRAP0_S1_CLK, 0x5200c, GCC_QUPV3_WRAP0_S1_CLK_ENA_BIT),
> GATE_CLK(GCC_QUPV3_WRAP0_S2_CLK, 0x5200c, GCC_QUPV3_WRAP0_S2_CLK_ENA_BIT),
> --
> 2.34.1
>
next prev parent reply other threads:[~2026-01-27 6:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-26 15:59 [PATCH v1 0/3] Enable eMMC/SDCC support for QCS615 platform Balaji Selvanathan
2026-01-26 15:59 ` [PATCH v1 1/3] clk: qcom: Add QCS615 SDCC clock support and RPMH-CLK compatibility Balaji Selvanathan
2026-01-27 6:28 ` Sumit Garg [this message]
2026-02-09 18:56 ` Casey Connolly
2026-01-26 15:59 ` [PATCH v1 2/3] arm: snapdragon: Remove QCS615 MMC node disable fixup Balaji Selvanathan
2026-01-27 7:18 ` Sumit Garg
2026-01-26 15:59 ` [PATCH v1 3/3] board: qualcomm: Remove SCSI scan from default preboot environment Balaji Selvanathan
2026-01-27 7:25 ` Sumit Garg
2026-02-09 19:16 ` Casey Connolly
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=aXhbIav5Wk4o466J@sumit-xelite \
--to=sumit.garg@kernel.org \
--cc=aswin.murugan@oss.qualcomm.com \
--cc=balaji.selvanathan@oss.qualcomm.com \
--cc=casey.connolly@linaro.org \
--cc=david.wronek@mainlining.org \
--cc=ilias.apalodimas@linaro.org \
--cc=jorge.ramirez@oss.qualcomm.com \
--cc=luca.weiss@fairphone.com \
--cc=lukma@denx.de \
--cc=neil.armstrong@linaro.org \
--cc=quic_varada@quicinc.com \
--cc=rui.silva@linaro.org \
--cc=stephan.gerhold@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot-qcom@groups.io \
--cc=u-boot@lists.denx.de \
/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