mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-03 09:37:17 +00:00
arm64: dts: mediatek: mt8195-cherry: Specify sound DAI links and routing
The drivers and bindings acquired support for specifying audio hardware and links in device tree: describe and link the sound related HW of this machine. Link: https://lore.kernel.org/r/20240416071410.75620-18-angelogioacchino.delregno@collabora.com Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
This commit is contained in:
parent
27f0974a98
commit
87728e3ccf
@ -240,6 +240,7 @@ adsp_device_mem: memory@60e80000 {
|
|||||||
spk_amplifier: rt1019p {
|
spk_amplifier: rt1019p {
|
||||||
compatible = "realtek,rt1019p";
|
compatible = "realtek,rt1019p";
|
||||||
label = "rt1019p";
|
label = "rt1019p";
|
||||||
|
#sound-dai-cells = <0>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&rt1019p_pins_default>;
|
pinctrl-0 = <&rt1019p_pins_default>;
|
||||||
sdb-gpios = <&pio 100 GPIO_ACTIVE_HIGH>;
|
sdb-gpios = <&pio 100 GPIO_ACTIVE_HIGH>;
|
||||||
@ -366,6 +367,7 @@ &disp_pwm0 {
|
|||||||
&dp_tx {
|
&dp_tx {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
|
#sound-dai-cells = <0>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&dptx_pin>;
|
pinctrl-0 = <&dptx_pin>;
|
||||||
|
|
||||||
@ -436,6 +438,7 @@ audio_codec: codec@1a {
|
|||||||
/* Realtek RT5682i or RT5682s, sharing the same configuration */
|
/* Realtek RT5682i or RT5682s, sharing the same configuration */
|
||||||
reg = <0x1a>;
|
reg = <0x1a>;
|
||||||
interrupts-extended = <&pio 89 IRQ_TYPE_EDGE_BOTH>;
|
interrupts-extended = <&pio 89 IRQ_TYPE_EDGE_BOTH>;
|
||||||
|
#sound-dai-cells = <0>;
|
||||||
realtek,jd-src = <1>;
|
realtek,jd-src = <1>;
|
||||||
|
|
||||||
AVDD-supply = <&mt6359_vio18_ldo_reg>;
|
AVDD-supply = <&mt6359_vio18_ldo_reg>;
|
||||||
@ -1162,6 +1165,48 @@ &sound {
|
|||||||
"AFE_SOF_DL2", "AFE_SOF_DL3", "AFE_SOF_UL4", "AFE_SOF_UL5";
|
"AFE_SOF_DL2", "AFE_SOF_DL3", "AFE_SOF_UL4", "AFE_SOF_UL5";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&aud_pins_default>;
|
pinctrl-0 = <&aud_pins_default>;
|
||||||
|
|
||||||
|
audio-routing =
|
||||||
|
"Headphone", "HPOL",
|
||||||
|
"Headphone", "HPOR",
|
||||||
|
"IN1P", "Headset Mic",
|
||||||
|
"Ext Spk", "Speaker";
|
||||||
|
|
||||||
|
mm-dai-link {
|
||||||
|
link-name = "ETDM1_IN_BE";
|
||||||
|
mediatek,clk-provider = "cpu";
|
||||||
|
};
|
||||||
|
|
||||||
|
hs-playback-dai-link {
|
||||||
|
link-name = "ETDM1_OUT_BE";
|
||||||
|
mediatek,clk-provider = "cpu";
|
||||||
|
codec {
|
||||||
|
sound-dai = <&audio_codec>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
hs-capture-dai-link {
|
||||||
|
link-name = "ETDM2_IN_BE";
|
||||||
|
mediatek,clk-provider = "cpu";
|
||||||
|
codec {
|
||||||
|
sound-dai = <&audio_codec>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
spk-playback-dai-link {
|
||||||
|
link-name = "ETDM2_OUT_BE";
|
||||||
|
mediatek,clk-provider = "cpu";
|
||||||
|
codec {
|
||||||
|
sound-dai = <&spk_amplifier>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
displayport-dai-link {
|
||||||
|
link-name = "DPTX_BE";
|
||||||
|
codec {
|
||||||
|
sound-dai = <&dp_tx>;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&spi0 {
|
&spi0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user