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: 13895169 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8622C217F5C; Thu, 5 Dec 2024 12:15:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733400915; cv=none; b=TOOQc2cpnfaEraDExSojVAnKkWFU98KNgPkr6Bhr7rNQ++tXEcNZIbeSUh5CebCib7rMS/nkWuBvDymhl/abypxoStI4jsAUWtSBd4awB+euNVY5qMZH5011vtFcS11gVpe082Z8BYW7GlvEqdNgI70hZ/UT81J6SXKfEqHyUSQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733400915; c=relaxed/simple; bh=3osrUVPXdinibWxj7SczBHB1PesbS1XtEfk4gNr9G/0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kzZipmWbU/5KVYdd1HcG91TIJoDPW7RfB6P+kWjV85bQK+/xKVxsYLyS+eOTPrR3tcMhHEObnB0oYJpUEgy9xDzJXWUphb6QPzxJRwJawYpjP+7A5fP5kf/VPsxmuZgSX72egSaDZVvS/oNAQVOUr8Upjs98G5hk4SOTxbfu6nM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=KAQvd5HU; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="KAQvd5HU" 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 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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: 13895170 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D68D2185B9; Thu, 5 Dec 2024 12:15:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733400919; cv=none; b=tCbdoI4QQRwT6Z5pGObwIvW/rCczdHtThZiGKsqGd33KnDSONBuLvCjxEZVeVwB/MBj4TnZbkrkaJhBmTjnMiBE9IIadXA1rxG/vJ3czrzIGqrRtOwhSgzeCSPSIRAxbU9NkKq5g/URxLVdH3HNLNaqb/aHM2iaGAOFnLclkR9g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733400919; c=relaxed/simple; bh=otE4SGQQQOEOXe8kbkzhKoyw2kCK8dxjt0QPi5mvR/U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hH2qazFE95tgqZNM/q/lNFLbQsmDataR+0L/ja7GDK1lOmyAoVMzmPdoWNf3irrHVgpfijHhAUiKZ8sr/QghWg3rnIGAP/hQrIMm6+RmjE3RSeeV8ffLeb9OC9rGu2xBFkZFJzh3XMKQREyrbnZe1Xu2P2Y5OwXQOhLvp9JX9mU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=Q81DvHXi; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Q81DvHXi" 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 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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: 13895171 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8390218836; Thu, 5 Dec 2024 12:15:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733400922; cv=none; b=N2R0Gvql0iqt8PPunS5xh04LU24OUTPyj2IPS/1ycCThAL2efiRMZKKYh8c7FdRdtWV1hXSOAJzFw71EuBUanCbMzDGIGNSGJmXuFauK4T3ciA5uNDw0kCtAWvxhxL8qdsyne4jAwcRGpOMyTmITrRUdKAcZFUbTJrJuLIVI0ek= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733400922; c=relaxed/simple; bh=h6EtCNUapE2Uy+r5ZkHsutNJ70Xge99WvLYAuUKOC7s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NG+8kNU3NiPTTWQnqqajjUPiJbnM4pZrocj5rJ49LptHDfVs34z0SssUEc4q537P+x5dYo36FxyXjajRyxyS2FWvOHKZAZQVbB24FtBjl9wUfRfsppn6OuJTIQmJrGuzBT3MG6srfhnqngTuA6YDwObuuv3r6XAgl2pnlXYIqlY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=nQMq15ZU; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="nQMq15ZU" 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 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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: 13895172 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3303218AC1; Thu, 5 Dec 2024 12:15:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733400926; cv=none; b=LHMtrmZbR9tX3FUxBhh3qTxYhkvedr8st+svxX0QzERlKH4gX/JMmMBcGx0gzcA78d3Ig62LswONaLlx6dXSTBN48OMETKHZyf2qiELvdyI2+7hovlpQoEzkGcYjPwAZKZNRzkD+jF71g6v+Be6DMfJw451RabaaZhbqgoAA7AU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733400926; c=relaxed/simple; bh=s9PqXLkNpVGPkGaqAGeOVRgPs+SSzp40pXGX6y3dMVc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iAd8JMlXCctpG1N57D8lj8We4b7bXbvZ107n1wHe86jMJpS66Raw7RWq4XAqZ3p25wdOLa7BtTw5F2Ie9ofiyFsti2WTyYsx2fsAXeiNm9fI89I884KIwO70t5QqdqbR5VBsEAvz5SLNxxIWyJ8kBM1v5G5dceFVtyC9aEnr6vc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=AyCr3/RQ; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="AyCr3/RQ" 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 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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: 13895173 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 27250218ACE; Thu, 5 Dec 2024 12:15:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733400930; cv=none; b=JnYwFba4ebRaUmaxQHl8mfbA0GfFVWSQuNzY2NhoQmc0+r5cnnljPl0YsWyPFtTJyuI2ttnm6cBgKjql845hTMWW5WrKuVPhEWeHNAHqht4UXUQnjeknkTipKMyO241lFqrqnteeprYPKp3IUSK36BG/wvuZlTlU6dyrRbVVZdk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733400930; c=relaxed/simple; bh=KyZ5CACimQSWxoWyn7gctVe0I3LE7LBdjabpyJ3Zld0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Q37baMYUUBb17ZhMZJCB/3la3roTvr/RZV5M6+moMzNjUW8SheKF6D4uApjR0gVkh0MvvFjFXQDmcFF567e312K2iAS0Fj/kj+YnXaBPq0xfSljgbwJnDbCz+M1ASyG4sUvSSEqoj+BAemC1cgiWueIrNnfQrLpgbE48ZgffhZQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=RIR38fvd; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="RIR38fvd" 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 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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";