[alsa-devel] [PATCH RFC] ASoC: simple-card: Update clocks binding for simple-card DAI subnodes

Jyri Sarha jsarha at ti.com
Fri Sep 11 15:18:02 CEST 2015


The updated binding provides a way to set clock-ID and direction
parameters for DAI drivers set_sysclk() call back.

Signed-off-by: Jyri Sarha <jsarha at ti.com>
---
I proposed something similar about a year ago, but Mark rejected that
at the time. This RFC is to start that discussion again. This time
before I do any code changes.

Best regards,
Jyri

 Documentation/devicetree/bindings/sound/simple-card.txt | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/sound/simple-card.txt b/Documentation/devicetree/bindings/sound/simple-card.txt
index cf3979e..d10bf2d 100644
--- a/Documentation/devicetree/bindings/sound/simple-card.txt
+++ b/Documentation/devicetree/bindings/sound/simple-card.txt
@@ -76,6 +76,7 @@ Optional CPU/CODEC subnodes properties:
 - dai-tdm-slot-num			: Please refer to tdm-slot.txt.
 - dai-tdm-slot-width			: Please refer to tdm-slot.txt.
 - clocks / system-clock-frequency	: specify subnode's clock if needed.
+
 					  it can be specified via "clocks" if system has
 					  clock node (= common clock), or "system-clock-frequency"
 					  (if system doens't support common clock)
@@ -83,7 +84,21 @@ Optional CPU/CODEC subnodes properties:
 					  enabled with clk_prepare_enable()
 					  in dai startup() and disabled with
 					  clk_disable_unprepare() in dai
-					  shutdown().
+					  shutdown(). "system-clock-frequency" 
+					  can also be an array if more than one
+					  clock is described.
+- clock-ids				: An array of clock ID integers,
+					  preferrably defined in DT header.
+					  Each entry corresponds to the same
+					  index postion first in "clocks" and
+					  after the end of clocks array to
+					  "system-clock-frequency" array.
+- clock-dirs				: An array of integers describing
+					  clock directions: CLK_IN (= 0) or
+					  OUT (= 1). Entries in the array
+					  refer to clocks in the same way as
+					  in clock-ids property.
+
 
 Example 1 - single DAI link:
 
-- 
1.9.1



More information about the Alsa-devel mailing list