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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/20230516184626.154892-1-afd@xxxxxx/#t

Signed-off-by: Jai Luthra <j-luthra@xxxxxx>
---
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/20230515-refclk-v2-0-fc9ff08826f5@xxxxxx

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/20230515-refclk-v1-0-5e89f01d6733@xxxxxx

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 <conor.dooley@xxxxxxxxxxxxx>
         Signed-off-by: Jai Luthra <j-luthra@xxxxxx>

      ## 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
         Signed-off-by: Jai Luthra <j-luthra@xxxxxx>

      ## 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,
-- 
Jai Luthra <j-luthra@xxxxxx>




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux