BCM2708: Add core Device Tree support
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / tc358743-audio-overlay.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2 // Definitions to add I2S audio from the Toshiba TC358743 HDMI to CSI2 bridge.
3 // Requires tc358743 overlay to have been loaded to actually function.
4 /dts-v1/;
5 /plugin/;
6
7 / {
8         compatible = "brcm,bcm2835";
9
10         fragment@0 {
11                 target = <&i2s>;
12                 __overlay__ {
13                         status = "okay";
14                 };
15         };
16
17         fragment@1 {
18                 target-path = "/";
19                 __overlay__ {
20                         tc358743_codec: tc358743-codec {
21                                 #sound-dai-cells = <0>;
22                                 compatible = "linux,spdif-dir";
23                                 status = "okay";
24                         };
25                 };
26         };
27
28         fragment@2 {
29                 target = <&sound>;
30                 sound_overlay: __overlay__ {
31                         compatible = "simple-audio-card";
32                         simple-audio-card,format = "i2s";
33                         simple-audio-card,name = "tc358743";
34                         simple-audio-card,bitclock-master = <&dailink0_slave>;
35                         simple-audio-card,frame-master = <&dailink0_slave>;
36                         status = "okay";
37
38                         simple-audio-card,cpu {
39                                 sound-dai = <&i2s>;
40                                 dai-tdm-slot-num = <2>;
41                                 dai-tdm-slot-width = <32>;
42                         };
43                         dailink0_slave: simple-audio-card,codec {
44                                 sound-dai = <&tc358743_codec>;
45                         };
46                 };
47         };
48
49         __overrides__ {
50                 card-name = <&sound_overlay>,"simple-audio-card,name";
51         };
52 };