Merge tag 'v5.15.57' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / superaudioboard-overlay.dts
1 // Definitions for SuperAudioBoard
2 /dts-v1/;
3 /plugin/;
4
5 / {
6         compatible = "brcm,bcm2835";
7
8         fragment@0 {
9                 target = <&sound>;
10                 __overlay__ {
11                         compatible = "simple-audio-card";
12                         i2s-controller = <&i2s>;
13                         status = "okay";
14
15                         simple-audio-card,name = "SuperAudioBoard";
16
17                         simple-audio-card,widgets =
18                                 "Line", "Line In",
19                                 "Line", "Line Out";
20
21                         simple-audio-card,routing =
22                                 "Line Out","AOUTA+",
23                                 "Line Out","AOUTA-",
24                                 "Line Out","AOUTB+",
25                                 "Line Out","AOUTB-",
26                                 "AINA","Line In",
27                                 "AINB","Line In";
28
29                         simple-audio-card,format = "i2s";
30
31                         simple-audio-card,bitclock-master = <&sound_master>;
32                         simple-audio-card,frame-master = <&sound_master>;
33
34                         simple-audio-card,cpu {
35                                 sound-dai = <&i2s>;
36                                 dai-tdm-slot-num = <2>;
37                                 dai-tdm-slot-width = <32>;
38                         };
39
40                         sound_master: simple-audio-card,codec {
41                                 sound-dai = <&cs4271>;
42                                 system-clock-frequency = <24576000>;
43                         };
44                 };
45         };
46
47         fragment@1 {
48                 target = <&i2s>;
49                 __overlay__ {
50                         status = "okay";
51                 };
52         };
53     
54         fragment@2 {
55                 target = <&i2c1>;
56                 __overlay__ {
57                         #address-cells = <1>;
58                         #size-cells = <0>;
59                         status = "okay";
60
61                         cs4271: cs4271@10 {
62                                 #sound-dai-cells = <0>;
63                                 compatible = "cirrus,cs4271";
64                                 reg = <0x10>;
65                                 status = "okay";
66                                 reset-gpio = <&gpio 26 0>; /* Pin 26, active high */
67                         };
68                 };
69         };
70         __overrides__ {
71                 gpiopin = <&cs4271>,"reset-gpio:4";
72         };
73 };