Skip to content

RFC clk: at91: audio PLL clock

Nicolas Ferre linux-arm-kernel linux-clk lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3clk: at91: add audio pll clock driverDocumentation/devicetree/bindings/clock/at91-clock.txt arch/arm/mach-at91/Kconfig drivers/clk/at91/Makefile +4 more+716 -00 replies
2/3ARM: dts: at91: sama5d2: add classd nodesarch/arm/boot/dts/sama5d2.dtsi+38 -10 replies
3/3ARM: dts: at91: sama5d2_xplained: add pin muxing and enable classdarch/arm/boot/dts/at91-sama5d2_xplained.dts+16 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] clk: at91: audio PLL clock

This series covers the addition of the Audio PLL clock found on AT91 SoCs like the SAMA5D2.
I also added the use of these clocks by the ClassD audi amplifier in both SoC and board DT.

The Audio PLL is described in the sama5d2 datasheet chapter "29.8 Audio PLL".

Even if "it works" (!), note that I'm not satisfied with the current code and would need some advice from people more accustomed with the CCF and particularly composite audio PLL/clocks like these. For example, I do not take into account the limits of these clocks (as described in the datasheet) and the dependency between the PAD and the PMC child clocks.

Thanks in advance for your inputs.

Best regards,
Nicolas

Cyrille Pitchen (2):
ARM: dts: at91: sama5d2: add classd nodes
ARM: dts: at91: sama5d2_xplained: add pin muxing and enable classd

Nicolas Ferre (1):
clk: at91: add audio pll clock driver

 .../devicetree/bindings/clock/at91-clock.txt       |  10 +
 arch/arm/boot/dts/at91-sama5d2_xplained.dts        |  16 ++
 arch/arm/boot/dts/sama5d2.dtsi                     |  39 +++-
 arch/arm/mach-at91/Kconfig                         |   4 +
 drivers/clk/at91/Makefile                          |   2 +
 drivers/clk/at91/clk-audio-pll-pad.c               | 238 +++++++++++++++++++
 drivers/clk/at91/clk-audio-pll-pmc.c               | 184 +++++++++++++++
 drivers/clk/at91/clk-audio-pll.c                   | 253 +++++++++++++++++++++
 include/linux/clk/at91_pmc.h                       |  25 ++
 9 files changed, 770 insertions(+), 1 deletion(-)
 create mode 100644 drivers/clk/at91/clk-audio-pll-pad.c
 create mode 100644 drivers/clk/at91/clk-audio-pll-pmc.c
 create mode 100644 drivers/clk/at91/clk-audio-pll.c
Signature · 1 line
2.9.0