-
Notifications
You must be signed in to change notification settings - Fork 7
/
generic_audio_out_tdm8_master.dts
59 lines (47 loc) · 1.44 KB
/
generic_audio_out_tdm8_master.dts
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
// Device Tree Overlay for generic TDM8 audio output
// Raspberry outputs 2 audio channels arranged in tdm8 format, 32 bit, 2 channels, bclk = 256 x fs
// Raspberry Pi is the clock master --> clocks are outputs
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2708", "brcm,bcm2710", "brcm,bcm2711";
fragment@0 {
target = <&sound>;
__overlay__ {
compatible = "simple-audio-card";
simple-audio-card,name = "Generic TDM8 Output - Master";
status="okay";
playback_link: simple-audio-card,dai-link@1 {
format = "i2s";
p_cpu_dai: cpu {
sound-dai = <&i2s>;
//TDM slot configuration - BCLK ratio: 256 x Fs
dai-tdm-slot-num = <8>;
dai-tdm-slot-width = <32>;
};
p_codec_dai: codec {
sound-dai = <&codec_out>;
};
};
};
};
fragment@1 {
target-path = "/";
__overlay__ {
codec_out: spdif-transmitter {
#address-cells = <0>;
#size-cells = <0>;
#sound-dai-cells = <0>;
compatible = "linux,spdif-dit";
status = "okay";
};
};
};
fragment@2 {
target = <&i2s>;
__overlay__ {
#sound-dai-cells = <0>;
status = "okay";
};
};
};