* [PATCH] clk: at91: allow setting PMC_AUDIOPINCK clock parents via DT
@ 2022-01-11 14:20 Zixun LI
2022-01-25 1:05 ` Stephen Boyd
0 siblings, 1 reply; 2+ messages in thread
From: Zixun LI @ 2022-01-11 14:20 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Nicolas Ferre,
Alexandre Belloni, Ludovic Desroches, Rob Herring
Cc: Zixun LI, Claudiu Beznea, linux-clk, linux-arm-kernel,
linux-kernel, devicetree
Make AUDIOPINCK accessible via phandle to select it
as peripheral clock parent using assigned-clock-parents in DT
where available.
Signed-off-by: Zixun LI <admin@hifiphile.com>
Reviewed-by: Claudiu Beznea <Claudiu.Beznea@microchip.com>
---
drivers/clk/at91/sama5d2.c | 4 +++-
include/dt-bindings/clock/at91.h | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/at91/sama5d2.c b/drivers/clk/at91/sama5d2.c
index d027294a0089..f479e39e3bb2 100644
--- a/drivers/clk/at91/sama5d2.c
+++ b/drivers/clk/at91/sama5d2.c
@@ -168,7 +168,7 @@ static void __init sama5d2_pmc_setup(struct device_node *np)
if (IS_ERR(regmap))
return;
- sama5d2_pmc = pmc_data_allocate(PMC_AUDIOPLLCK + 1,
+ sama5d2_pmc = pmc_data_allocate(PMC_AUDIOPINCK + 1,
nck(sama5d2_systemck),
nck(sama5d2_periph32ck),
nck(sama5d2_gck), 3);
@@ -216,6 +216,8 @@ static void __init sama5d2_pmc_setup(struct device_node *np)
if (IS_ERR(hw))
goto err_free;
+ sama5d2_pmc->chws[PMC_AUDIOPINCK] = hw;
+
hw = at91_clk_register_audio_pll_pmc(regmap, "audiopll_pmcck",
"audiopll_fracck");
if (IS_ERR(hw))
diff --git a/include/dt-bindings/clock/at91.h b/include/dt-bindings/clock/at91.h
index 98e1b2ab6403..573cf8c25eb4 100644
--- a/include/dt-bindings/clock/at91.h
+++ b/include/dt-bindings/clock/at91.h
@@ -24,6 +24,7 @@
#define PMC_PLLACK 7
#define PMC_PLLBCK 8
#define PMC_AUDIOPLLCK 9
+#define PMC_AUDIOPINCK 10
/* SAMA7G5 */
#define PMC_CPUPLL (PMC_MAIN + 1)
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] clk: at91: allow setting PMC_AUDIOPINCK clock parents via DT
2022-01-11 14:20 [PATCH] clk: at91: allow setting PMC_AUDIOPINCK clock parents via DT Zixun LI
@ 2022-01-25 1:05 ` Stephen Boyd
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2022-01-25 1:05 UTC (permalink / raw)
To: Alexandre Belloni, Ludovic Desroches, Michael Turquette,
Nicolas Ferre, Rob Herring, Zixun LI
Cc: Zixun LI, Claudiu Beznea, linux-clk, linux-arm-kernel,
linux-kernel, devicetree
Quoting Zixun LI (2022-01-11 06:20:50)
> Make AUDIOPINCK accessible via phandle to select it
> as peripheral clock parent using assigned-clock-parents in DT
> where available.
>
> Signed-off-by: Zixun LI <admin@hifiphile.com>
> Reviewed-by: Claudiu Beznea <Claudiu.Beznea@microchip.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-25 3:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 14:20 [PATCH] clk: at91: allow setting PMC_AUDIOPINCK clock parents via DT Zixun LI
2022-01-25 1:05 ` Stephen Boyd
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).