Skip to content

clk: keystone: syscon-clk: Enable audio reference clock

Jai Luthra linux-arm-kernel linux-clk linux-devicetree 3 versions – Applied

Status from this message: Applied to clk-next

Get series with b4
b4 am [email protected] change-id 20230515-refclk-5b544d314c23

Versions newest first

  1. v3 Latest2 patches 2 repliesApplied
  2. v22 patches 1 replySuperseded
  3. v12 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- Add missing headers for kasprintf/kfree in [PATCH 2/2]
- Add Conor's R-by for [PATCH 1/2]
- Link to v2: https://lore.kernel.org/r/[email protected]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2dt-bindings: clock: Add binding documentation for TI Audio REFCLKDocumentation/devicetree/bindings/clock/ti,am62-audio-refclk.yaml+43 -01 reply
2/2clk: keystone: syscon-clk: Add support for audio refclkdrivers/clk/keystone/syscon-clk.c+40 -51 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchConor Dooley
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] clk: keystone: syscon-clk: Enable audio reference clock

TI's AM62 SoC can optionally provide two audio reference clocks (AUDIO_REFCLKx) to external peripherals. By default the reference clock is looped-back inside the SoC to a mux that goes to McASP AHCLK, but can optionally be enabled as an output to peripherals outside the SoC by setting a bit through CTRL_MMR registers.

This patch series extends the existing syscon-clk driver to support the audio reference clock, and also adds new device tree bindings documentation.

Please apply this on-top-of Andrew's series [1] removing the unnecessary dependency on syscon compatible.

[1]: https://lore.kernel.org/linux-clk/[email protected]/#t

---
Changes in v3:
- Add missing headers for kasprintf/kfree in [PATCH 2/2]
- Add Conor's R-by for [PATCH 1/2]
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Removed "syscon" compatible and rebased on top of [1]
- Moved reg above other properties in bindings yaml
- Link to v1: https://lore.kernel.org/r/[email protected]

Range diff from v2:
1: f1bb6a34efce ! 1: db84010f924d dt-bindings: clock: Add binding documentation for TI Audio REFCLK
@@ Commit message
Add DT bindings for TI's audio reference clocks (REFCLK) present on AM62 SoC.

+ Reviewed-by: Conor Dooley <[email protected]>

## Documentation/devicetree/bindings/clock/ti,am62-audio-refclk.yaml (new) ##
2: bb1b58178bbd ! 2: 06186242572b clk: keystone: syscon-clk: Add support for audio refclk
@@ Commit message

## drivers/clk/keystone/syscon-clk.c ##
+@@
+ */
+
+ #include <linux/clk-provider.h>
++#include <linux/kernel.h>
+ #include <linux/mfd/syscon.h>
+ #include <linux/module.h>
+ #include <linux/platform_device.h>
+ #include <linux/regmap.h>
++#include <linux/slab.h>
+
+ struct ti_syscon_gate_clk_priv {
+ struct clk_hw hw;
@@ drivers/clk/keystone/syscon-clk.c: static const struct clk_ops ti_syscon_gate_clk_ops = {

static struct clk_hw

---
Jai Luthra (2):
dt-bindings: clock: Add binding documentation for TI Audio REFCLK
clk: keystone: syscon-clk: Add support for audio refclk

 .../bindings/clock/ti,am62-audio-refclk.yaml       | 43 +++++++++++++++++++++
 drivers/clk/keystone/syscon-clk.c                  | 45 +++++++++++++++++++---
 2 files changed, 83 insertions(+), 5 deletions(-)

---
base-commit: f9547f8abff52dfb21985057f10744558a7e4cc8
change-id: 20230515-refclk-5b544d314c23

Best regards,

Signature · 7 lines
Jai Luthra <[email protected]>


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel