Skip to content
Snippets Groups Projects
Commit 8908ba21 authored by Angus Ainslie (Purism)'s avatar Angus Ainslie (Purism)
Browse files

arm64: dts: librem5: add digital mic routing


Enable the digital mics

Signed-off-by: default avatarAngus Ainslie (Purism) <angus@akkea.ca>
parent 53047dd3
7 merge requests!101Adjust the pin control register values of each SDA and SCL pin,!82USB: Add USB_QUIRK_RESET_RESUME quirk for Microchip USB2642,!71Make I2C1 operate at 387kHz,!66Purism redpine driver,!54Drop capacity,!44WIP power: bq25890_charger: Indicate charging state,!24Busfreq
......@@ -424,21 +424,18 @@ sound {
simple-audio-card,name = "wm8962";
simple-audio-card,format = "i2s";
simple-audio-card,widgets =
"Headphone", "Headphone Jack";
#if 0
"Microphone", "Microphone Jack",
"Speaker", "Speaker Ext",
"Line", "Line In Jack";
#endif
"Headphone", "Headphone",
"Microphone", "Headset Mic",
"Microphone", "Digital Mic",
"Speaker", "Speaker";
simple-audio-card,routing =
/* sink - source pairs */
"Headphone Jack", "HPOUT";
#if 0
"MIC_IN", "Microphone Jack",
"Microphone Jack", "Mic Bias",
"LINE_IN", "Line In Jack",
"Speaker Ext", "LINE_OUT";
#endif
"Headphone", "HPOUTL",
"Headphone", "HPOUTR",
"Speaker", "SPKOUTL",
"Speaker", "SPKOUTR",
"Headset Mic", "MICBIAS",
"IN3R", "Headset Mic",
"DMICDAT", "Digital Mic";
simple-audio-card,cpu {
sound-dai = <&sai2>;
};
......@@ -793,6 +790,7 @@ codec: wm8962@1a {
assigned-clock-rates = <22579200>;
//assigned-clock-rates = <24576000>;
#sound-dai-cells = <0>;
mic-cfg = <0x200>;
#if defined( AUDIO_REGULATOR )
DCVDD-supply = <&reg_aud_1v8>;
DBVDD-supply = <&reg_aud_1v8>;
......@@ -805,11 +803,11 @@ codec: wm8962@1a {
#endif
gpio-cfg = <
0x0000 /* n/c */
0x0000 /* gpio2, 1: default */
0x0000 /* gpio3, 2: todo: dmicclk, 1_0011 */
0x0001 /* gpio2, 1: default */
0x0013 /* gpio3, 2: dmicclk */
0x0000 /* n/c, 3: default */
0x0000 /* gpio5, 4: default */
0x0000 /* gpio6, 5: dmic_dat, 1_0100 */
0x8014 /* gpio5, 4: dmic_dat */
0x0000 /* gpio6, 5: default */
>;
status = "okay";
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment