forked from respeaker/seeed-voicecard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
seeed-8mic-voicecard-overlay.dts
119 lines (103 loc) · 2.29 KB
/
seeed-8mic-voicecard-overlay.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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2708";
fragment@0 {
target = <&i2s>;
__overlay__ {
#sound-dai-cells = <0>;
status = "okay";
};
};
fragment@1 {
target-path = "/";
__overlay__ {
ac10x_mclk: codec-mclk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <24000000>;
};
};
};
fragment@2 {
target = <&gpio>;
__overlay__ {
spk_amp_pins: spk_pins {
brcm,pins = <27 6>; /* SPK_SHDN IRQ */
brcm,function = <1 0>; /* out in */
brcm,pull = <0 0>; /* - - */
};
gpclk1_pins: gpclk1_pins {
brcm,pins = <5>;
brcm,function = <4>; /* alt func 0 */
brcm,pull = <0>; /* - */
};
};
};
fragment@3 {
target = <&i2c1>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
ac101: ac101@1a{
compatible = "x-power,ac101";
pinctrl-names = "default";
pinctrl-0 = <&spk_amp_pins &gpclk1_pins>;
spk-amp-switch-gpios = <&gpio 27 0>;
switch-irq-gpios = <&gpio 6 0>;
reg = <0x1a>;
#sound-dai-cells = <0>;
};
ac108_a: ac108@35{
compatible = "x-power,ac108_0";
reg = <0x35>;
#sound-dai-cells = <0>;
data-protocol = <0>;
tdm-chips-count = <2>;
};
ac108_b: ac108@3b{
compatible = "x-power,ac108_1";
reg = <0x3b>;
#sound-dai-cells = <0>;
data-protocol = <0>;
tdm-chips-count = <2>;
};
};
};
fragment@4 {
target = <&sound>;
sound_overlay: __overlay__ {
compatible = "seeed-voicecard";
seeed-voice-card,name = "seeed-8mic-voicecard";
seeed-voice-card,channels-playback-override = <8>;
seeed-voice-card,channels-capture-override = <8>;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
seeed-voice-card,dai-link@0 {
format = "dsp_a";
bitclock-master = <&codec0_dai>;
frame-master = <&codec0_dai>;
/* bitclock-inversion; */
/* frame-inversion; */
reg = <0>;
cpu {
sound-dai = <&i2s>;
dai-tdm-slot-num = <2>;
dai-tdm-slot-width = <32>;
dai-tdm-slot-tx-mask = <1 1 0 0>;
dai-tdm-slot-rx-mask = <1 1 0 0>;
};
codec0_dai: codec {
sound-dai = <&ac108_a>;
clocks = <&ac10x_mclk>;
system-clock-id = <1>;
};
};
};
};
__overrides__ {
card-name = <&sound_overlay>,"seeed-voice-card,name";
};
};