124 lines
3.6 KiB
Text
124 lines
3.6 KiB
Text
|
/dts-v1/;
|
||
|
/plugin/;
|
||
|
|
||
|
/ {
|
||
|
compatible = "brcm,bcm2708";
|
||
|
|
||
|
fragment@0 {
|
||
|
target = <&i2s>;
|
||
|
__overlay__ {
|
||
|
status = "okay";
|
||
|
};
|
||
|
};
|
||
|
fragment@1 {
|
||
|
target-path="/";
|
||
|
__overlay__ {
|
||
|
wm8960_mclk: wm8960_mclk {
|
||
|
compatible = "fixed-clock";
|
||
|
#clock-cells = <0>;
|
||
|
clock-frequency = <12288000>;
|
||
|
};
|
||
|
|
||
|
};
|
||
|
};
|
||
|
fragment@2 {
|
||
|
target = <&i2c1>;
|
||
|
__overlay__ {
|
||
|
#address-cells = <1>;
|
||
|
#size-cells = <0>;
|
||
|
status = "okay";
|
||
|
|
||
|
wm8960: wm8960{
|
||
|
compatible = "wlf,wm8960";
|
||
|
reg = <0x1a>;
|
||
|
#sound-dai-cells = <0>;
|
||
|
AVDD-supply = <&vdd_5v0_reg>;
|
||
|
DVDD-supply = <&vdd_3v3_reg>;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
fragment@3 {
|
||
|
target = <&sound>;
|
||
|
master_overlay: __dormant__ {
|
||
|
compatible = "simple-audio-card";
|
||
|
simple-audio-card,format = "i2s";
|
||
|
simple-audio-card,name = "seeed-voicecard";
|
||
|
simple-audio-card,bitclock-master = <&dailink0_master>;
|
||
|
simple-audio-card,frame-master = <&dailink0_master>;
|
||
|
status = "okay";
|
||
|
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 = <&i2s>;
|
||
|
};
|
||
|
dailink0_master: simple-audio-card,codec {
|
||
|
sound-dai = <&wm8960>;
|
||
|
clocks = <&wm8960_mclk>;
|
||
|
clock-names = "mclk";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
fragment@4 {
|
||
|
target = <&sound>;
|
||
|
slave_overlay: __overlay__ {
|
||
|
compatible = "simple-audio-card";
|
||
|
simple-audio-card,format = "i2s";
|
||
|
simple-audio-card,name = "seeed-voicecard";
|
||
|
status = "okay";
|
||
|
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 = <&i2s>;
|
||
|
};
|
||
|
dailink0_slave: simple-audio-card,codec {
|
||
|
sound-dai = <&wm8960>;
|
||
|
clocks = <&wm8960_mclk>;
|
||
|
clock-names = "mclk";
|
||
|
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
__overrides__ {
|
||
|
alsaname = <&master_overlay>,"simple-audio-card,name",
|
||
|
<&slave_overlay>,"simple-audio-card,name";
|
||
|
compatible = <&wm8960>,"compatible";
|
||
|
master = <0>,"=2!3";
|
||
|
};
|
||
|
};
|
||
|
|