Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: at91: allow setting PMC_AUDIOPINCK clock parents via DT

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>
Link: https://lore.kernel.org/r/20220111142051.37957-1-admin@hifiphile.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Zixun LI and committed by
Stephen Boyd
ea2be22f e783362e

+4 -1
+3 -1
drivers/clk/at91/sama5d2.c
··· 168 168 if (IS_ERR(regmap)) 169 169 return; 170 170 171 - sama5d2_pmc = pmc_data_allocate(PMC_AUDIOPLLCK + 1, 171 + sama5d2_pmc = pmc_data_allocate(PMC_AUDIOPINCK + 1, 172 172 nck(sama5d2_systemck), 173 173 nck(sama5d2_periph32ck), 174 174 nck(sama5d2_gck), 3); ··· 215 215 "audiopll_fracck"); 216 216 if (IS_ERR(hw)) 217 217 goto err_free; 218 + 219 + sama5d2_pmc->chws[PMC_AUDIOPINCK] = hw; 218 220 219 221 hw = at91_clk_register_audio_pll_pmc(regmap, "audiopll_pmcck", 220 222 "audiopll_fracck");
+1
include/dt-bindings/clock/at91.h
··· 24 24 #define PMC_PLLACK 7 25 25 #define PMC_PLLBCK 8 26 26 #define PMC_AUDIOPLLCK 9 27 + #define PMC_AUDIOPINCK 10 27 28 28 29 /* SAMA7G5 */ 29 30 #define PMC_CPUPLL (PMC_MAIN + 1)