blob: 8966e6a7d28b3eacf0710c6d8a11feffac56c1a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
// SPDX-License-Identifier: GPL-2.0
/*
* Device Tree for ULCB + Audio Graph Card2 (MIX + TDM Split)
*
* Copyright (C) 2022 Renesas Electronics Corp.
*/
/*
* Note:
* The HDMI output is ignored due to the limited number of subdevices
*
* (A) CPU0 (2ch) <----> (2ch) (X) ak4613 (MIX-0)
* (B) CPU1 (2ch) --/ (MIX-1)
*
* (A) aplay -D plughw:0,0 xxx.wav
* (B) aplay -D plughw:0,1 xxx.wav
*
* (A) arecord -D plughw:0,0 xxx.wav
*/
/ {
sound_card: sound {
compatible = "audio-graph-card2";
label = "snd-ulcb-mix";
routing = "ak4613 Playback", "DAI0 Playback",
"ak4613 Playback", "DAI1 Playback",
"DAI0 Capture", "ak4613 Capture";
links = <&fe_a /* (A) CPU0 */
&fe_b /* (B) CPU1 */
&be_x /* (X) ak4613 */
>;
dpcm {
#address-cells = <1>;
#size-cells = <0>;
ports@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
/*
* FE
* (A) CPU0 (MIX-0)
* (B) CPU1 (MIX-1)
*/
fe_a: port@0 { reg = <0>; fe_a_ep: endpoint { remote-endpoint = <&rsnd_a_ep>; }; };
fe_b: port@1 { reg = <1>; fe_b_ep: endpoint { remote-endpoint = <&rsnd_b_ep>; }; };
};
ports@1 {
reg = <1>;
/*
* BE
* (X) ak4613
*/
be_x: port { be_x_ep: endpoint { remote-endpoint = <&ak4613_x_ep>; }; };
};
};
};
};
&ak4613 {
port {
/*
* (X) ak4613
*/
prefix = "ak4613";
convert-rate = <48000>;
ak4613_x_ep: endpoint {
remote-endpoint = <&be_x_ep>;
};
};
};
&rcar_sound {
#address-cells = <1>;
#size-cells = <0>;
ports@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
/*
* (A) CPU0
*/
port@0 {
reg = <0>;
rsnd_a_ep: endpoint {
remote-endpoint = <&fe_a_ep>;
bitclock-master;
frame-master;
playback = <&src1 &ctu02 &mix0 &dvc0 &ssi0>;
capture = <&ssi1 &src0 &dvc1>;
};
};
/*
* (B) CPU1
*/
port@1 {
reg = <1>;
rsnd_b_ep: endpoint {
remote-endpoint = <&fe_b_ep>;
bitclock-master;
frame-master;
playback = <&src2 &ctu03 &mix0 &dvc0 &ssi0>;
};
};
};
};
|