forked from respeaker/seeed-voicecard
-
Notifications
You must be signed in to change notification settings - Fork 2
/
seeed-2mic-voicecard-overlay.dts
107 lines (94 loc) · 2.64 KB
/
seeed-2mic-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
/dts-v1/;
/plugin/;
/ {
compatible = "rockchip,rk3399";
fragment@0 {
target = <&i2s0>;
__overlay__ {
status = "disabled";
};
};
fragment@1 {
target = <&i2s1>;
__overlay__ {
status = "okay";
};
};
fragment@2 {
target = <&i2s2>;
__overlay__ {
status = "disabled";
};
};
fragment@3 {
target-path="/";
__overlay__ {
wm8960_mclk: wm8960_mclk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <24000000>;
};
};
};
fragment@4 {
target = <&i2c7>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
wm8960: wm8960{
compatible = "wlf,wm8960";
reg = <0x1a>;
#sound-dai-cells = <0>;
AVDD-supply = <&vcc5v0_sys>;
DVDD-supply = <&vcc3v3_sys>;
};
};
};
fragment@5 {
target-path = "/";
__overlay__ {
sound_overlay: i2s-sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,name = "seeed-2mic-voicecard";
status = "okay";
simple-audio-card,mclk-fs = <0x100>;
simple-audio-card,widgets =
"Microphone", "Mic Jack",
"Line", "Line In",
"Line", "Line Out",
"Speaker", "Speaker",
"Headphone", "Headphone Jack";
simple-audio-card,routing =
"Headphone Jack", "HP_L",
"Headphone Jack", "HP_R",
"Speaker", "SPK_LP",
"Speaker", "SPK_LN",
"LINPUT1", "Mic Jack",
"LINPUT3", "Mic Jack",
"RINPUT1", "Mic Jack",
"RINPUT2", "Mic Jack";
simple-audio-card,cpu {
sound-dai = <&i2s1>;
};
dailink0_slave: simple-audio-card,codec {
sound-dai = <&wm8960>;
clocks = <&wm8960_mclk>;
clock-names = "mclk";
};
};
};
};
fragment@6 {
target = <&spi1>;
__overlay__ {
status = "okay";
};
};
__overrides__ {
alsaname = <&sound_overlay>,"simple-audio-card,name";
compatible = <&wm8960>,"compatible";
master = <0>,"=2!3";
};
};