All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>
Cc: Linux-DT <devicetree@vger.kernel.org>,
	Linux-ALSA <alsa-devel@alsa-project.org>,
	Simon <horms@verge.net.au>
Subject: [PATCH v3 6/7] ASoC: add audio-graph-card document
Date: Thu, 2 Mar 2017 05:28:24 +0000	[thread overview]
Message-ID: <8760jsmers.wl%kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <87fuiwmeya.wl%kuninori.morimoto.gx@renesas.com>


From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

"Audio Graph Card" = "Simple Card" + "OF-graph"

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
v2 -> v3

 - simple-graph-card -> audio-graph-card
 - cleanup unnecessary comments

 .../devicetree/bindings/sound/audio-graph-card.txt | 126 +++++++++++++++++++++
 1 file changed, 126 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/audio-graph-card.txt

diff --git a/Documentation/devicetree/bindings/sound/audio-graph-card.txt b/Documentation/devicetree/bindings/sound/audio-graph-card.txt
new file mode 100644
index 0000000..81213ac
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/audio-graph-card.txt
@@ -0,0 +1,126 @@
+Audio Graph Card:
+
+Audio Graph Card specifies audio DAI connections of SoC <-> codec.
+It is based on common bindings for device graphs.
+see ${LINUX}/Documentation/devicetree/bindings/graph.txt
+
+Basically, Audio Graph Card property is same as Simple Card.
+see ${LINUX}/Documentation/devicetree/bindings/sound/simple-card.txt
+
+Below are same as Simple-Card.
+
+- audio-graph-card,name
+- audio-graph-card,format
+- audio-graph-card,frame-master
+- audio-graph-card,bitclock-master
+- audio-graph-card,bitclock-inversion
+- audio-graph-card,frame-inversion
+- audio-graph-card,dai-tdm-slot-num
+- audio-graph-card,dai-tdm-slot-width
+- clocks / system-clock-frequency
+
+Required properties:
+
+- compatible				: "asoc-audio-graph-card";
+- dais					: list of CPU DAI port{s}
+
+Example: Single DAI case
+
+	sound_card {
+		compatible = "asoc-audio-graph-card";
+
+		dais = <&cpu_port>;
+	};
+
+	dai-controller@0 {
+		...
+		cpu_port: port {
+			cpu_endpoint: endpoint {
+				remote-endpoint = <&codec_endpoint>;
+
+				audio-graph-card,format = "left_j";
+				audio-graph-card,xxx = ...
+				...
+			};
+		};
+	};
+
+	dai-controller@1 {
+		...
+		port {
+			codec_endpoint: endpoint {
+				remote-endpoint = <&cpu_endpoint>;
+			};
+		};
+	};
+
+Example: Multi DAI case
+
+	sound_card {
+		compatible = "asoc-audio-graph-card";
+
+		dais = <&cpu_port0
+			&cpu_port1
+			&cpu_port2>;
+	};
+
+	dai-controller@0 {
+		...
+		port {
+			codec0_endpoint: endpoint {
+				remote-endpoint = <&cpu_endpoint0>;
+			};
+		};
+	};
+
+	dai-controller@1 {
+		...
+		port {
+			codec1_endpoint: endpoint {
+				remote-endpoint = <&cpu_endpoint1>;
+			};
+		};
+	};
+
+	dai-controller@2 {
+		...
+		port {
+			codec2_endpoint: endpoint {
+				remote-endpoint = <&cpu_endpoint2>;
+			};
+		};
+	};
+
+	dai-controller@3 {
+		...
+		ports {
+			cpu_port0: port@0 {
+				cpu_endpoint0: endpoint {
+					remote-endpoint = <&codec0_endpoint>;
+
+					audio-graph-card,format = "left_j";
+					audio-graph-card,xxx = ...
+					...
+				};
+			};
+			cpu_port1: port@1 {
+				cpu_endpoint1: endpoint {
+					remote-endpoint = <&codec1_endpoint>;
+
+					audio-graph-card,format = "i2s";
+					audio-graph-card,xxx = ...
+					...
+				};
+			};
+			cpu_port2: port@2 {
+				cpu_endpoint2: endpoint {
+					remote-endpoint = <&codec2_endpoint>;
+
+					audio-graph-card,format = "i2s";
+					audio-graph-card,xxx = ...
+					...
+				};
+			};
+		};
+	};
+
-- 
1.9.1

  parent reply	other threads:[~2017-03-02  5:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-02  5:24 [PATCH v3 0/7] ASoC: add OF-graph base simple-card Kuninori Morimoto
2017-03-02  5:25 ` [PATCH v3 2/7] of_graph: add of_graph_get_port_parent() Kuninori Morimoto
2017-03-02  5:26 ` [PATCH v3 3/7] of_graph: add of_graph_get_endpoint_count() Kuninori Morimoto
     [not found] ` <87fuiwmeya.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2017-03-02  5:25   ` [PATCH v3 1/7] of_graph: add of_graph_get_remote_endpoint() Kuninori Morimoto
2017-03-02  5:26   ` [PATCH 4/7] ASoC: add snd_soc_get_dai_id() Kuninori Morimoto
2017-03-02  5:27   ` [PATCH 5/7] ASoC: simple-card-utils: add asoc_simple_card_parse_graph_dai() Kuninori Morimoto
2017-03-02  5:28 ` Kuninori Morimoto [this message]
     [not found]   ` <8760jsmers.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2017-03-12 11:43     ` [PATCH v3 6/7] ASoC: add audio-graph-card document Rob Herring
2017-03-13  6:07       ` Kuninori Morimoto
2017-03-02  5:29 ` [PATCH 7/7] ASoC: add audio-graph-card support Kuninori Morimoto

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=8760jsmers.wl%kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=horms@verge.net.au \
    --cc=robh+dt@kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.