xref: /linux/scripts/dtc/include-prefixes/arm64/renesas/ulcb-simple-audio-card.dtsi (revision e752ab11dcb48353727ea26eefd740155e028865)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree for ULCB + Simple Audio Card
4 *
5 * Copyright (C) 2022 Renesas Electronics Corp.
6 */
7
8/*
9 *	(A) CPU0 <----> ak4613
10 *	(B) CPU1  ----> HDMI
11 *
12 *	(A) aplay   -D plughw:0,0 xxx.wav
13 *	(B) aplay   -D plughw:0,1 xxx.wav
14 *
15 *	(A) arecord -D plughw:0,0 xxx.wav
16 */
17
18/ {
19	sound_card: sound {
20		compatible = "simple-audio-card";
21		label = "rcar-sound";
22
23		#address-cells = <1>;
24		#size-cells = <0>;
25
26		/*
27		 * (A) CPU0 <-> ak4613
28		 */
29		simple-audio-card,dai-link@0 {
30			reg = <0>;
31			cpu {
32				bitclock-master;
33				frame-master;
34				sound-dai = <&rcar_sound 0>;
35			};
36			codec {
37				sound-dai = <&ak4613>;
38			};
39		};
40		/*
41		 * (B) CPU1 -> HDMI
42		 */
43		simple-audio-card,dai-link@1 {
44			reg = <1>;
45			cpu {
46				bitclock-master;
47				frame-master;
48				sound-dai = <&rcar_sound 1>;
49			};
50			codec {
51				sound-dai = <&hdmi0>;
52			};
53		};
54	};
55};
56
57&ak4613 {
58	/*
59	 * (A) CPU0 <-> ak4613
60	 */
61	#sound-dai-cells = <0>;
62};
63
64&hdmi0 {
65	/*
66	 * (B) CPU1 -> HDMI
67	 */
68	#sound-dai-cells = <0>;
69};
70
71&rcar_sound {
72	#sound-dai-cells = <1>;
73
74	rcar_sound,dai {
75		/*
76		 * (A) CPU0 <-> ak4613
77		 */
78		dai0 {
79			playback = <&ssi0 &src0 &dvc0>;
80			capture  = <&ssi1 &src1 &dvc1>;
81		};
82		/*
83		 * (B) CPU1 -> HDMI
84		 */
85		dai1 {
86			playback = <&ssi2>;
87		};
88	};
89};
90