summaryrefslogtreecommitdiff
path: root/arch/arm64
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2021-02-21 14:07:07 +0300
committerShawn Guo <shawnguo@kernel.org>2021-03-15 07:22:29 +0300
commit6f46f7ff8037d06ab7857d1f096e035d682d955c (patch)
tree7f36193bc654e86c4a8de295c79c495c97658a4d /arch/arm64
parent5b65f39ddcc19d9355b8e1101138bb71ef004330 (diff)
downloadlinux-6f46f7ff8037d06ab7857d1f096e035d682d955c.tar.xz
arm64: dts: librem5-devkit: Add speaker amplifier
Wire up the amplifier that drives the builtin speaker. Signed-off-by: Guido Günther <agx@sigxcpu.org> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts21
1 files changed, 19 insertions, 2 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
index 28edc684395f..82d6d039770c 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
@@ -165,19 +165,21 @@
sound {
compatible = "simple-audio-card";
+ simple-audio-card,aux-devs = <&speaker_amp>;
simple-audio-card,name = "Librem 5 Devkit";
simple-audio-card,format = "i2s";
simple-audio-card,widgets =
"Microphone", "Microphone Jack",
"Headphone", "Headphone Jack",
- "Speaker", "Speaker Ext",
+ "Speaker", "Builtin Speaker",
"Line", "Line In Jack";
simple-audio-card,routing =
"MIC_IN", "Microphone Jack",
"Microphone Jack", "Mic Bias",
"LINE_IN", "Line In Jack",
"Headphone Jack", "HP_OUT",
- "Speaker Ext", "LINE_OUT";
+ "Builtin Speaker", "Speaker Amp OUTR",
+ "Speaker Amp INR", "LINE_OUT";
simple-audio-card,cpu {
sound-dai = <&sai2>;
@@ -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 {
compatible = "gpio-vibrator";
pinctrl-names = "default";
@@ -640,6 +651,12 @@
>;
};
+ pinctrl_spkamp: spkamp {
+ fsl,pins = <
+ MX8MQ_IOMUXC_SPDIF_TX_GPIO5_IO3 0x81 /* MUTE */
+ >;
+ };
+
pinctrl_pmic: pmicgrp {
fsl,pins = <
MX8MQ_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x80 /* PMIC intr */