summaryrefslogtreecommitdiffstats
path: root/dts/src/arm64/renesas/ulcb-kf-simple-audio-card.dtsi
blob: 28d29ecfb395b2378db83aae5862ffe8fe36466f (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
// SPDX-License-Identifier: GPL-2.0
/*
 * Device Tree for ULCB + Kingfisher + Simple Audio Card
 *
 * Copyright (C) 2022 Renesas Electronics Corp.
 */

/*
 *	(A) CPU0 <----> ak4613
 *	(B) CPU1  ----> HDMI
 *	(C) CPU2  ----> PCM3168A-p
 *	(D) CPU3 <----  PCM3168A-c
 *
 *	(A) aplay   -D plughw:0,0 xxx.wav
 *	(B) aplay   -D plughw:0,1 xxx.wav
 *	(C) aplay   -D plughw:1,0 xxx.wav
 *
 *	(A) arecord -D plughw:0,0 xxx.wav
 *	(D) arecord -D plughw:1,1 xxx.wav
 */

/ {
	sound_card_kf: expand-sound {
		compatible = "simple-audio-card";
		label = "snd-kf";

		#address-cells = <1>;
		#size-cells = <0>;

		/*
		 * (C) CPU2 -> PCM3168A-p
		 */
		simple-audio-card,dai-link@0 {
			reg = <0>;
			cpu {
				bitclock-master;
				frame-master;
				dai-tdm-slot-num = <8>;
				sound-dai = <&rcar_sound 2>;
			};
			codec {
				mclk-fs = <512>;
				sound-dai = <&pcm3168a 0>;
			};
		};
		/*
		 * (D) CPU3 <- PCM3168A-c
		 */
		simple-audio-card,dai-link@1 {
			reg = <1>;
			cpu {
				bitclock-master;
				frame-master;
				dai-tdm-slot-num = <6>;
				sound-dai = <&rcar_sound 3>;
			};
			codec {
				mclk-fs = <512>;
				sound-dai = <&pcm3168a 1>;
			};
		};
	};
};

&pcm3168a {
	/*
	 * (C) CPU2 -> PCM3168A-p
	 * (D) CPU3 <- PCM3168A-c
	 */
	#sound-dai-cells = <1>;
};

&rcar_sound {
	rcar_sound,dai@1 {
		reg = <1>;

		/*
		 * (C) CPU2 -> PCM3168A-p
		 */
		dai2 {
			playback = <&ssi3>;
		};
		/*
		 * (D) CPU3 <- PCM3168A-c
		 */
		dai3 {
			capture = <&ssi4>;
		};
	};
};