Commit cb2d94aa authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: audio-graph-card2-custom-sample.dtsi: add DPCM sample (Multi)

This patch adds DPCM link Multi-CPU/Codec sample to
audio-graph-card2-custom-sample.dtsi.
This sample is assuming MIXer connection.
One note is that Multi-FE is not supported on ASoC

	FE		BE
		****	+-+
	CPU5 -- *  * -- | | -- Codec4
	CPU6 -- *  *	| | -- Codec5
		****	+-+
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87pmsalu2s.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent e781759a
...@@ -37,6 +37,17 @@ / { ...@@ -37,6 +37,17 @@ / {
* cpu3 <-@--* *--@-> codec3 * cpu3 <-@--* *--@-> codec3
* cpu4 <-@--* * * cpu4 <-@--* *
* **** * ****
*
* [DPCM-Multi]
*
* --NOTE--
* Multi-FE is not supported by ASoC.
*
* FE BE
* **** +-+
* cpu5 <-@--* *--@-> | | -> codec4
* cpu6 <-@--* * | | -> codec5
* **** +-+
*/ */
audio-graph-card2-custom-sample { audio-graph-card2-custom-sample {
/* /*
...@@ -51,11 +62,22 @@ audio-graph-card2-custom-sample { ...@@ -51,11 +62,22 @@ audio-graph-card2-custom-sample {
routing = "TC DAI3 Playback", "DAI3 Playback", routing = "TC DAI3 Playback", "DAI3 Playback",
"TC DAI3 Playback", "DAI4 Playback", "TC DAI3 Playback", "DAI4 Playback",
"DAI3 Capture", "TC DAI3 Capture", "DAI3 Capture", "TC DAI3 Capture",
"DAI4 Capture", "TC DAI3 Capture"; "DAI4 Capture", "TC DAI3 Capture",
/* for [DPCM-Multi] */
/* BE FE */
"TC DAI4 Playback", "DAI5 Playback",
"TC DAI5 Playback", "DAI5 Playback",
"TC DAI4 Playback", "DAI6 Playback",
"TC DAI5 Playback", "DAI6 Playback",
"DAI5 Capture", "TC DAI4 Capture",
"DAI5 Capture", "TC DAI5 Capture",
"DAI6 Capture", "TC DAI4 Capture",
"DAI6 Capture", "TC DAI5 Capture";
links = <&cpu0 /* normal: cpu side only */ links = <&cpu0 /* normal: cpu side only */
&mcpu0 /* multi: cpu side only */ &mcpu0 /* multi: cpu side only */
&fe00 &fe01 &be0 /* dpcm: both FE / BE */ &fe00 &fe01 &be0 /* dpcm: both FE / BE */
&fe10 &fe11 &be1 /* dpcm-m: both FE / BE */
>; >;
multi { multi {
...@@ -69,6 +91,11 @@ ports@1 { ...@@ -69,6 +91,11 @@ ports@1 {
port@1 { mcodec1_ep: endpoint { remote-endpoint = <&codec1_ep>; }; }; port@1 { mcodec1_ep: endpoint { remote-endpoint = <&codec1_ep>; }; };
port@2 { mcodec2_ep: endpoint { remote-endpoint = <&codec2_ep>; }; }; port@2 { mcodec2_ep: endpoint { remote-endpoint = <&codec2_ep>; }; };
}; };
ports@2 {
port@0 { mbe_ep: endpoint { remote-endpoint = <&be10_ep>; }; };
port@1 { mbe1_ep: endpoint { remote-endpoint = <&codec4_ep>; }; };
port@2 { mbe2_ep: endpoint { remote-endpoint = <&codec5_ep>; }; };
};
}; };
dpcm { dpcm {
...@@ -76,10 +103,13 @@ dpcm { ...@@ -76,10 +103,13 @@ dpcm {
ports@0 { ports@0 {
fe00: port@0 { fe00_ep: endpoint { remote-endpoint = <&cpu3_ep>; }; }; fe00: port@0 { fe00_ep: endpoint { remote-endpoint = <&cpu3_ep>; }; };
fe01: port@1 { fe01_ep: endpoint { remote-endpoint = <&cpu4_ep>; }; }; fe01: port@1 { fe01_ep: endpoint { remote-endpoint = <&cpu4_ep>; }; };
fe10: port@2 { fe10_ep: endpoint { remote-endpoint = <&cpu5_ep>; }; };
fe11: port@3 { fe11_ep: endpoint { remote-endpoint = <&cpu6_ep>; }; };
}; };
/* BE */ /* BE */
ports@1 { ports@1 {
be0: port@0 { be00_ep: endpoint { remote-endpoint = <&codec3_ep>; }; }; be0: port@0 { be00_ep: endpoint { remote-endpoint = <&codec3_ep>; }; };
be1: port@1 { be10_ep: endpoint { remote-endpoint = <&mbe_ep>; }; };
}; };
}; };
}; };
...@@ -102,6 +132,8 @@ ports { ...@@ -102,6 +132,8 @@ ports {
port@2 { cpu2_ep: endpoint { remote-endpoint = <&mcpu2_ep>; }; }; port@2 { cpu2_ep: endpoint { remote-endpoint = <&mcpu2_ep>; }; };
port@3 { cpu3_ep: endpoint { remote-endpoint = <&fe00_ep>; }; }; port@3 { cpu3_ep: endpoint { remote-endpoint = <&fe00_ep>; }; };
port@4 { cpu4_ep: endpoint { remote-endpoint = <&fe01_ep>; }; }; port@4 { cpu4_ep: endpoint { remote-endpoint = <&fe01_ep>; }; };
port@5 { cpu5_ep: endpoint { remote-endpoint = <&fe10_ep>; }; };
port@6 { cpu6_ep: endpoint { remote-endpoint = <&fe11_ep>; }; };
}; };
}; };
...@@ -126,6 +158,8 @@ ports { ...@@ -126,6 +158,8 @@ ports {
port@1 { codec1_ep: endpoint { remote-endpoint = <&mcodec1_ep>; }; }; port@1 { codec1_ep: endpoint { remote-endpoint = <&mcodec1_ep>; }; };
port@2 { codec2_ep: endpoint { remote-endpoint = <&mcodec2_ep>; }; }; port@2 { codec2_ep: endpoint { remote-endpoint = <&mcodec2_ep>; }; };
port@3 { codec3_ep: endpoint { remote-endpoint = <&be00_ep>; }; }; port@3 { codec3_ep: endpoint { remote-endpoint = <&be00_ep>; }; };
port@4 { codec4_ep: endpoint { remote-endpoint = <&mbe1_ep>; }; };
port@5 { codec5_ep: endpoint { remote-endpoint = <&mbe2_ep>; }; };
}; };
}; };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment