public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Jai Luthra <j-luthra@ti.com>
To: Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Santosh Shilimkar <ssantosh@kernel.org>
Cc: Vignesh Raghavendra <vigneshr@ti.com>, Andrew Davis <afd@ti.com>,
	<linux-clk@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	Jai Luthra <j-luthra@ti.com>
Subject: [PATCH v2 0/2] clk: keystone: syscon-clk: Enable audio reference clock
Date: Mon, 22 May 2023 12:01:54 +0530	[thread overview]
Message-ID: <20230515-refclk-v2-0-fc9ff08826f5@ti.com> (raw)

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.

Signed-off-by: Jai Luthra <j-luthra@ti.com>
---
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@ti.com

[1]: https://lore.kernel.org/linux-clk/20230516184626.154892-1-afd@ti.com/#t

Range-diff from v1:
1:  8107cb140f7d ! 1:  a690c2044971 dt-bindings: clock: Add binding documentation for TI Audio REFCLK
    @@ Documentation/devicetree/bindings/clock/ti,am62-audio-refclk.yaml (new)
     +  compatible:
     +    items:
     +      - const: ti,am62-audio-refclk
    -+      - const: syscon
    -+
    -+  "#clock-cells":
    -+    const: 0
     +
     +  reg:
     +    maxItems: 1
     +
    ++  "#clock-cells":
    ++    const: 0
    ++
     +  clocks:
     +    maxItems: 1
     +
     +required:
     +  - compatible
    -+  - "#clock-cells"
     +  - reg
    ++  - "#clock-cells"
     +  - clocks
     +
     +additionalProperties: false
    @@ Documentation/devicetree/bindings/clock/ti,am62-audio-refclk.yaml (new)
     +examples:
     +  - |
     +    audio_refclk0: clock@82e0 {
    -+        compatible = "ti,am62-audio-refclk", "syscon";
    ++        compatible = "ti,am62-audio-refclk";
     +        reg = <0x82e0 0x4>;
     +        clocks = <&k3_clks 157 0>;
     +        assigned-clocks = <&k3_clks 157 0>;
2:  5a555757fe42 = 2:  854166d4305f clk: keystone: syscon-clk: Add support for audio refclk

---
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                  | 43 +++++++++++++++++++---
 2 files changed, 81 insertions(+), 5 deletions(-)
---
base-commit: 62f117ff3cbc8ea2bf9be36f019eba60369b6a81
change-id: 20230515-refclk-5b544d314c23

Best regards,
-- 
Jai Luthra <j-luthra@ti.com>


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

             reply	other threads:[~2023-05-22  6:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-22  6:31 Jai Luthra [this message]
2023-05-22  6:31 ` [PATCH v2 1/2] dt-bindings: clock: Add binding documentation for TI Audio REFCLK Jai Luthra
2023-05-22 12:23   ` Conor Dooley
2023-05-22  6:31 ` [PATCH v2 2/2] clk: keystone: syscon-clk: Add support for audio refclk Jai Luthra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230515-refclk-v2-0-fc9ff08826f5@ti.com \
    --to=j-luthra@ti.com \
    --cc=afd@ti.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=robh+dt@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=ssantosh@kernel.org \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox