[PATCH v6 0/4] Add A1 Soc audio clock controller driver

From: Jan Dakinevich
Date: Sun Mar 09 2025 - 13:49:39 EST


This series adds support for audio clock and reset controllers on A1 SoC family.

Depends on [7]

Changes v5 [5] -> v6
- use __devm_auxiliary_device_create() helper that is being introduced in [7]

Changes v4 [4] -> v5
- moved changes of aux reset driver to series [6]
- added reset controller on top of audio-vad
- merged into single file
- reworked variables/defines naming
- added clk81 clock hierarchy
- added TDMIN_VAD-related clocks
- excluded DT patch (it will submitted separately)

Changes v3 [3] -> v4
- Use auxiliary reset device implemented in [4]
- Split the driver into files
- Use common with axg-audio yaml schema
- Unify clock-names with axg-audio

Changes v2 [2] -> v3
- reset:
* added auxiliary device
- yaml:
* added declaration of optional clocks
* fixed names in example and another cosmetics
- clocks:
* reworked naming
* stop using of "core" clock name
* fixed wrong parenting

Changes v1 [1] -> v2:
- Detached from v1's series (patch 2, 3, 4, 25)
- Reuse some of defines from axg-audio
- Split the controller into two memory regions

Links:
[1] https://lore.kernel.org/lkml/20240314232201.2102178-1-jan.dakinevich@xxxxxxxxxxxxxxxxx/
[2] https://lore.kernel.org/lkml/20240328010831.884487-1-jan.dakinevich@xxxxxxxxxxxxxxxxx/
[3] https://lore.kernel.org/lkml/20240419125812.983409-1-jan.dakinevich@xxxxxxxxxxxxxxxxx/
[4] https://lore.kernel.org/all/20240913121152.817575-1-jan.dakinevich@xxxxxxxxxxxxxxxxx/
[5] https://lore.kernel.org/all/20241112230443.1406460-1-jan.dakinevich@xxxxxxxxxxxxxxxxx/
[6] https://lore.kernel.org/all/20241112230056.1406222-1-jan.dakinevich@xxxxxxxxxxxxxxxxx/
[7] https://lore.kernel.org/all/20250218-aux-device-create-helper-v4-0-c3d7dfdea2e6@xxxxxxxxxxxx/

Jan Dakinevich (4):
clk: meson: axg: share the set of audio helper macros
dt-bindings: clock: axg-audio: document A1 SoC audio clock controller
driver
clk: meson: a1: add the audio clock controller driver
arm64: dts: meson: a1: add the audio clock controller

.../clock/amlogic,axg-audio-clkc.yaml | 4 +
arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 49 +
drivers/clk/meson/Kconfig | 14 +
drivers/clk/meson/Makefile | 1 +
drivers/clk/meson/a1-audio.c | 856 ++++++++++++++++++
drivers/clk/meson/axg-audio.c | 215 +----
drivers/clk/meson/meson-audio.h | 156 ++++
.../dt-bindings/clock/amlogic,a1-audio-clkc.h | 139 +++
8 files changed, 1254 insertions(+), 180 deletions(-)
create mode 100644 drivers/clk/meson/a1-audio.c
create mode 100644 drivers/clk/meson/meson-audio.h
create mode 100644 include/dt-bindings/clock/amlogic,a1-audio-clkc.h

--
2.34.1