-
Notifications
You must be signed in to change notification settings - Fork 52.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm64: dts: mediatek: asurada: Enable audio support
Enable audio support for the Asurada platform. This consists of the machine sound card, the rt1015p codec for the speakers, the rt5682 codec for the headset, and the dmic codec for the internal microphone. Newer revisions of spherion and hayato use the rt5682s codec for the headset instead, so the codecs and card compatible are added through separate dtsi files to prepare for that. HDMI audio support is left out for now since the DisplayPort chip required isn't enabled yet. Tested-by: Chen-Yu Tsai <wenst@chromium.org> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20221102190611.283546-5-nfraprado@collabora.com Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
- Loading branch information
Showing
6 changed files
with
313 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
arch/arm64/boot/dts/mediatek/mt8192-asurada-audio-rt1015p-rt5682.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Copyright 2020 Google LLC | ||
*/ | ||
|
||
#include "mt8192-asurada-audio-rt5682.dtsi" | ||
#include "mt8192-asurada-audio-rt1015p.dtsi" | ||
|
||
&sound { | ||
compatible = "mediatek,mt8192_mt6359_rt1015p_rt5682"; | ||
|
||
speaker-codecs { | ||
sound-dai = <&rt1015p>; | ||
}; | ||
|
||
headset-codec { | ||
sound-dai = <&rt5682 0>; | ||
}; | ||
}; |
26 changes: 26 additions & 0 deletions
26
arch/arm64/boot/dts/mediatek/mt8192-asurada-audio-rt1015p.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Copyright (C) 2022 MediaTek Inc. | ||
*/ | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/pinctrl/mt8192-pinfunc.h> | ||
|
||
/ { | ||
rt1015p: audio-codec { | ||
compatible = "realtek,rt1015p"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&rt1015p_pins>; | ||
sdb-gpios = <&pio 147 GPIO_ACTIVE_HIGH>; | ||
#sound-dai-cells = <0>; | ||
}; | ||
}; | ||
|
||
&pio { | ||
rt1015p_pins: rt1015p-default-pins { | ||
pins { | ||
pinmux = <PINMUX_GPIO147__FUNC_GPIO147>; | ||
output-low; | ||
}; | ||
}; | ||
}; |
21 changes: 21 additions & 0 deletions
21
arch/arm64/boot/dts/mediatek/mt8192-asurada-audio-rt5682.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Copyright (C) 2022 MediaTek Inc. | ||
*/ | ||
|
||
&i2c1 { | ||
rt5682: audio-codec@1a { | ||
compatible = "realtek,rt5682i"; | ||
reg = <0x1a>; | ||
interrupts-extended = <&pio 18 IRQ_TYPE_LEVEL_LOW>; | ||
realtek,jd-src = <1>; | ||
realtek,btndet-delay = <16>; | ||
#sound-dai-cells = <1>; | ||
|
||
AVDD-supply = <&mt6359_vio18_ldo_reg>; | ||
DBVDD-supply = <&mt6359_vio18_ldo_reg>; | ||
LDO1-IN-supply = <&mt6359_vio18_ldo_reg>; | ||
MICVDD-supply = <&pp3300_g>; | ||
VBAT-supply = <&pp3300_ldo_z>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters