* [PATCH 0/5] Enable audio output for Genio 700 EVK board
@ 2024-12-05 12:13 Nícolas F. R. A. Prado
2024-12-05 12:13 ` [PATCH 1/5] arm64: dts: mt6359: Add #sound-dai-cells property Nícolas F. R. A. Prado
` (5 more replies)
0 siblings, 6 replies; 14+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-12-05 12:13 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Liam Girdwood, Mark Brown, Trevor Wu
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-sound, Nícolas F. R. A. Prado,
Aary Patil, Suhrid Subramaniam, parkeryang
This series enables audio output support for the Genio 700 EVK board.
Patches 1-4 do the required binding and DT changes, and patch 5
describes the audio DT nodes to get audio output working on the two
audio jacks, Earphone and Speaker, present on the board.
The standalone fix in [1] is required in addition to this series in
order to get the sound card probing.
[1] https://lore.kernel.org/all/20241203-mt8188-6359-unhardcode-dmic-v1-1-346e3e5cbe6d@collabora.com
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
Nícolas F. R. A. Prado (5):
arm64: dts: mt6359: Add #sound-dai-cells property
ASoC: dt-bindings: mediatek,mt8188-mt6359: Add compatible for mt8390 evk
ASoC: dt-bindings: mediatek,mt8188-mt6359: Add DSP properties
ASoC: dt-bindings: mediatek,mt8188-mt6359: Allow DL_SRC/UL_SRC dai-links
arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support
.../bindings/sound/mediatek,mt8188-mt6359.yaml | 26 ++++++++---
arch/arm64/boot/dts/mediatek/mt6359.dtsi | 1 +
.../boot/dts/mediatek/mt8390-genio-700-evk.dts | 50 ++++++++++++++++++++++
3 files changed, 72 insertions(+), 5 deletions(-)
---
base-commit: b852e1e7a0389ed6168ef1d38eb0bad71a6b11e8
change-id: 20241204-genio700-audio-output-fba8f2ebad10
Best regards,
--
Nícolas F. R. A. Prado <nfraprado@collabora.com>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 1/5] arm64: dts: mt6359: Add #sound-dai-cells property
2024-12-05 12:13 [PATCH 0/5] Enable audio output for Genio 700 EVK board Nícolas F. R. A. Prado
@ 2024-12-05 12:13 ` Nícolas F. R. A. Prado
2024-12-05 12:41 ` AngeloGioacchino Del Regno
2024-12-05 12:13 ` [PATCH 2/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add compatible for mt8390 evk Nícolas F. R. A. Prado
` (4 subsequent siblings)
5 siblings, 1 reply; 14+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-12-05 12:13 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Liam Girdwood, Mark Brown, Trevor Wu
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-sound, Nícolas F. R. A. Prado
MT6359 provides digital audio interfaces. Add a #sound-dai-cells
property for it to allow pointing to it from dai-link nodes.
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
arch/arm64/boot/dts/mediatek/mt6359.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt6359.dtsi b/arch/arm64/boot/dts/mediatek/mt6359.dtsi
index 8e1b8c85c6ede94a7beaefcdfc74ce47b3ab50fe..150ad84d5d2b30ab6064c71e1375ce5df5ae4b36 100644
--- a/arch/arm64/boot/dts/mediatek/mt6359.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt6359.dtsi
@@ -8,6 +8,7 @@ pmic: pmic {
compatible = "mediatek,mt6359";
interrupt-controller;
#interrupt-cells = <2>;
+ #sound-dai-cells = <1>;
pmic_adc: adc {
compatible = "mediatek,mt6359-auxadc";
--
2.47.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 2/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add compatible for mt8390 evk
2024-12-05 12:13 [PATCH 0/5] Enable audio output for Genio 700 EVK board Nícolas F. R. A. Prado
2024-12-05 12:13 ` [PATCH 1/5] arm64: dts: mt6359: Add #sound-dai-cells property Nícolas F. R. A. Prado
@ 2024-12-05 12:13 ` Nícolas F. R. A. Prado
2024-12-05 12:41 ` AngeloGioacchino Del Regno
2024-12-09 9:49 ` Krzysztof Kozlowski
2024-12-05 12:13 ` [PATCH 3/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add DSP properties Nícolas F. R. A. Prado
` (3 subsequent siblings)
5 siblings, 2 replies; 14+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-12-05 12:13 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Liam Girdwood, Mark Brown, Trevor Wu
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-sound, Nícolas F. R. A. Prado
Add a compatible for the MT8390 EVK. It is compatible with
mediatek,mt8188-mt6359-evb so make that the fallback compatible.
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
.../devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
index f94ad0715e3239653c74553e27231f1395babefa..ffe9347b543f5c687433862a21ad534b8aace27e 100644
--- a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
+++ b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
@@ -14,11 +14,15 @@ allOf:
properties:
compatible:
- enum:
- - mediatek,mt8188-es8326
- - mediatek,mt8188-mt6359-evb
- - mediatek,mt8188-nau8825
- - mediatek,mt8188-rt5682s
+ oneOf:
+ - enum:
+ - mediatek,mt8188-es8326
+ - mediatek,mt8188-mt6359-evb
+ - mediatek,mt8188-nau8825
+ - mediatek,mt8188-rt5682s
+ - items:
+ - const: mediatek,mt8390-mt6359-evk
+ - const: mediatek,mt8188-mt6359-evb
audio-routing:
description:
--
2.47.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 3/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add DSP properties
2024-12-05 12:13 [PATCH 0/5] Enable audio output for Genio 700 EVK board Nícolas F. R. A. Prado
2024-12-05 12:13 ` [PATCH 1/5] arm64: dts: mt6359: Add #sound-dai-cells property Nícolas F. R. A. Prado
2024-12-05 12:13 ` [PATCH 2/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add compatible for mt8390 evk Nícolas F. R. A. Prado
@ 2024-12-05 12:13 ` Nícolas F. R. A. Prado
2024-12-05 12:41 ` AngeloGioacchino Del Regno
2024-12-09 9:50 ` Krzysztof Kozlowski
2024-12-05 12:13 ` [PATCH 4/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Allow DL_SRC/UL_SRC dai-links Nícolas F. R. A. Prado
` (2 subsequent siblings)
5 siblings, 2 replies; 14+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-12-05 12:13 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Liam Girdwood, Mark Brown, Trevor Wu
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-sound, Nícolas F. R. A. Prado
Add the mediatek,adsp and mediatek,dai-link properties to allow
describing the DSP configuration in the sound card node, as is already
the case for other MediaTek SoCs.
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
.../devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
index ffe9347b543f5c687433862a21ad534b8aace27e..1e282c34dbd99851d3959b641096968c0b2e71be 100644
--- a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
+++ b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
@@ -33,6 +33,16 @@ properties:
$ref: /schemas/types.yaml#/definitions/phandle
description: The phandle of MT8188 ASoC platform.
+ mediatek,adsp:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description: The phandle of MT8195 ADSP platform.
+
+ mediatek,dai-link:
+ $ref: /schemas/types.yaml#/definitions/string-array
+ description:
+ A list of the desired dai-links in the sound card. Each entry is a
+ name defined in the machine driver.
+
patternProperties:
"^dai-link-[0-9]+$":
type: object
--
2.47.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 4/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Allow DL_SRC/UL_SRC dai-links
2024-12-05 12:13 [PATCH 0/5] Enable audio output for Genio 700 EVK board Nícolas F. R. A. Prado
` (2 preceding siblings ...)
2024-12-05 12:13 ` [PATCH 3/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add DSP properties Nícolas F. R. A. Prado
@ 2024-12-05 12:13 ` Nícolas F. R. A. Prado
2024-12-05 12:41 ` AngeloGioacchino Del Regno
2024-12-05 12:13 ` [PATCH 5/5] arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support Nícolas F. R. A. Prado
2024-12-05 16:05 ` (subset) [PATCH 0/5] Enable audio output for Genio 700 EVK board Mark Brown
5 siblings, 1 reply; 14+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-12-05 12:13 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Liam Girdwood, Mark Brown, Trevor Wu
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-sound, Nícolas F. R. A. Prado
Add DL_SRC_BE and UL_SRC_BE as possible link-names for dai-links. These
DAI back-ends are currently hardcoded in the driver to the
MT6359 codec, but they may still be overridden with dai-links in the
Devicetree to assign them additional codecs or even to make the
dependency to the MT6359 codec explicit and allow device links to probe
the components in the right order and avoid unnecessary probe deferrals.
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
index 1e282c34dbd99851d3959b641096968c0b2e71be..8993dff01244db9fc2fbf7bdefe7ea863be7c362 100644
--- a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
+++ b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
@@ -63,6 +63,8 @@ patternProperties:
- ETDM2_OUT_BE
- ETDM3_OUT_BE
- PCM1_BE
+ - DL_SRC_BE
+ - UL_SRC_BE
codec:
description: Holds subnode which indicates codec dai.
--
2.47.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 5/5] arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support
2024-12-05 12:13 [PATCH 0/5] Enable audio output for Genio 700 EVK board Nícolas F. R. A. Prado
` (3 preceding siblings ...)
2024-12-05 12:13 ` [PATCH 4/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Allow DL_SRC/UL_SRC dai-links Nícolas F. R. A. Prado
@ 2024-12-05 12:13 ` Nícolas F. R. A. Prado
2024-12-05 12:42 ` AngeloGioacchino Del Regno
2024-12-05 16:05 ` (subset) [PATCH 0/5] Enable audio output for Genio 700 EVK board Mark Brown
5 siblings, 1 reply; 14+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-12-05 12:13 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Liam Girdwood, Mark Brown, Trevor Wu
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-sound, Nícolas F. R. A. Prado,
Aary Patil, Suhrid Subramaniam, parkeryang
Describe all the components to get sound output working on the two audio
jacks, Earphone and Speaker, present on the Genio 700 EVK board with the
audio DSP enabled.
Co-developed-by: Aary Patil <aary.patil@mediatek.com>
Signed-off-by: Aary Patil <aary.patil@mediatek.com>
Co-developed-by: Suhrid Subramaniam <suhrid.subramaniam@mediatek.com>
Signed-off-by: Suhrid Subramaniam <suhrid.subramaniam@mediatek.com>
Co-developed-by: parkeryang <Parker.Yang@mediatek.com>
Signed-off-by: parkeryang <Parker.Yang@mediatek.com>
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
.../boot/dts/mediatek/mt8390-genio-700-evk.dts | 50 ++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts b/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts
index bb68665f0b2da80397b833db0241a06648a322a0..2fded39078773e81d8e0313d6b118b3064be308d 100644
--- a/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts
@@ -92,6 +92,24 @@ vpu_mem: memory@57000000 {
compatible = "shared-dma-pool";
reg = <0 0x57000000 0 0x1400000>; /* 20 MB */
};
+
+ adsp_mem: memory@60000000 {
+ compatible = "shared-dma-pool";
+ reg = <0 0x60000000 0 0xf00000>;
+ no-map;
+ };
+
+ afe_dma_mem: memory@60f00000 {
+ compatible = "shared-dma-pool";
+ reg = <0 0x60f00000 0 0x100000>;
+ no-map;
+ };
+
+ adsp_dma_mem: memory@61000000 {
+ compatible = "shared-dma-pool";
+ reg = <0 0x61000000 0 0x100000>;
+ no-map;
+ };
};
common_fixed_5v: regulator-0 {
@@ -209,6 +227,16 @@ usb_p2_vbus: regulator-9 {
};
};
+&adsp {
+ memory-region = <&adsp_dma_mem>, <&adsp_mem>;
+ status = "okay";
+};
+
+&afe {
+ memory-region = <&afe_dma_mem>;
+ status = "okay";
+};
+
&gpu {
mali-supply = <&mt6359_vproc2_buck_reg>;
status = "okay";
@@ -912,6 +940,28 @@ &scp {
status = "okay";
};
+&sound {
+ compatible = "mediatek,mt8390-mt6359-evk", "mediatek,mt8188-mt6359-evb";
+ model = "mt8390-evk";
+ pinctrl-names = "default";
+ pinctrl-0 = <&audio_default_pins>;
+ audio-routing =
+ "Headphone", "Headphone L",
+ "Headphone", "Headphone R";
+ mediatek,adsp = <&adsp>;
+ mediatek,dai-link = "DL_SRC_BE", "UL_SRC_BE", "AFE_SOF_DL2",
+ "AFE_SOF_DL3", "AFE_SOF_UL4", "AFE_SOF_UL5";
+ status = "okay";
+
+ dai-link-0 {
+ link-name = "DL_SRC_BE";
+
+ codec {
+ sound-dai = <&pmic 0>;
+ };
+ };
+};
+
&spi2 {
pinctrl-0 = <&spi2_pins>;
pinctrl-names = "default";
--
2.47.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH 4/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Allow DL_SRC/UL_SRC dai-links
2024-12-05 12:13 ` [PATCH 4/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Allow DL_SRC/UL_SRC dai-links Nícolas F. R. A. Prado
@ 2024-12-05 12:41 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 14+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-12-05 12:41 UTC (permalink / raw)
To: Nícolas F. R. A. Prado, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Matthias Brugger, Liam Girdwood, Mark Brown,
Trevor Wu
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-sound
Il 05/12/24 13:13, Nícolas F. R. A. Prado ha scritto:
> Add DL_SRC_BE and UL_SRC_BE as possible link-names for dai-links. These
> DAI back-ends are currently hardcoded in the driver to the
> MT6359 codec, but they may still be overridden with dai-links in the
> Devicetree to assign them additional codecs or even to make the
> dependency to the MT6359 codec explicit and allow device links to probe
> the components in the right order and avoid unnecessary probe deferrals.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 2/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add compatible for mt8390 evk
2024-12-05 12:13 ` [PATCH 2/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add compatible for mt8390 evk Nícolas F. R. A. Prado
@ 2024-12-05 12:41 ` AngeloGioacchino Del Regno
2024-12-09 9:49 ` Krzysztof Kozlowski
1 sibling, 0 replies; 14+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-12-05 12:41 UTC (permalink / raw)
To: Nícolas F. R. A. Prado, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Matthias Brugger, Liam Girdwood, Mark Brown,
Trevor Wu
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-sound
Il 05/12/24 13:13, Nícolas F. R. A. Prado ha scritto:
> Add a compatible for the MT8390 EVK. It is compatible with
> mediatek,mt8188-mt6359-evb so make that the fallback compatible.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/5] arm64: dts: mt6359: Add #sound-dai-cells property
2024-12-05 12:13 ` [PATCH 1/5] arm64: dts: mt6359: Add #sound-dai-cells property Nícolas F. R. A. Prado
@ 2024-12-05 12:41 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 14+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-12-05 12:41 UTC (permalink / raw)
To: Nícolas F. R. A. Prado, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Matthias Brugger, Liam Girdwood, Mark Brown,
Trevor Wu
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-sound
Il 05/12/24 13:13, Nícolas F. R. A. Prado ha scritto:
> MT6359 provides digital audio interfaces. Add a #sound-dai-cells
> property for it to allow pointing to it from dai-link nodes.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 3/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add DSP properties
2024-12-05 12:13 ` [PATCH 3/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add DSP properties Nícolas F. R. A. Prado
@ 2024-12-05 12:41 ` AngeloGioacchino Del Regno
2024-12-09 9:50 ` Krzysztof Kozlowski
1 sibling, 0 replies; 14+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-12-05 12:41 UTC (permalink / raw)
To: Nícolas F. R. A. Prado, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Matthias Brugger, Liam Girdwood, Mark Brown,
Trevor Wu
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-sound
Il 05/12/24 13:13, Nícolas F. R. A. Prado ha scritto:
> Add the mediatek,adsp and mediatek,dai-link properties to allow
> describing the DSP configuration in the sound card node, as is already
> the case for other MediaTek SoCs.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> ---
> .../devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
> index ffe9347b543f5c687433862a21ad534b8aace27e..1e282c34dbd99851d3959b641096968c0b2e71be 100644
> --- a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
> +++ b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
> @@ -33,6 +33,16 @@ properties:
> $ref: /schemas/types.yaml#/definitions/phandle
> description: The phandle of MT8188 ASoC platform.
>
> + mediatek,adsp:
This is already upstream
https://lore.kernel.org/r/20241105091246.3944946-1-fshao@chromium.org
> + $ref: /schemas/types.yaml#/definitions/phandle
> + description: The phandle of MT8195 ADSP platform.
> +
> + mediatek,dai-link:
That shouldn't be needed.
...so this patch can be dropped :-)
Cheers,
Angelo
> + $ref: /schemas/types.yaml#/definitions/string-array
> + description:
> + A list of the desired dai-links in the sound card. Each entry is a
> + name defined in the machine driver.
> +
> patternProperties:
> "^dai-link-[0-9]+$":
> type: object
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 5/5] arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support
2024-12-05 12:13 ` [PATCH 5/5] arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support Nícolas F. R. A. Prado
@ 2024-12-05 12:42 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 14+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-12-05 12:42 UTC (permalink / raw)
To: Nícolas F. R. A. Prado, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Matthias Brugger, Liam Girdwood, Mark Brown,
Trevor Wu
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-sound, Aary Patil, Suhrid Subramaniam,
parkeryang
Il 05/12/24 13:13, Nícolas F. R. A. Prado ha scritto:
> Describe all the components to get sound output working on the two audio
> jacks, Earphone and Speaker, present on the Genio 700 EVK board with the
> audio DSP enabled.
>
> Co-developed-by: Aary Patil <aary.patil@mediatek.com>
> Signed-off-by: Aary Patil <aary.patil@mediatek.com>
> Co-developed-by: Suhrid Subramaniam <suhrid.subramaniam@mediatek.com>
> Signed-off-by: Suhrid Subramaniam <suhrid.subramaniam@mediatek.com>
> Co-developed-by: parkeryang <Parker.Yang@mediatek.com>
> Signed-off-by: parkeryang <Parker.Yang@mediatek.com>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> ---
> .../boot/dts/mediatek/mt8390-genio-700-evk.dts | 50 ++++++++++++++++++++++
> 1 file changed, 50 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts b/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts
> index bb68665f0b2da80397b833db0241a06648a322a0..2fded39078773e81d8e0313d6b118b3064be308d 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts
> +++ b/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts
> @@ -92,6 +92,24 @@ vpu_mem: memory@57000000 {
> compatible = "shared-dma-pool";
> reg = <0 0x57000000 0 0x1400000>; /* 20 MB */
> };
> +
> + adsp_mem: memory@60000000 {
> + compatible = "shared-dma-pool";
> + reg = <0 0x60000000 0 0xf00000>;
> + no-map;
> + };
> +
> + afe_dma_mem: memory@60f00000 {
> + compatible = "shared-dma-pool";
> + reg = <0 0x60f00000 0 0x100000>;
> + no-map;
> + };
> +
> + adsp_dma_mem: memory@61000000 {
> + compatible = "shared-dma-pool";
> + reg = <0 0x61000000 0 0x100000>;
> + no-map;
> + };
> };
>
> common_fixed_5v: regulator-0 {
> @@ -209,6 +227,16 @@ usb_p2_vbus: regulator-9 {
> };
> };
>
> +&adsp {
> + memory-region = <&adsp_dma_mem>, <&adsp_mem>;
> + status = "okay";
> +};
> +
> +&afe {
> + memory-region = <&afe_dma_mem>;
> + status = "okay";
> +};
> +
> &gpu {
> mali-supply = <&mt6359_vproc2_buck_reg>;
> status = "okay";
> @@ -912,6 +940,28 @@ &scp {
> status = "okay";
> };
>
> +&sound {
> + compatible = "mediatek,mt8390-mt6359-evk", "mediatek,mt8188-mt6359-evb";
> + model = "mt8390-evk";
> + pinctrl-names = "default";
> + pinctrl-0 = <&audio_default_pins>;
> + audio-routing =
> + "Headphone", "Headphone L",
> + "Headphone", "Headphone R";
> + mediatek,adsp = <&adsp>;
> + mediatek,dai-link = "DL_SRC_BE", "UL_SRC_BE", "AFE_SOF_DL2",
> + "AFE_SOF_DL3", "AFE_SOF_UL4", "AFE_SOF_UL5";
Are you really, really, really, extremely sure that you need mediatek,dai-link?
I say you don't... :-)
Cheers,
Angelo
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: (subset) [PATCH 0/5] Enable audio output for Genio 700 EVK board
2024-12-05 12:13 [PATCH 0/5] Enable audio output for Genio 700 EVK board Nícolas F. R. A. Prado
` (4 preceding siblings ...)
2024-12-05 12:13 ` [PATCH 5/5] arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support Nícolas F. R. A. Prado
@ 2024-12-05 16:05 ` Mark Brown
5 siblings, 0 replies; 14+ messages in thread
From: Mark Brown @ 2024-12-05 16:05 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Liam Girdwood, Trevor Wu,
Nícolas F. R. A. Prado
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-sound, Aary Patil, Suhrid Subramaniam,
parkeryang
On Thu, 05 Dec 2024 09:13:53 -0300, Nícolas F. R. A. Prado wrote:
> This series enables audio output support for the Genio 700 EVK board.
> Patches 1-4 do the required binding and DT changes, and patch 5
> describes the audio DT nodes to get audio output working on the two
> audio jacks, Earphone and Speaker, present on the board.
>
> The standalone fix in [1] is required in addition to this series in
> order to get the sound card probing.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[2/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add compatible for mt8390 evk
commit: 8e22ea5fb8498c52fcc20bbe2070c3aef1a3dff2
[4/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Allow DL_SRC/UL_SRC dai-links
commit: 5a56323a54b7febcfe82cc5eda840a176647b7cd
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 2/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add compatible for mt8390 evk
2024-12-05 12:13 ` [PATCH 2/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add compatible for mt8390 evk Nícolas F. R. A. Prado
2024-12-05 12:41 ` AngeloGioacchino Del Regno
@ 2024-12-09 9:49 ` Krzysztof Kozlowski
1 sibling, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-09 9:49 UTC (permalink / raw)
To: Nícolas F. R. A. Prado
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Liam Girdwood, Mark Brown, Trevor Wu,
kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-sound
On Thu, Dec 05, 2024 at 09:13:55AM -0300, Nícolas F. R. A. Prado wrote:
> Add a compatible for the MT8390 EVK. It is compatible with
> mediatek,mt8188-mt6359-evb so make that the fallback compatible.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> ---
> .../devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml | 14 +++++++++-----
> 1 file changed, 9 insertions(+), 5 deletions(-)
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 3/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add DSP properties
2024-12-05 12:13 ` [PATCH 3/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add DSP properties Nícolas F. R. A. Prado
2024-12-05 12:41 ` AngeloGioacchino Del Regno
@ 2024-12-09 9:50 ` Krzysztof Kozlowski
1 sibling, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-09 9:50 UTC (permalink / raw)
To: Nícolas F. R. A. Prado
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Liam Girdwood, Mark Brown, Trevor Wu,
kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-sound
On Thu, Dec 05, 2024 at 09:13:56AM -0300, Nícolas F. R. A. Prado wrote:
> Add the mediatek,adsp and mediatek,dai-link properties to allow
> describing the DSP configuration in the sound card node, as is already
> the case for other MediaTek SoCs.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> ---
> .../devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
This looks like conflicting (or applied) work.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2024-12-09 10:04 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-05 12:13 [PATCH 0/5] Enable audio output for Genio 700 EVK board Nícolas F. R. A. Prado
2024-12-05 12:13 ` [PATCH 1/5] arm64: dts: mt6359: Add #sound-dai-cells property Nícolas F. R. A. Prado
2024-12-05 12:41 ` AngeloGioacchino Del Regno
2024-12-05 12:13 ` [PATCH 2/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add compatible for mt8390 evk Nícolas F. R. A. Prado
2024-12-05 12:41 ` AngeloGioacchino Del Regno
2024-12-09 9:49 ` Krzysztof Kozlowski
2024-12-05 12:13 ` [PATCH 3/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add DSP properties Nícolas F. R. A. Prado
2024-12-05 12:41 ` AngeloGioacchino Del Regno
2024-12-09 9:50 ` Krzysztof Kozlowski
2024-12-05 12:13 ` [PATCH 4/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Allow DL_SRC/UL_SRC dai-links Nícolas F. R. A. Prado
2024-12-05 12:41 ` AngeloGioacchino Del Regno
2024-12-05 12:13 ` [PATCH 5/5] arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support Nícolas F. R. A. Prado
2024-12-05 12:42 ` AngeloGioacchino Del Regno
2024-12-05 16:05 ` (subset) [PATCH 0/5] Enable audio output for Genio 700 EVK board Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).