From patchwork Thu Dec 5 12:13:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 13895175 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F0987E7716C for ; Thu, 5 Dec 2024 12:17:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=uYMkB30TqxQsPLtyZKh9jhhR8nYz5yCMXOJHRl6od8g=; b=2M24PxbeT4HFu5Sj9TCOMqkmKn gGrzxmfMV+PriOUPc4x1PrbW/Be3pYZQ4UM5+O1HZmP+Yuorzpt4Vv6jK1kCQ/asanf/JyXtRAF6g EYgPgjpwLJiHG3eZdlZN9EeZhWknSBA6CJ2btTy3WQB3ZUI6pdtISoHzPdPYGRlP2Elnl5577nXFu eeh0WIM8O7u8/IUT61XW4f6flbfTUFOXOX9Xti1dpcrag6fgtqg0HFaytT2M3Erjb+2YZBil5xbdP 2NSIY3ism2ig4tfZoIFLaIQvW34YyU4s+MfAHQ1BW/xHijmgOrBiEsQVspvdi7PIjKGSo+LjUpf95 mBvGlh1A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tJAnJ-0000000Fuq8-0ieM; Thu, 05 Dec 2024 12:17:21 +0000 Received: from bali.collaboradmins.com ([2a01:4f8:201:9162::2]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tJAlF-0000000FuCz-18gA; Thu, 05 Dec 2024 12:15:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1733400911; bh=3osrUVPXdinibWxj7SczBHB1PesbS1XtEfk4gNr9G/0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=KAQvd5HUAJXQSUc6jyaZmoSIdmH+nc+sZqpV1GDQ1Kws6RScKaPpY3zrDlnyQN8Md YvHIMeqksV2Gju4JmnubLAoKYj8RbZkFWKI9nbCoIE4pNopDD/JLXqUzhkAp7EsIVT nGvfz5V2fTUuBaG3Rg38/taZjnpP1C4e2QcxJ/3o+E2DRqlnUg5BN+OgjR+vgLLKlK ot19Q5RKcILbXgqoF8ipQVUal98/mGo7q//1Ib0eUfXN45HYigjZ/XsPlzXrCMe+99 QZG0lQhSgH4gJrULZro6jrqwDTX5NPzCaRBWYXZ6Juq8dcwt3755noh7vBQ6B5UkKY CffPmOwPnYGBA== Received: from [192.168.0.47] (unknown [IPv6:2804:14c:1a9:53ee::1000]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by bali.collaboradmins.com (Postfix) with ESMTPSA id 7216217E3661; Thu, 5 Dec 2024 13:15:08 +0100 (CET) From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Date: Thu, 05 Dec 2024 09:13:54 -0300 Subject: [PATCH 1/5] arm64: dts: mt6359: Add #sound-dai-cells property MIME-Version: 1.0 Message-Id: <20241205-genio700-audio-output-v1-1-0e955c78c29e@collabora.com> References: <20241205-genio700-audio-output-v1-0-0e955c78c29e@collabora.com> In-Reply-To: <20241205-genio700-audio-output-v1-0-0e955c78c29e@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Liam Girdwood , Mark Brown , Trevor Wu Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-sound@vger.kernel.org, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241205_041513_488954_4FD7E6AB X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: AngeloGioacchino Del Regno --- 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"; From patchwork Thu Dec 5 12:13:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 13895176 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 098DAE7716D for ; Thu, 5 Dec 2024 12:18:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=s1Jv+HheEJucUyubj/46X4K/2/75/GEjr8K5KaaDCU8=; b=WyHeja3n3JyyGPVF/ac5MsicNE hZCKFjgQwAt+wIdN8bfIY8qk6RxTpgabCaBsEGxQQzAaBxdaG4jSTtisflOJgYGunlZi++TrNqKmn SeUyiVEL3qx6ZYuJiCetcTqX5JRxBDiDIo5HTavfEq0CXxoszXt41Uhqxr16ziS0drQHc6WzpEvIA lje/R2h5UqTkM0Z1PJWXYzAJkDg6NwlksOjSsLIB6rfmThEUKJfO3hkp3O7+ol9at8xS1f+awDNjd UPMmIEw666Z8VMq4upFcvDgANDZ+Rkf0a80r5XIYH6rGmLSf/hoPc0QulffbS6iFcHAunp1q+pWUv PBxh6cCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tJAoI-0000000Fuzw-0TvA; Thu, 05 Dec 2024 12:18:22 +0000 Received: from bali.collaboradmins.com ([148.251.105.195]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tJAlI-0000000FuF4-41FH; Thu, 05 Dec 2024 12:15:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1733400915; bh=otE4SGQQQOEOXe8kbkzhKoyw2kCK8dxjt0QPi5mvR/U=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Q81DvHXiqTu1FnIbPP+8I337ekkRISKqEsY66bf1+JvhgXb+imi4pVg7R2Ztx4G0h 9q/EBdXeGbvGEEB7cmLCO3Z0ahtSIfqoZU6OZL12E1O8qq/jA5hstoqiDjfXx+lpwY mEBvcv9AiK+FfOHT3Wt5cG/LyL5330XB7r58jmJHks5j/7VvHXmANC0miB8NbJn6ZO 9fcXyWtsyP9u9gW1YQUCCTMJTk4lWOWztClmd6EhpjQvhSkneISVvJvyFiwPv3vF5t b2pi9SEEjCKLFFJV7spV50ZlsncjGg5XYDKEg0CfktIhfm9lVVYzXwbOP7VTVMydhv J41QN4ClCEExQ== Received: from [192.168.0.47] (unknown [IPv6:2804:14c:1a9:53ee::1000]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by bali.collaboradmins.com (Postfix) with ESMTPSA id 3E58417E366D; Thu, 5 Dec 2024 13:15:12 +0100 (CET) From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Date: Thu, 05 Dec 2024 09:13:55 -0300 Subject: [PATCH 2/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add compatible for mt8390 evk MIME-Version: 1.0 Message-Id: <20241205-genio700-audio-output-v1-2-0e955c78c29e@collabora.com> References: <20241205-genio700-audio-output-v1-0-0e955c78c29e@collabora.com> In-Reply-To: <20241205-genio700-audio-output-v1-0-0e955c78c29e@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Liam Girdwood , Mark Brown , Trevor Wu Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-sound@vger.kernel.org, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241205_041517_139751_0FF57C71 X-CRM114-Status: UNSURE ( 8.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: AngeloGioacchino Del Regno Acked-by: Krzysztof Kozlowski --- .../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: From patchwork Thu Dec 5 12:13:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 13895184 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E45D6E7716D for ; Thu, 5 Dec 2024 12:19:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=RD7ENo9NyIv7l5cCxOSUp9rCp8ftSysYm1Iha4yjY0c=; b=BL7EFpiF1n+0y0jWePKLkRjqVN 0C8MQgSZBHhKA2Zt4acfxAOKHdpElpLb5qBwniwb4eCgLDa63iVu+eId28UX22+Wxfyr74btt1ekv 1QVGoeRR4UqkBqbU5GKMmieIMeYJbxgXIMn5+EiSEhEm5ZpANjvaLS3iOtNxiVeLg1yCzUVRk8p+K Rsi/xUhekCW+dWJKtQIugYV+jaUS5XZ5FeJaLZEz9HhLDqqASecIl4EFyfhsAN+npPnaXnrjmdb4X Gvd38UliMRgPLqu/R+aJ/TV4Z/TOcF/TpoaMl6NT3HkmrsuHk1hyOQJc3NEFnEjjuSmsLAqmJC9kz 3RgKl7AQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tJApH-0000000Fv9C-0O0C; Thu, 05 Dec 2024 12:19:23 +0000 Received: from bali.collaboradmins.com ([148.251.105.195]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tJAlM-0000000FuGj-2Sp3; Thu, 05 Dec 2024 12:15:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1733400919; bh=h6EtCNUapE2Uy+r5ZkHsutNJ70Xge99WvLYAuUKOC7s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=nQMq15ZU6sWF/LKfR6yL2hLZS/UkmuE9glfKmCHW2b/epxMss/TUlmQ7Zp3SLN8y9 y6GEyHBHkDr8smT01nq5yxsklJgEWa2Y+qDeFAihea4u87HsLux1Wimq9Zniz/wL6F JNV7zqksvzPpL3L4t5050qXDakToUKssNvnZp4ekvIedrnKSY4/ZiM0TfkWF2EEysI iLuezBXXTvSaG+EusgkvYOxshXL7oaFBacLAbvi8ydg6DHwyoSZy7YMPdqfgBe4AJj hyftXvMbuPqxd5U8vW2NkdAagyEQWlup0iDE5DIvnStXjLkeLbQ/xeG3dZZA7GSf1o mavCTuRx+rohw== Received: from [192.168.0.47] (unknown [IPv6:2804:14c:1a9:53ee::1000]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by bali.collaboradmins.com (Postfix) with ESMTPSA id 0A92417E3661; Thu, 5 Dec 2024 13:15:15 +0100 (CET) From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Date: Thu, 05 Dec 2024 09:13:56 -0300 Subject: [PATCH 3/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add DSP properties MIME-Version: 1.0 Message-Id: <20241205-genio700-audio-output-v1-3-0e955c78c29e@collabora.com> References: <20241205-genio700-audio-output-v1-0-0e955c78c29e@collabora.com> In-Reply-To: <20241205-genio700-audio-output-v1-0-0e955c78c29e@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Liam Girdwood , Mark Brown , Trevor Wu Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-sound@vger.kernel.org, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241205_041520_770257_EE3232B6 X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org 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 --- .../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 From patchwork Thu Dec 5 12:13:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 13895185 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D532BE7716C for ; Thu, 5 Dec 2024 12:20:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FPnIIC00O8dYi0RsEW4tIzGMyETMNCqxFBSCFpLBjA8=; b=pYT+0ZV2YPEg+wQ4dCxC1Nwa/f CKUv0dsPy0B0O2Cqt/Qcz/r5cl1gjZf27y8uvQx56B9OPbNjATDXMIqR4diD4TrdWFOAFLnlkxycT nMEW8fZ7etJcqniWRS0hocDYSNkFXvVY2E98A30haHmsPDlCjJHSPhFunKnHAw9XOIcjRdEq7K6uz ckttDb49ot2r+H3pn5UlLTicKh6Ak9Pns88qJ0WFBF7kpiHL9Qm8kjqYqtqW7KIpACYzPZXASMSz/ HvqzXVyQMIR6KQkzJs8dCwlHJA4EfTE58B/rvi7s78su6unYZdhNN1Rw5v/JzaoqtOjyMnSn43jJQ roNiAvbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tJAqG-0000000FvJp-4Ba9; Thu, 05 Dec 2024 12:20:25 +0000 Received: from bali.collaboradmins.com ([2a01:4f8:201:9162::2]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tJAlQ-0000000FuJr-1UB1; Thu, 05 Dec 2024 12:15:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1733400923; bh=s9PqXLkNpVGPkGaqAGeOVRgPs+SSzp40pXGX6y3dMVc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=AyCr3/RQDBbHkpLbU9EyjM0n0rRgWL876AM4B2L0KQCXM/phSpOoYxqKWtkvRsq4U TDNgLWcIOdnRqrx4TI9ztjOSwagwi4d+f0ofOb9TqZAlNzedHOQhxzX8cn3qeylKWN 9FGIWub2DTBXBEiGkJHUqTtZ03MN3JLQqmWZoc0EULG1c753LnNGr5GaOiOmX13Rv7 /o7Pybotnudaa0hRMMH73UXnlPLOqlfA8V+rzAgqgecIH2d/b8zQs9fylTvkw+JICj taepxs+mYssa46ygpIFySRHF2SiXXfb9dFJE3lq2ODSIJTOu/j8jJS/R0ooZszj+KT JNydJ5GxId8Vg== Received: from [192.168.0.47] (unknown [IPv6:2804:14c:1a9:53ee::1000]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by bali.collaboradmins.com (Postfix) with ESMTPSA id BC57017E363B; Thu, 5 Dec 2024 13:15:19 +0100 (CET) From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Date: Thu, 05 Dec 2024 09:13:57 -0300 Subject: [PATCH 4/5] ASoC: dt-bindings: mediatek,mt8188-mt6359: Allow DL_SRC/UL_SRC dai-links MIME-Version: 1.0 Message-Id: <20241205-genio700-audio-output-v1-4-0e955c78c29e@collabora.com> References: <20241205-genio700-audio-output-v1-0-0e955c78c29e@collabora.com> In-Reply-To: <20241205-genio700-audio-output-v1-0-0e955c78c29e@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Liam Girdwood , Mark Brown , Trevor Wu Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-sound@vger.kernel.org, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241205_041524_534557_D920E776 X-CRM114-Status: GOOD ( 10.37 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: AngeloGioacchino Del Regno --- 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. From patchwork Thu Dec 5 12:13:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 13895186 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 182B0E7716D for ; Thu, 5 Dec 2024 12:21:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4SkiNCYBsX3SSVIhNupJCz1vRRfZR3b/YxZ/4X0YZf4=; b=1XIVN5inKVb7fBayXTMJQHX1/W 4EBxPrKGm/LRfn2Wu9MUE/Ivf7weQvEzJGDZj3sLx1evGGslkmbggjDmRtGuB8aQKY4qVvzTy4b2O PSTn+/tCJxQQgc7sPKGETznYs3acqaEUseRMrk7x/lVXZdKrtLB10BQcbllS3Ro9gpTGki1OQmRZg rODfVV5pHaXBp0UNdYCoNigFhQMPz9g6B7cKQ5Nhk7kK9y+bn7VAC0638E4OV/N1gEmz51Scn6fWN D38ZqVvEAiO4G84829FJ5R3hZRxA1t2hiY5UWgy0QMc0uv72T+Vd3gSIyOXCY974BXFfkCPafAMos 5+84GXkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tJArG-0000000FvUb-0llV; Thu, 05 Dec 2024 12:21:26 +0000 Received: from bali.collaboradmins.com ([2a01:4f8:201:9162::2]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tJAlU-0000000FuLV-3ELp; Thu, 05 Dec 2024 12:15:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1733400927; bh=KyZ5CACimQSWxoWyn7gctVe0I3LE7LBdjabpyJ3Zld0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=RIR38fvdP35N8NMfgWv85t7hMpo0egF0D84RDrw3gkyHSjpxkOLPR15B/z3TixfXV Ezn7ZGlcHR773nq9JVyBZVFS66WTOQy71yg/tq4FHFegCAFWyHH6ydndKdNpzQn7ro t70vmLOu7109IQECu2TSqAWMIDIx0vlGVFLHHuhPWEsqLZml3DxLPT8GoQ0ZuWIY6e fsvWSlGNYmqEY8gztsy7xGb3dnSK+CxNwzV4IIBtjCoq49eyf9FlsixDFizkrum2MR kN8YIQYd/+N2Fw5RcbZa4VGC+n29REGZM5Hij152p8RqRdLmEmH+ec/U+x1gEtyOlx vUew3GSNnNwVQ== Received: from [192.168.0.47] (unknown [IPv6:2804:14c:1a9:53ee::1000]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by bali.collaboradmins.com (Postfix) with ESMTPSA id 7ECF217E3661; Thu, 5 Dec 2024 13:15:23 +0100 (CET) From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Date: Thu, 05 Dec 2024 09:13:58 -0300 Subject: [PATCH 5/5] arm64: dts: mediatek: mt8390-genio-700-evk: Add sound output support MIME-Version: 1.0 Message-Id: <20241205-genio700-audio-output-v1-5-0e955c78c29e@collabora.com> References: <20241205-genio700-audio-output-v1-0-0e955c78c29e@collabora.com> In-Reply-To: <20241205-genio700-audio-output-v1-0-0e955c78c29e@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Liam Girdwood , Mark Brown , Trevor Wu Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-sound@vger.kernel.org, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Aary Patil , Suhrid Subramaniam , parkeryang X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241205_041528_972719_E409CA12 X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org 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 Signed-off-by: Aary Patil Co-developed-by: Suhrid Subramaniam Signed-off-by: Suhrid Subramaniam Co-developed-by: parkeryang Signed-off-by: parkeryang Signed-off-by: Nícolas F. R. A. Prado --- .../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";