Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -6379,6 +6379,13 @@ Info: Overlay for the Waveshare wm8960 soundcard
Load: dtoverlay=wm8960-soundcard,<param>=<val>
Params: alsaname Changes the card name in ALSA
compatible Changes the codec compatibility
mclk Sets the MCLK clock frequency in Hz (default
12.288 MHz for the standard Waveshare HAT,
24 MHz when the media parameter is used)
media Uses the media board configuration: 24 MHz
MCLK, enables headphone jack detection
(wlf,hp-cfg) and an on-board microphone /
dual speaker sound card


Name: ws2812-pio
Expand Down
40 changes: 40 additions & 0 deletions arch/arm/boot/dts/overlays/wm8960-soundcard-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,48 @@
};
};

/* EDATEC media board: 24MHz MCLK oscillator */
fragment@4 {
target = <&wm8960_mclk>;
__dormant__ {
clock-frequency = <24000000>;
};
};

/* EDATEC media board: enable headphone jack detection */
fragment@5 {
target = <&wm8960>;
__dormant__ {
wlf,hp-cfg = <2 2 3>;
};
};

/* EDATEC media board: on-board mic + dual speakers sound card */
fragment@6 {
target = <&sound>;
__dormant__ {
simple-audio-card,widgets =
"Microphone", "On Board Mic",
"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",
"Speaker", "SPK_RP",
"Speaker", "SPK_RN",
"LINPUT2", "Headphone Jack";
};
};

__overrides__ {
alsaname = <&slave_overlay>,"simple-audio-card,name";
compatible = <&wm8960>,"compatible";
mclk = <&wm8960_mclk>,"clock-frequency:0";
media = <0>, "=4=5=6";
};
};
Loading