Linux clock framework development
 help / color / mirror / Atom feed
* [PATCH] clk: qcom: gcc-shikra: Add additional frequencies for EMAC RGMII clocks
@ 2026-07-17  4:03 Imran Shaik
  2026-07-17  4:28 ` Taniya Das
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Imran Shaik @ 2026-07-17  4:03 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Brian Masney
  Cc: Ajit Pandey, Taniya Das, Jagadeesh Kona, linux-arm-msm, linux-clk,
	linux-kernel, Imran Shaik

Add support for additional GCC EMAC RGMII clock frequencies (2.5MHz and
25MHz) required for the EMAC use-cases on Qualcomm Shikra SoC.

Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com>
---
 drivers/clk/qcom/gcc-shikra.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/clk/qcom/gcc-shikra.c b/drivers/clk/qcom/gcc-shikra.c
index d5222756f214c356214039f95a93a28fc542801b..f2ab50209e1c037cb84db67951def053880406ff 100644
--- a/drivers/clk/qcom/gcc-shikra.c
+++ b/drivers/clk/qcom/gcc-shikra.c
@@ -1244,6 +1244,8 @@ static struct clk_rcg2 gcc_emac0_ptp_clk_src = {
 };
 
 static const struct freq_tbl ftbl_gcc_emac0_rgmii_clk_src[] = {
+	F(2500000, P_GPLL0_OUT_AUX2, 10, 1, 12),
+	F(25000000, P_GPLL0_OUT_AUX2, 12, 0, 0),
 	F(50000000, P_GPLL0_OUT_AUX2, 6, 0, 0),
 	F(125000000, P_GPLL12_OUT_AUX2, 4, 0, 0),
 	F(250000000, P_GPLL12_OUT_EARLY, 4, 0, 0),

---
base-commit: 1a1757b76427f6201bfe0bf1bea9f7574f332a93
change-id: 20260717-b4-shikra-gcc-emac-freqs-2469d8b64a75

Best regards,
-- 
Imran Shaik <imran.shaik@oss.qualcomm.com>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: qcom: gcc-shikra: Add additional frequencies for EMAC RGMII clocks
  2026-07-17  4:03 [PATCH] clk: qcom: gcc-shikra: Add additional frequencies for EMAC RGMII clocks Imran Shaik
@ 2026-07-17  4:28 ` Taniya Das
  2026-07-17  8:48 ` Konrad Dybcio
  2026-07-17  9:45 ` Mohd Ayaan Anwar
  2 siblings, 0 replies; 4+ messages in thread
From: Taniya Das @ 2026-07-17  4:28 UTC (permalink / raw)
  To: Imran Shaik, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Brian Masney
  Cc: Ajit Pandey, Jagadeesh Kona, linux-arm-msm, linux-clk,
	linux-kernel



On 7/17/2026 9:33 AM, Imran Shaik wrote:
>  drivers/clk/qcom/gcc-shikra.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/clk/qcom/gcc-shikra.c b/drivers/clk/qcom/gcc-shikra.c
> index d5222756f214c356214039f95a93a28fc542801b..f2ab50209e1c037cb84db67951def053880406ff 100644
> --- a/drivers/clk/qcom/gcc-shikra.c
> +++ b/drivers/clk/qcom/gcc-shikra.c
> @@ -1244,6 +1244,8 @@ static struct clk_rcg2 gcc_emac0_ptp_clk_src = {
>  };
>  
>  static const struct freq_tbl ftbl_gcc_emac0_rgmii_clk_src[] = {
> +	F(2500000, P_GPLL0_OUT_AUX2, 10, 1, 12),
> +	F(25000000, P_GPLL0_OUT_AUX2, 12, 0, 0),


Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>

-- 
Thanks,
Taniya Das

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: qcom: gcc-shikra: Add additional frequencies for EMAC RGMII clocks
  2026-07-17  4:03 [PATCH] clk: qcom: gcc-shikra: Add additional frequencies for EMAC RGMII clocks Imran Shaik
  2026-07-17  4:28 ` Taniya Das
@ 2026-07-17  8:48 ` Konrad Dybcio
  2026-07-17  9:45 ` Mohd Ayaan Anwar
  2 siblings, 0 replies; 4+ messages in thread
From: Konrad Dybcio @ 2026-07-17  8:48 UTC (permalink / raw)
  To: Imran Shaik, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Brian Masney
  Cc: Ajit Pandey, Taniya Das, Jagadeesh Kona, linux-arm-msm, linux-clk,
	linux-kernel

On 7/17/26 6:03 AM, Imran Shaik wrote:
> Add support for additional GCC EMAC RGMII clock frequencies (2.5MHz and
> 25MHz) required for the EMAC use-cases on Qualcomm Shikra SoC.
> 
> Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com>
> ---

It'd be useful to mention that they're necessary for 10M and 100M
speeds respectively

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: qcom: gcc-shikra: Add additional frequencies for EMAC RGMII clocks
  2026-07-17  4:03 [PATCH] clk: qcom: gcc-shikra: Add additional frequencies for EMAC RGMII clocks Imran Shaik
  2026-07-17  4:28 ` Taniya Das
  2026-07-17  8:48 ` Konrad Dybcio
@ 2026-07-17  9:45 ` Mohd Ayaan Anwar
  2 siblings, 0 replies; 4+ messages in thread
From: Mohd Ayaan Anwar @ 2026-07-17  9:45 UTC (permalink / raw)
  To: Imran Shaik
  Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd, Brian Masney,
	Ajit Pandey, Taniya Das, Jagadeesh Kona, linux-arm-msm, linux-clk,
	linux-kernel

On Fri, Jul 17, 2026 at 09:33:58AM +0530, Imran Shaik wrote:
> Add support for additional GCC EMAC RGMII clock frequencies (2.5MHz and
> 25MHz) required for the EMAC use-cases on Qualcomm Shikra SoC.
> 
> Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com>
> ---

Tested 10M/100M speeds on Shikra EMAC with this patch, so feel free to
add my t-b:

Tested-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-17  9:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-17  4:03 [PATCH] clk: qcom: gcc-shikra: Add additional frequencies for EMAC RGMII clocks Imran Shaik
2026-07-17  4:28 ` Taniya Das
2026-07-17  8:48 ` Konrad Dybcio
2026-07-17  9:45 ` Mohd Ayaan Anwar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox