From patchwork Fri Jun 28 01:07:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 810000 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 14525C41513 for ; Mon, 1 Jul 2024 12:36:25 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2B0EE2BAD; Mon, 1 Jul 2024 14:36:13 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2B0EE2BAD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1719837383; bh=qJXIxi00JGv1u1BKGWLBWZ9NoQ0XPM5g1tXOS5qbSFs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=EC4MN1OYaja5mCvMYKV5PbDVg07xoYYudX05DarkKHhcfrbiY2nbo8j8cukUzya9P OtHoqdwqS4ElAMY03Uzj1sOPj3ZI+3WjgEDuJ8MR3A4ZZQ86b3eSyTT/m7aNONW7TH 6+JRYXsoVntSJSJUrt89Nlt34nvC9Rr6Ax8eonB8= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0C2E8F89AC8; Mon, 1 Jul 2024 14:23:53 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 83F6FF89AC6; Mon, 1 Jul 2024 14:23:53 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 08CC1F80578; Fri, 28 Jun 2024 03:07:25 +0200 (CEST) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 758CEF800E4 for ; Fri, 28 Jun 2024 03:07:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 758CEF800E4 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=xxZMa6C5 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-367339bd00aso24972f8f.3 for ; Thu, 27 Jun 2024 18:07:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719536838; x=1720141638; darn=alsa-project.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QHuNYRVa9MaRtF3OqiAH8vWk9W7tt+JmVEYKJVNFQi0=; b=xxZMa6C59IT4dsLGXxhAIa1JEWKichSSFSYkfAwwrgB2vKTE1G9nbrDioYg4MeQ1rE dcHdj586ONmIEZpUqn6DqraDhuTVnOG5dpMiKgnmU0jhz/HSQtZnUxBW5wxZI3/vP3Va Y+9XZX9vPFS0KPJRsTY4D/11YGb2KPpPtadVkcjwIm5sm4ke+SU8zpw9vo5EsVJazAXW V/q1XEnXENMwX6PXeaI1WQDgr+VZtGHgK0ntIyOq5OBPgeL29Ki6bankM7i6GL+vEf/t 0RYIqBSWgcWOQUJRy1tJStM/FuX9LfQEfapSV61xzWZXZHlibuIOTdnm7qukyTvh+3lV otiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719536838; x=1720141638; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QHuNYRVa9MaRtF3OqiAH8vWk9W7tt+JmVEYKJVNFQi0=; b=I5cxUEwES7DYr67eOuhsCQnGYY5/ovpxYpU4tQ9YEdAWMNxtdTw4CaEOywg2xu2j7a RsR/vF53ILbRAlFHa+tqJ/lnQKlgVBYq9denaYveLCzQ9QjVARnQvyn9KT6yt8XiRRWn D5mqH98euSO+pIrMboKBTRQJTRECrsj79bBu2+6DoAVxfoMqGl3iZZVPgonkTsT3880X KZeElTNv8EA36YYkBx3qHHiwnRjNHwj46t3hHq6vlzaInSTvKylLW2JnU00ip9vrvteW EfSqJ4VaZqfp2gUOedU3uGZBGGJLiS65PPs8nm1HtYuEFDG9tj9PgjNsdP6FWWamX+G1 FIkg== X-Forwarded-Encrypted: i=1; AJvYcCXlhgUxq8osySfcBma5DVsVodzJkd+GsmaaQih+HOqfrfepdT1TM2h0sKRzMf3xWgYiu2QiAf5Lu+F3djdN+coV5uER12yKilL/qw0= X-Gm-Message-State: AOJu0YzJvmkqko3Ym+XaJvBQbiqucaXG9N/az8Lt+PNnZ47Y3RiUsQpd WaUPfaLLjZmvoCKStW7rGDBRTf0xuj8n3D0iXzFeesH2m0o13KRhKLwcW9vx6x8= X-Google-Smtp-Source: AGHT+IF3udj+skoJjmirIovH98gez1HrbmQEfLVlULNbdY3lNe98fjyToQ/tPdf9UZvUlx/d+JRROw== X-Received: by 2002:a5d:44c8:0:b0:362:4dc7:dc7b with SMTP id ffacd0b85a97d-366e965298amr9542604f8f.58.1719536837965; Thu, 27 Jun 2024 18:07:17 -0700 (PDT) Received: from fuerta.Home ([2a02:c7c:7213:c700:2cd1:b0e8:abb:540]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4256af3c27dsm13075805e9.7.2024.06.27.18.07.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jun 2024 18:07:17 -0700 (PDT) From: Alexey Klimov To: linux-sound@vger.kernel.org, srinivas.kandagatla@linaro.org, bgoswami@quicinc.com, lgirdwood@gmail.com, broonie@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, perex@perex.cz, tiwai@suse.com, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, elder@linaro.org, dmitry.baryshkov@linaro.org, krzysztof.kozlowski@linaro.org, caleb.connolly@linaro.org, linux-kernel@vger.kernel.org, alexey.klimov@linaro.org Subject: [PATCH 1/7] ASoC: dt-bindings: qcom,sm8250: add qrb4210-rb2-sndcard Date: Fri, 28 Jun 2024 02:07:09 +0100 Message-ID: <20240628010715.438471-2-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240628010715.438471-1-alexey.klimov@linaro.org> References: <20240628010715.438471-1-alexey.klimov@linaro.org> MIME-Version: 1.0 X-MailFrom: alexey.klimov@linaro.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: NJGDHFIKWRMB22RDZSQFZKNI5NK6LKFM X-Message-ID-Hash: NJGDHFIKWRMB22RDZSQFZKNI5NK6LKFM X-Mailman-Approved-At: Mon, 01 Jul 2024 12:23:18 +0000 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add adsp-backed soundcard compatible for QRB4210 RB2 platform, which as of now looks fully compatible with SM8250. Signed-off-by: Alexey Klimov --- Documentation/devicetree/bindings/sound/qcom,sm8250.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml index b2e15ebbd1bc..a92ac8501138 100644 --- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml @@ -31,6 +31,7 @@ properties: - qcom,msm8916-qdsp6-sndcard - qcom,qcm6490-idp-sndcard - qcom,qcs6490-rb3gen2-sndcard + - qcom,qrb4210-rb2-sndcard - qcom,qrb5165-rb5-sndcard - qcom,sc7180-qdsp6-sndcard - qcom,sc8280xp-sndcard From patchwork Fri Jun 28 01:07:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 809998 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 EADD2C30659 for ; Mon, 1 Jul 2024 12:37:40 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 253D42BAA; Mon, 1 Jul 2024 14:37:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 253D42BAA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1719837459; bh=2fLNT1nXHgsFGK9SfQggEdsqimQIX4e/hXkHKmU5TxU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ZTDslniRbhEfedcBt2Gs/DmfmHjfZee0vujBR90nLiDoCK4axC46rABBbA0MLop5F FzpN1GYztj9qLGfCM1f1qRzRwtuwHW+J8zoKHiaOIkvhjv8S8ATbJAYP8eTetYyLLl 5FrwME79SKExWGaD5lBlHCQ4dt0FUvfg/nCpU9PQ= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4C098F89B2F; Mon, 1 Jul 2024 14:24:08 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id F02FEF89B39; Mon, 1 Jul 2024 14:24:07 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 50E55F805A1; Fri, 28 Jun 2024 03:07:30 +0200 (CEST) Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 17E25F8049C for ; Fri, 28 Jun 2024 03:07:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 17E25F8049C Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=X9m1W20w Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4249196a361so623995e9.0 for ; Thu, 27 Jun 2024 18:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719536840; x=1720141640; darn=alsa-project.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gJhqgpKH8xpri6xgGQ+p8sz4lqzbwizt046mSH+TQQE=; b=X9m1W20wkr4yxE4Zsre5ML49OP1Vv5B/2gyE9mQ1IaY/yKb8UIyog5mRBvm4EeGdDI DJwR23Pio6j+ytzc59lDxUGZC7cxThFB7OGIqfPBwPThOvhD5E150zlU/5+LqQaMRek2 FE7f/7baM/2DhnaGjnddelraU2ieeZvJHgR2LotHA3dT5S0FU9J0W+ArIKjv+RfS4zRa IzMHexqDJy9d+i9q4qMav2EcexOc7WwxR68MQfYd3AJTykVToz9Nd64r8Jj7do7HgwMg uq1KFPFseEWMVllreQb5erd0uObmDSnY7nMJ3C1q3sf5mGGH0N2Ffrz+ry2x0sOzYzL9 h+HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719536840; x=1720141640; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gJhqgpKH8xpri6xgGQ+p8sz4lqzbwizt046mSH+TQQE=; b=hF8BiGib5YK3RY0nKH8rrbU3FkDfBjj+f+Xj9fqbCI6IVZy3Ezcgh07h6qp8BGMnAk ntYSLN/zVH7OMszg/1h4dfVcJkqL4Aiyzxoop7mNuiRe6ITJgyXuolAsMgyiOFr4r8L0 jGjsu74GFfePIyZrTB+z6e2pqdMjJGTJy4DbJOCti3SCPlGVhw1ay89WyXJR3wJ9O4w5 KG5DfhpJLXJC2geQkF89B6GZGEZbZqnFbF1zxiybtkkerXQOoCOzOFWmkDn3hR3MzYvp kqeQvUiw6PYJCw+nxdpG/0nPDBtABJGj3AZemf98+NLwW2Heu05ARDYw1uLWn05PvcRa 4dsQ== X-Forwarded-Encrypted: i=1; AJvYcCXx+Vy7CL7PUCAJ9jOP3MNeWL7Zo5nocwFfGEjMrNNQ3k09j7q2qA0uTYGE/c68jY3O1VLqm0Co6lsMoqpiJjeTM2TN4mnYkPdoVao= X-Gm-Message-State: AOJu0YyzNfXpYkvpj9E8NIsK4SzmWkHjBOpIvzx01VKYfTHgfQNQh73+ 2X/cxfmtyl9A0Xh7UgbFY5N5GeWcs6YTTStxYgzkRHoINuxpywm694R7NGvwbP8= X-Google-Smtp-Source: AGHT+IHxICLv8rGCo59jeDyowuTcbYQXuR/fFVeImMfjYukUzMJrpYuiyKtWcPlrPunnuKXL3er48A== X-Received: by 2002:a7b:c8cf:0:b0:425:63a9:f96e with SMTP id 5b1f17b1804b1-42563a9fadbmr30979815e9.36.1719536839842; Thu, 27 Jun 2024 18:07:19 -0700 (PDT) Received: from fuerta.Home ([2a02:c7c:7213:c700:2cd1:b0e8:abb:540]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4256af3c27dsm13075805e9.7.2024.06.27.18.07.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jun 2024 18:07:19 -0700 (PDT) From: Alexey Klimov To: linux-sound@vger.kernel.org, srinivas.kandagatla@linaro.org, bgoswami@quicinc.com, lgirdwood@gmail.com, broonie@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, perex@perex.cz, tiwai@suse.com, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, elder@linaro.org, dmitry.baryshkov@linaro.org, krzysztof.kozlowski@linaro.org, caleb.connolly@linaro.org, linux-kernel@vger.kernel.org, alexey.klimov@linaro.org Subject: [PATCH 3/7] ASoC: qcom: sm8250: add handling of secondary MI2S clock Date: Fri, 28 Jun 2024 02:07:11 +0100 Message-ID: <20240628010715.438471-4-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240628010715.438471-1-alexey.klimov@linaro.org> References: <20240628010715.438471-1-alexey.klimov@linaro.org> MIME-Version: 1.0 X-MailFrom: alexey.klimov@linaro.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: TWMTROK7ZQNX4HAOFXD2FI6QTYQGG2UG X-Message-ID-Hash: TWMTROK7ZQNX4HAOFXD2FI6QTYQGG2UG X-Mailman-Approved-At: Mon, 01 Jul 2024 12:23:58 +0000 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add handling of clock related to secondary MI2S_RX in sm8250_snd_startup() and sm2450_snd_shutdown(). Signed-off-by: Alexey Klimov --- sound/soc/qcom/sm8250.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sound/soc/qcom/sm8250.c b/sound/soc/qcom/sm8250.c index 50e175fd521c..9864d803114d 100644 --- a/sound/soc/qcom/sm8250.c +++ b/sound/soc/qcom/sm8250.c @@ -55,6 +55,14 @@ static int sm8250_snd_startup(struct snd_pcm_substream *substream) struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); switch (cpu_dai->id) { + case SECONDARY_MI2S_RX: + codec_dai_fmt |= SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S; + snd_soc_dai_set_sysclk(cpu_dai, + Q6AFE_LPASS_CLK_ID_SEC_MI2S_IBIT, + MI2S_BCLK_RATE, SNDRV_PCM_STREAM_PLAYBACK); + snd_soc_dai_set_fmt(cpu_dai, fmt); + snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt); + break; case TERTIARY_MI2S_RX: codec_dai_fmt |= SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S; snd_soc_dai_set_sysclk(cpu_dai, @@ -77,6 +85,16 @@ static void sm2450_snd_shutdown(struct snd_pcm_substream *substream) struct sm8250_snd_data *data = snd_soc_card_get_drvdata(rtd->card); struct sdw_stream_runtime *sruntime = data->sruntime[cpu_dai->id]; + switch (cpu_dai->id) { + case SECONDARY_MI2S_RX: + snd_soc_dai_set_sysclk(cpu_dai, + Q6AFE_LPASS_CLK_ID_SEC_MI2S_IBIT, + 0, SNDRV_PCM_STREAM_PLAYBACK); + break; + default: + break; + } + data->sruntime[cpu_dai->id] = NULL; sdw_release_stream(sruntime); } From patchwork Fri Jun 28 01:07:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 809999 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 CCFBBC41513 for ; Mon, 1 Jul 2024 12:37:08 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id E0A342BBD; Mon, 1 Jul 2024 14:36:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E0A342BBD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1719837426; bh=YC+yCZxleCG05wr5Dx82fT/dLdVie8/UI+vk4bGhDr8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=hBxR3Yh3ARB4/1Fm9Nse+oCMGNrqurvPZOVqAwVfwowXEfE8uu0sJHzyz/dGh7S9m dWhL4SAa/2LtzQznvy5IQirOXXVLHSEmo/dcKyj8b2MaMErVdPzzxsJiWgPaGXJgZn qymmCobPWhwYiT3OpsFJY+86TzmCJfzWe4MqOv7M= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 186E5F89B01; Mon, 1 Jul 2024 14:24:01 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 6BA26F80844; Mon, 1 Jul 2024 14:24:01 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 25366F80578; Fri, 28 Jun 2024 03:07:28 +0200 (CEST) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D8796F80495 for ; Fri, 28 Jun 2024 03:07:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D8796F80495 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=iiKzqEkW Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-4248e28de9eso511605e9.2 for ; Thu, 27 Jun 2024 18:07:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719536841; x=1720141641; darn=alsa-project.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pcxRyzKXv6NGAGrzN/ICDppwf/NlnyWUCDPLH0CZx2c=; b=iiKzqEkWAS+fXoVlzelwY7qdabdMx8c1hC87jICGTY0U9Xkw2xIn2FUM3jRq5tc5u8 6gdiTTht2LdF6VOQsTWCQI5llQiFPWBomCCYFF11rvTl0YvKcLmC63dJ/ZPGPqABfMP3 Z10XHi2H/8TUKJeFFPXvIJJlYJ+bZHbO7Y1gpVqTTgCOQQ7wKx42IHNuwJEJemg1jeGG f+w3vSn5xArqk4AU5D5kWA4/e/l37fnvlSIcXA0Rwig9ZjeyaOTsgwMnxU4mKBrLJTJG FcIaX6vXpwZXvTd2xAPro7WFCB2HJ1DGQ6rrB/TFa7E6DPs3xhgVQoZyUD454rZfqeD9 sBGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719536841; x=1720141641; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pcxRyzKXv6NGAGrzN/ICDppwf/NlnyWUCDPLH0CZx2c=; b=m0EEYmXi/WLmcY1+CvT+GqgRXnYOytWos6zl3g75ir/PF9EIPfgieaGqu9WvAueDLL bsFljHP3m+zd/Yw6YcOJ49Cn+9IbNg4vIZrpXmglosLKEKbuq0EmCb/WwTXle7OGK8lV /c47IRecwkcF6/8oYJHf9VBj0PaaFZT0K0CPHLSHlzvh1a2j+MVxEtXRjOYi/KdEph1w qfYFVNSkwdI0o17i18vNmMNd2nQa6OD6SyJ47rTsoV99exWG3rdKtLp4HTBbcWIkJZZ6 8v7SuM+lgv5VOa0u7uynovTsDiBR1KllOaYI1ZTfL9GYD11I026PKKhs5IXK8yOt5MbY P4BA== X-Forwarded-Encrypted: i=1; AJvYcCUzdkX9liXODGIw3w1rBGk8xpPc4wUdhYcLuUWuR4oZXcicF1we6xCw4mKfddVrShxJIzUZN4JeJTrVMLFZkCAo29ZQ1/20gxUD/LM= X-Gm-Message-State: AOJu0YyTbEqM2WxmqSs0iMgxIQF5Z+JzAd/bNJO272XzKcDfDsemYoxg sCzjEC1L34Y9N+344KRF1H3s+9xSBeqZJfVjCZZ1fL7QXhm8YlG+vWY08Kb6jX4= X-Google-Smtp-Source: AGHT+IHPN22MSh+P7jZjEm5freqL7ZysOn8u1UOe9bBR19X1ZgvHfUbx9z58xuswMEphBD4YtlPZuQ== X-Received: by 2002:a05:600c:3b8b:b0:425:69b7:3361 with SMTP id 5b1f17b1804b1-42569b7352bmr8277325e9.18.1719536840736; Thu, 27 Jun 2024 18:07:20 -0700 (PDT) Received: from fuerta.Home ([2a02:c7c:7213:c700:2cd1:b0e8:abb:540]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4256af3c27dsm13075805e9.7.2024.06.27.18.07.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jun 2024 18:07:20 -0700 (PDT) From: Alexey Klimov To: linux-sound@vger.kernel.org, srinivas.kandagatla@linaro.org, bgoswami@quicinc.com, lgirdwood@gmail.com, broonie@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, perex@perex.cz, tiwai@suse.com, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, elder@linaro.org, dmitry.baryshkov@linaro.org, krzysztof.kozlowski@linaro.org, caleb.connolly@linaro.org, linux-kernel@vger.kernel.org, alexey.klimov@linaro.org Subject: [PATCH 4/7] arm64: dts: qcom: sm6115: add apr, its services and simple sound node Date: Fri, 28 Jun 2024 02:07:12 +0100 Message-ID: <20240628010715.438471-5-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240628010715.438471-1-alexey.klimov@linaro.org> References: <20240628010715.438471-1-alexey.klimov@linaro.org> MIME-Version: 1.0 X-MailFrom: alexey.klimov@linaro.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: SH5XZVXPCS3EZZI5JSI6424Y2TAHEMIW X-Message-ID-Hash: SH5XZVXPCS3EZZI5JSI6424Y2TAHEMIW X-Mailman-Approved-At: Mon, 01 Jul 2024 12:23:57 +0000 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add apr (asynchronous packet router) node and its associated services required to enable audio on QRB4210 RB2 platform. Also, add an empty sound{} device node. This allows board dts files to fill in required board specific properties. Signed-off-by: Alexey Klimov --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 59 ++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index aca0a87092e4..c49aca3d0772 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -14,6 +14,7 @@ #include #include #include +#include #include / { @@ -2695,6 +2696,64 @@ glink-edge { qcom,remote-pid = <2>; mboxes = <&apcs_glb 8>; + apr { + compatible = "qcom,apr-v2"; + qcom,glink-channels = "apr_audio_svc"; + qcom,domain = ; + #address-cells = <1>; + #size-cells = <0>; + + service@3 { + reg = ; + compatible = "qcom,q6core"; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + }; + + q6afe: service@4 { + compatible = "qcom,q6afe"; + reg = ; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + q6afedai: dais { + compatible = "qcom,q6afe-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + }; + + q6afecc: clock-controller { + compatible = "qcom,q6afe-clocks"; + #clock-cells = <2>; + }; + }; + + q6asm: service@7 { + compatible = "qcom,q6asm"; + reg = ; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + q6asmdai: dais { + compatible = "qcom,q6asm-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + iommus = <&apps_smmu 0x1c1 0x0>; + }; + }; + + q6adm: service@8 { + compatible = "qcom,q6adm"; + reg = ; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + q6routing: routing { + compatible = "qcom,q6adm-routing"; + #sound-dai-cells = <0>; + }; + }; + }; + fastrpc { compatible = "qcom,fastrpc"; qcom,glink-channels = "fastrpcglink-apps-dsp"; From patchwork Fri Jun 28 01:07:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 809997 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 96FF2C2BD09 for ; Mon, 1 Jul 2024 12:38:19 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 961C52BB8; Mon, 1 Jul 2024 14:38:07 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 961C52BB8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1719837497; bh=eAsxPRlEzNTeurZUlbb1dRpSlSCLeJU/Bps8eIDqRWY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=MmJiVnKhu+EFXRLAklXtn7QmsAYJ6g8OZNDnpLIC7ZNNpTfIld3mRW+019sLCZ94q 2O9IRlcCfH1ns4iFHSSeNqM9DsftY/j44s8MXkx72ZxoaHJ2gfCyS370+6JldsFZaB ZlOmhO2PfEZIQ5lbYedTnc/cWNCJ9W23gpIHD/lI= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5AFF0F89B59; Mon, 1 Jul 2024 14:24:13 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id DFD65F89B6D; Mon, 1 Jul 2024 14:24:12 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A39BFF80495; Fri, 28 Jun 2024 03:07:34 +0200 (CEST) Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id A0CEDF80423 for ; Fri, 28 Jun 2024 03:07:22 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A0CEDF80423 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=f/tJkR24 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-42563a9fa58so572595e9.0 for ; Thu, 27 Jun 2024 18:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719536841; x=1720141641; darn=alsa-project.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Z8Cullp4heLq3j3LJu15lP4LYL9Xcky4j2OZDLvmJ7E=; b=f/tJkR245D+xSRsLamOCiGime6kztCP58Mws+QOT2O4JvWFhGcQDvua4YiSrrvGlOd REssRZuPLdNedhSRMpN0+Y9j7wXnpvl89T+9lfWngIE+Zq4hvzxkkwtQ0CMO0MEytccs zdzhXyKHISe04qyKPvotAomg42cuCPJMU0dPGIXK0S8UeV+ox6C+/JAjD8PCw4tmQXOr Hjxby68obi6ewp6YoLRPZMm+0AzAkqhvDnPucc52HLZCyNhSyMWcBkcBLpCI71VaxjSD 5zbHl6bjn/34f7Bera5pHEFYtKCAn1gH56hM+T08XAtgHIjTldkaRJLlL7efAcQiTjoG wewA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719536841; x=1720141641; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z8Cullp4heLq3j3LJu15lP4LYL9Xcky4j2OZDLvmJ7E=; b=mS26tXuDilFO3P7HubyFryk7wbhXY2Rgr6nCKl3A0jEjglYBXtMpFMy8xqujMidqBl 4U+G8EgJE/L2a7CNLLuCPVwVd/o5QJps5rWIlNYMHucuxGgPPgE50Uz9yHNSYEcMBXwT GP4/BUbwXW3+TlqXUstS3iZfortN6rDW8VWQPLmIvVjPLc0C2QbLLJ1sHhJO5K65BM+A uE5KkCThM5ahswvSiL0skpIUHs9Q1C88SUF76C5nX0YOgcBgVuyhH+HjINPvpFDmM3Gl 9gPrkooiFfxwf5fLUN0k/UUrqp7fm+RbEIi6m8nGkIVZAop8fvLgg47F0Yi4xE75DZyG 4qlg== X-Forwarded-Encrypted: i=1; AJvYcCX+Vy5dclyotXmC3fDv6STYnbcDy2TDmISkrHmqPXXkbrHrzQ4c/xX9cAy4bsQjXTKVuqEXiMwpBoR8NN3U0bP9+xgyp62L+p62p18= X-Gm-Message-State: AOJu0YxwLqSV0Zut7TuCOc3qkWeXjluSKm9F8eiRyfbU2i945gTiwSTG 3ZfzGgYSbqtrdRpCr+yedYUheP31jQQ/iK5UhKumclKVnDIGvTplo9bLWU0QHDI= X-Google-Smtp-Source: AGHT+IFE15Or4v64XjwbEff7c+MWOISRCnhFWtQM6ObQ3evXM/ffhHAIMMW/rwLFVOHlxMVgJL8Gew== X-Received: by 2002:a05:600c:1504:b0:425:633d:926a with SMTP id 5b1f17b1804b1-425633d9463mr28806335e9.21.1719536841671; Thu, 27 Jun 2024 18:07:21 -0700 (PDT) Received: from fuerta.Home ([2a02:c7c:7213:c700:2cd1:b0e8:abb:540]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4256af3c27dsm13075805e9.7.2024.06.27.18.07.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jun 2024 18:07:21 -0700 (PDT) From: Alexey Klimov To: linux-sound@vger.kernel.org, srinivas.kandagatla@linaro.org, bgoswami@quicinc.com, lgirdwood@gmail.com, broonie@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, perex@perex.cz, tiwai@suse.com, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, elder@linaro.org, dmitry.baryshkov@linaro.org, krzysztof.kozlowski@linaro.org, caleb.connolly@linaro.org, linux-kernel@vger.kernel.org, alexey.klimov@linaro.org Subject: [PATCH 5/7] arm64: dts: qcom: sm6115: add LPASS LPI pin controller Date: Fri, 28 Jun 2024 02:07:13 +0100 Message-ID: <20240628010715.438471-6-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240628010715.438471-1-alexey.klimov@linaro.org> References: <20240628010715.438471-1-alexey.klimov@linaro.org> MIME-Version: 1.0 X-MailFrom: alexey.klimov@linaro.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: PHHO7VLSMO6Z3LVUPHBT4FQVEK2HN53K X-Message-ID-Hash: PHHO7VLSMO6Z3LVUPHBT4FQVEK2HN53K X-Mailman-Approved-At: Mon, 01 Jul 2024 12:23:58 +0000 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add the Low Power Audio SubSystem Low Power Island (LPASS LPI) pin controller device node required for audio subsystem on Qualcomm QRB4210 RB2. Signed-off-by: Alexey Klimov --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index c49aca3d0772..3a9fb1780c90 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -15,6 +15,7 @@ #include #include #include +#include #include / { @@ -809,6 +810,21 @@ data-pins { }; }; + lpass_tlmm: pinctrl@a7c0000 { + compatible = "qcom,sm4250-lpass-lpi-pinctrl"; + reg = <0x0 0xa7c0000 0x0 0x20000>, + <0x0 0xa950000 0x0 0x10000>; + + clocks = <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "audio"; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&lpass_tlmm 0 0 26>; + + status = "disabled"; + }; + gcc: clock-controller@1400000 { compatible = "qcom,gcc-sm6115"; reg = <0x0 0x01400000 0x0 0x1f0000>; @@ -3068,6 +3084,9 @@ cpufreq_hw: cpufreq@f521000 { }; }; + sound: sound { + }; + thermal-zones { mapss-thermal { polling-delay-passive = <0>;