提交 6f46f7ff 编写于 作者: G Guido Günther 提交者: Shawn Guo

arm64: dts: librem5-devkit: Add speaker amplifier

Wire up the amplifier that drives the builtin speaker.
Signed-off-by: NGuido Günther <agx@sigxcpu.org>
Signed-off-by: NShawn Guo <shawnguo@kernel.org>
上级 5b65f39d
...@@ -165,19 +165,21 @@ ...@@ -165,19 +165,21 @@
sound { sound {
compatible = "simple-audio-card"; compatible = "simple-audio-card";
simple-audio-card,aux-devs = <&speaker_amp>;
simple-audio-card,name = "Librem 5 Devkit"; simple-audio-card,name = "Librem 5 Devkit";
simple-audio-card,format = "i2s"; simple-audio-card,format = "i2s";
simple-audio-card,widgets = simple-audio-card,widgets =
"Microphone", "Microphone Jack", "Microphone", "Microphone Jack",
"Headphone", "Headphone Jack", "Headphone", "Headphone Jack",
"Speaker", "Speaker Ext", "Speaker", "Builtin Speaker",
"Line", "Line In Jack"; "Line", "Line In Jack";
simple-audio-card,routing = simple-audio-card,routing =
"MIC_IN", "Microphone Jack", "MIC_IN", "Microphone Jack",
"Microphone Jack", "Mic Bias", "Microphone Jack", "Mic Bias",
"LINE_IN", "Line In Jack", "LINE_IN", "Line In Jack",
"Headphone Jack", "HP_OUT", "Headphone Jack", "HP_OUT",
"Speaker Ext", "LINE_OUT"; "Builtin Speaker", "Speaker Amp OUTR",
"Speaker Amp INR", "LINE_OUT";
simple-audio-card,cpu { simple-audio-card,cpu {
sound-dai = <&sai2>; sound-dai = <&sai2>;
...@@ -207,6 +209,15 @@ ...@@ -207,6 +209,15 @@
}; };
}; };
speaker_amp: speaker-amp {
compatible = "simple-audio-amplifier";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_spkamp>;
VCC-supply = <&reg_3v3_p>;
sound-name-prefix = "Speaker Amp";
enable-gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>;
};
vibrator { vibrator {
compatible = "gpio-vibrator"; compatible = "gpio-vibrator";
pinctrl-names = "default"; pinctrl-names = "default";
...@@ -640,6 +651,12 @@ ...@@ -640,6 +651,12 @@
>; >;
}; };
pinctrl_spkamp: spkamp {
fsl,pins = <
MX8MQ_IOMUXC_SPDIF_TX_GPIO5_IO3 0x81 /* MUTE */
>;
};
pinctrl_pmic: pmicgrp { pinctrl_pmic: pmicgrp {
fsl,pins = < fsl,pins = <
MX8MQ_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x80 /* PMIC intr */ MX8MQ_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x80 /* PMIC intr */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册