public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] clk: tegra: support 48MHz clock for pll_p_out1
@ 2026-04-27 13:24 Svyatoslav Ryhel
  2026-04-27 13:24 ` [PATCH v2 1/1] " Svyatoslav Ryhel
  0 siblings, 1 reply; 2+ messages in thread
From: Svyatoslav Ryhel @ 2026-04-27 13:24 UTC (permalink / raw)
  To: Prashant Gaikwad, Michael Turquette, Stephen Boyd, Thierry Reding,
	Jonathan Hunter, Svyatoslav Ryhel
  Cc: linux-clk, linux-tegra, linux-kernel

UEFI on Surface2 sets pll_p_out1 to 48MHz which is not supported
by kernel and causes BUG() early on. Fix this by adding 48MHz
clock support for pll_p_out1 along with 48MHz support for pll_a,
main pll_p_out1 descendant.

---
Changes in v2:
- aligned with downstream 3.4 kernel for tegra114 logic
---

Dmitry Osipenko (1):
  clk: tegra: support 48MHz clock for pll_p_out1

 drivers/clk/tegra/clk-pll.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.51.0


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

* [PATCH v2 1/1] clk: tegra: support 48MHz clock for pll_p_out1
  2026-04-27 13:24 [PATCH v2 0/1] clk: tegra: support 48MHz clock for pll_p_out1 Svyatoslav Ryhel
@ 2026-04-27 13:24 ` Svyatoslav Ryhel
  0 siblings, 0 replies; 2+ messages in thread
From: Svyatoslav Ryhel @ 2026-04-27 13:24 UTC (permalink / raw)
  To: Prashant Gaikwad, Michael Turquette, Stephen Boyd, Thierry Reding,
	Jonathan Hunter, Svyatoslav Ryhel
  Cc: linux-clk, linux-tegra, linux-kernel

From: Dmitry Osipenko <digetx@gmail.com>

UEFI on Surface2 sets pll_p_out1 to 48MHz which is not supported by kernel
and causes BUG() early on. Add 48MHz clock support for pll_p_out1.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Jonas Schwöbel <jonasschwoebel@yahoo.de>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
---
 drivers/clk/tegra/clk-pll.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/tegra/clk-pll.c b/drivers/clk/tegra/clk-pll.c
index d86003b6d94f..adfb74f111ef 100644
--- a/drivers/clk/tegra/clk-pll.c
+++ b/drivers/clk/tegra/clk-pll.c
@@ -575,6 +575,7 @@ static int _calc_rate(struct clk_hw *hw, struct tegra_clk_pll_freq_table *cfg,
 		break;
 	case 9600000:
 	case 28800000:
+	case 48000000:
 		/*
 		 * PLL_P_OUT1 rate is not listed in PLLA table
 		 */
-- 
2.51.0


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

end of thread, other threads:[~2026-04-27 13:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-27 13:24 [PATCH v2 0/1] clk: tegra: support 48MHz clock for pll_p_out1 Svyatoslav Ryhel
2026-04-27 13:24 ` [PATCH v2 1/1] " Svyatoslav Ryhel

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