* [PATCH v2 0/2] Enable audio output for Genio 700 EVK board
@ 2024-12-10 20:54 Nícolas F. R. A. Prado
2024-12-10 20:54 ` [PATCH v2 1/2] arm64: dts: mt6359: Add #sound-dai-cells property Nícolas F. R. A. Prado
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-12-10 20:54 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.
Patch 1 adds the missing #sound-dai-cells property in the MT6359 node as
a prerequisite, and patch 2 describes the audio DT nodes to get audio
output working on the two audio jacks, Earphone and Speaker, present on
the board.
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
Changes in v2:
- Dropped merged/unnecessary patches (2, 3, 4)
- Removed unnecessary mediatek,dai-link property
- Link to v1: https://lore.kernel.org/r/20241205-genio700-audio-output-v1-0-0e955c78c29e@collabora.com
---
Nícolas F. R. A. Prado (2):
arm64: dts: mt6359: Add #sound-dai-cells property
arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support
arch/arm64/boot/dts/mediatek/mt6359.dtsi | 1 +
.../boot/dts/mediatek/mt8390-genio-700-evk.dts | 48 ++++++++++++++++++++++
2 files changed, 49 insertions(+)
---
base-commit: d1486dca38afd08ca279ae94eb3a397f10737824
change-id: 20241204-genio700-audio-output-fba8f2ebad10
Best regards,
--
Nícolas F. R. A. Prado <nfraprado@collabora.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 1/2] arm64: dts: mt6359: Add #sound-dai-cells property
2024-12-10 20:54 [PATCH v2 0/2] Enable audio output for Genio 700 EVK board Nícolas F. R. A. Prado
@ 2024-12-10 20:54 ` Nícolas F. R. A. Prado
2024-12-10 20:54 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support Nícolas F. R. A. Prado
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-12-10 20:54 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.
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
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.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 2/2] arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support
2024-12-10 20:54 [PATCH v2 0/2] Enable audio output for Genio 700 EVK board Nícolas F. R. A. Prado
2024-12-10 20:54 ` [PATCH v2 1/2] arm64: dts: mt6359: Add #sound-dai-cells property Nícolas F. R. A. Prado
@ 2024-12-10 20:54 ` Nícolas F. R. A. Prado
2024-12-12 10:01 ` AngeloGioacchino Del Regno
2024-12-11 15:54 ` [PATCH v2 0/2] Enable audio output for Genio 700 EVK board Rob Herring (Arm)
2024-12-12 10:04 ` AngeloGioacchino Del Regno
3 siblings, 1 reply; 6+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-12-10 20:54 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 | 48 ++++++++++++++++++++++
1 file changed, 48 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 13f2e0e3fa8ab6679f843693230b9661d323a705..04e4a2f73799d04d50476eb1664b1afdbc66c124 100644
--- a/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts
@@ -93,6 +93,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 {
@@ -210,6 +228,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";
@@ -932,6 +960,26 @@ &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>;
+ 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.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 0/2] Enable audio output for Genio 700 EVK board
2024-12-10 20:54 [PATCH v2 0/2] Enable audio output for Genio 700 EVK board Nícolas F. R. A. Prado
2024-12-10 20:54 ` [PATCH v2 1/2] arm64: dts: mt6359: Add #sound-dai-cells property Nícolas F. R. A. Prado
2024-12-10 20:54 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support Nícolas F. R. A. Prado
@ 2024-12-11 15:54 ` Rob Herring (Arm)
2024-12-12 10:04 ` AngeloGioacchino Del Regno
3 siblings, 0 replies; 6+ messages in thread
From: Rob Herring (Arm) @ 2024-12-11 15:54 UTC (permalink / raw)
To: Nícolas F. R. A. Prado
Cc: kernel, Aary Patil, Conor Dooley, parkeryang,
AngeloGioacchino Del Regno, Trevor Wu, Krzysztof Kozlowski,
devicetree, Mark Brown, linux-mediatek, Matthias Brugger,
linux-kernel, linux-arm-kernel, linux-sound, Suhrid Subramaniam,
Liam Girdwood
On Tue, 10 Dec 2024 17:54:27 -0300, Nícolas F. R. A. Prado wrote:
> This series enables audio output support for the Genio 700 EVK board.
> Patch 1 adds the missing #sound-dai-cells property in the MT6359 node as
> a prerequisite, and patch 2 describes the audio DT nodes to get audio
> output working on the two audio jacks, Earphone and Speaker, present on
> the board.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> ---
> Changes in v2:
> - Dropped merged/unnecessary patches (2, 3, 4)
> - Removed unnecessary mediatek,dai-link property
> - Link to v1: https://lore.kernel.org/r/20241205-genio700-audio-output-v1-0-0e955c78c29e@collabora.com
>
> ---
> Nícolas F. R. A. Prado (2):
> arm64: dts: mt6359: Add #sound-dai-cells property
> arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support
>
> arch/arm64/boot/dts/mediatek/mt6359.dtsi | 1 +
> .../boot/dts/mediatek/mt8390-genio-700-evk.dts | 48 ++++++++++++++++++++++
> 2 files changed, 49 insertions(+)
> ---
> base-commit: d1486dca38afd08ca279ae94eb3a397f10737824
> change-id: 20241204-genio700-audio-output-fba8f2ebad10
>
> Best regards,
> --
> Nícolas F. R. A. Prado <nfraprado@collabora.com>
>
>
My bot found new DTB warnings on the .dts files added or changed in this
series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y mediatek/mt8390-genio-700-evk.dtb' for 20241210-genio700-audio-output-v2-0-c50886ae0be2@collabora.com:
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dtb: pmic: '#sound-dai-cells', 'mt6359codec', 'mt6359rtc' do not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml#
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dtb: jpeg-decoder@1a040000: iommus: [[124, 685], [124, 686], [124, 690], [124, 691], [124, 692], [124, 693]] is too long
from schema $id: http://devicetree.org/schemas/media/mediatek-jpeg-decoder.yaml#
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 2/2] arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support
2024-12-10 20:54 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support Nícolas F. R. A. Prado
@ 2024-12-12 10:01 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-12-12 10:01 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 10/12/24 21:54, 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>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 0/2] Enable audio output for Genio 700 EVK board
2024-12-10 20:54 [PATCH v2 0/2] Enable audio output for Genio 700 EVK board Nícolas F. R. A. Prado
` (2 preceding siblings ...)
2024-12-11 15:54 ` [PATCH v2 0/2] Enable audio output for Genio 700 EVK board Rob Herring (Arm)
@ 2024-12-12 10:04 ` AngeloGioacchino Del Regno
3 siblings, 0 replies; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-12-12 10:04 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
Liam Girdwood, Mark Brown, 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 Tue, 10 Dec 2024 17:54:27 -0300, Nícolas F. R. A. Prado wrote:
> This series enables audio output support for the Genio 700 EVK board.
> Patch 1 adds the missing #sound-dai-cells property in the MT6359 node as
> a prerequisite, and patch 2 describes the audio DT nodes to get audio
> output working on the two audio jacks, Earphone and Speaker, present on
> the board.
>
>
> [...]
Applied to v6.13-next/dts64, thanks!
[1/2] arm64: dts: mt6359: Add #sound-dai-cells property
commit: 9bc8353be720ca1f9cb6e03825929bc172e1157d
[2/2] arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support
commit: b8457716eeee45ed5cb6b8fdc5a5b459f7ebe819
Cheers,
Angelo
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-12-12 10:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-10 20:54 [PATCH v2 0/2] Enable audio output for Genio 700 EVK board Nícolas F. R. A. Prado
2024-12-10 20:54 ` [PATCH v2 1/2] arm64: dts: mt6359: Add #sound-dai-cells property Nícolas F. R. A. Prado
2024-12-10 20:54 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support Nícolas F. R. A. Prado
2024-12-12 10:01 ` AngeloGioacchino Del Regno
2024-12-11 15:54 ` [PATCH v2 0/2] Enable audio output for Genio 700 EVK board Rob Herring (Arm)
2024-12-12 10:04 ` AngeloGioacchino Del Regno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®