Message ID | 20221111113547.100442-11-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp688100wru; Fri, 11 Nov 2022 03:38:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf5NlpevHsBvvJB9ghkrA6lw0UOoNlOO3J+w9DBRlihckkr+Kx7m6eMBP/iiiGbgOIIH6PWt X-Received: by 2002:a17:90a:bc95:b0:216:cdf6:54c0 with SMTP id x21-20020a17090abc9500b00216cdf654c0mr1529092pjr.34.1668166680609; Fri, 11 Nov 2022 03:38:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668166680; cv=none; d=google.com; s=arc-20160816; b=vfvjnxMsHx/JwiqWqm4OJ9VAGqBL1uo9psc2sHAPDlUOpEngQmXVNMsSYbeNabo5Mr eOdPw+rq2mnT1yjIekoLuOncfCaNYNbfsA5FU4FoSlw/73I+HpB4BXaF2imcJ1NtV6N5 qh+ZTGl8toNiaYQBWnyx9ExhcV9uhy6Bvi/ChtPR+5T0Xdkv96KAKAEoxhYBZ2WgsOw8 3mu2weOZ40qVmQD/WU9DmNJRp7QqruzGNlopttRLKTpEyy1rPiWWdFv5DcHIVs/KCA6L MLrizj6Pq/NDe0vyH4VXhz6vekKY7HKxmeSZRA6WK5LLNkBEKHrRTHw4+4BWnunY/taC bYkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4+DBxwlSpUyj8lGt+IYb/lufNjAzDcecLdKZpM26350=; b=ZtefruRytkepJrT9v45Rsg+jZtMP2SSFAvE8WOTa+S040sakbALWbIhyJh+uo60XCb Cn6JUJz14APYcoInCtijizE21qhzoR2uUxaZeDIZfN/Ke7EBsKlDmNH6DEL3Z2qk4zTn WyM4/hMGnROvqeIbucZGgL2ECvKOax8LgwaHNdyCtwSDSbM+imWMyK17WVEInjvWWcj3 mgZfdFsp48pyLd/6SE9TIjVo1dy4n54i83H1+/xQMHSk0U5noAw6QYpBLyJPPn3XhtoH eBS8n+YLnQzh2y1WGINM4PwoF8z6UzBJhDTwDmSYF9EkAcoisO4wGXZ4J5benxzKFleN dfNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xVCLNlN9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gp12-20020a17090adf0c00b00202b984842csi2433956pjb.35.2022.11.11.03.37.46; Fri, 11 Nov 2022 03:38:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xVCLNlN9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233213AbiKKLhW (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Fri, 11 Nov 2022 06:37:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232855AbiKKLgt (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 Nov 2022 06:36:49 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 288807E983 for <linux-kernel@vger.kernel.org>; Fri, 11 Nov 2022 03:36:22 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id p8so7886852lfu.11 for <linux-kernel@vger.kernel.org>; Fri, 11 Nov 2022 03:36:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=4+DBxwlSpUyj8lGt+IYb/lufNjAzDcecLdKZpM26350=; b=xVCLNlN9wYe+LKsEBRt77PDlL/q8IAYF63JYB5lSSfMFs84t+7wF58gGCa/h9z81Xa 2U0T8RbljMgHOwvugy2GY7dPPrjnhD9j7mUacdYMcZeS7/3II5eQ/ygKB3bNAtqhLyE+ +T0VxAZoWW8T1QN6NSsd66Cz0fA8ORrYx3Hlx1x04L070iJb1LhD/bTPrpdkzUgnAJi9 lv6dvkp20qsj+JrFUekCd1oH1DCybnMVvd+GL+fzgMSPvYPKQ4A41IyqhPJJUgQnXf71 5yBDqGUTGX2ANXztXXctpT6I4yNpTr6cXL6W6IlQebPwqLWj4ZJg5dimgtf3vCbc4Pu1 TOWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=4+DBxwlSpUyj8lGt+IYb/lufNjAzDcecLdKZpM26350=; b=y0xrhK7vipmwDPzKSj7PdCRpuNW71RTx33lmvWgdjgsyeI5mrgdRUDCvCv2vp9RyxN ui68jx2XSgjTveBVwoZtO8NfdO0lIcJArC3+8k3X+6j5Yif80dA6ns7QBCSgAmspz8Dh PhrcFAdBAhBfCL3HR8YFppjMzZ/ZkWGfYCUbsJnBDCjNlmo1NB/xDesisoe1kq5HeZcG cJBfLPm6MeNP8mVRTxHwRTYW3OHdBQRFOGJGKLbqf+DwEz+55r9kelTslfF3YQVMlERV dteFodbTe+Nk/GDl8Z5/p7IxCmPXo97hfZhOKiy0/SwgWQbfdQEhI80nEz1chtLNtGlB O/oA== X-Gm-Message-State: ANoB5pmFY5ULZPE/mg4dNYOlgbCQB+L5r98WoFJ/2L/cPPs6Hgk6668c M5qADEFHf/HObhSMo/IwBfL44w== X-Received: by 2002:a05:6512:3e1a:b0:4b0:25f9:14e6 with SMTP id i26-20020a0565123e1a00b004b025f914e6mr577507lfv.604.1668166580125; Fri, 11 Nov 2022 03:36:20 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142199.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.199]) by smtp.gmail.com with ESMTPSA id bi30-20020a0565120e9e00b004acb2adfa1fsm274970lfb.307.2022.11.11.03.36.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 03:36:19 -0800 (PST) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Banajit Goswami <bgoswami@quicinc.com>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Patrick Lai <plai@qti.qualcomm.com>, Srinivasa Rao Mandadapu <srivasam@qti.qualcomm.com>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH 10/10] ASoC: dt-bindings: qcom,q6apm: Add SM8450 bedais node Date: Fri, 11 Nov 2022 12:35:47 +0100 Message-Id: <20221111113547.100442-11-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221111113547.100442-1-krzysztof.kozlowski@linaro.org> References: <20221111113547.100442-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749199545261643660?= X-GMAIL-MSGID: =?utf-8?q?1749199545261643660?= |
Series |
ASoC: dt-bindings: Rework Qualcomm APR/GPR Sound nodes for SM8450
|
|
Commit Message
Krzysztof Kozlowski
Nov. 11, 2022, 11:35 a.m. UTC
On SM8450 and SC8280XP, the Q6APM is a bit different:
1. It is used as a platform DAI link, so it needs #sound-dai-cells.
2. It has two DAI children, so add new "bedais" node.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
.../devicetree/bindings/sound/qcom,q6apm.yaml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
Comments
On 11/11/2022 11:35, Krzysztof Kozlowski wrote: > On SM8450 and SC8280XP, the Q6APM is a bit different: This is not specific to SM8450 or SC8280XP its part of AudioReach apm which deals with both backends and pcm. In old Elite architecture we had a dedicated service AFE to deal with Backend dais, now APM does all. Thanks, Srini > 1. It is used as a platform DAI link, so it needs #sound-dai-cells. > 2. It has two DAI children, so add new "bedais" node. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > .../devicetree/bindings/sound/qcom,q6apm.yaml | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/Documentation/devicetree/bindings/sound/qcom,q6apm.yaml b/Documentation/devicetree/bindings/sound/qcom,q6apm.yaml > index 7acb832aa557..cd434e8268ce 100644 > --- a/Documentation/devicetree/bindings/sound/qcom,q6apm.yaml > +++ b/Documentation/devicetree/bindings/sound/qcom,q6apm.yaml > @@ -18,14 +18,24 @@ properties: > enum: > - qcom,q6apm > > + bedais: > + type: object > + $ref: /schemas/sound/qcom,q6apm-lpass-dais.yaml# > + unevaluatedProperties: false > + description: Qualcomm DSP audio ports > + > dais: > type: object > $ref: /schemas/sound/qcom,q6apm-dai.yaml# > unevaluatedProperties: false > description: Qualcomm DSP audio ports > > + '#sound-dai-cells': > + const: 0 > + > required: > - compatible > + - bedais > - dais > > unevaluatedProperties: false > @@ -41,11 +51,17 @@ examples: > service@1 { > reg = <GPR_APM_MODULE_IID>; > compatible = "qcom,q6apm"; > + #sound-dai-cells = <0>; > qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; > > dais { > compatible = "qcom,q6apm-dais"; > iommus = <&apps_smmu 0x1801 0x0>; > }; > + > + bedais { > + compatible = "qcom,q6apm-lpass-dais"; > + #sound-dai-cells = <1>; > + }; > }; > };
On 14/11/2022 12:40, Srinivas Kandagatla wrote: > > > On 11/11/2022 11:35, Krzysztof Kozlowski wrote: >> On SM8450 and SC8280XP, the Q6APM is a bit different: > > This is not specific to SM8450 or SC8280XP its part of AudioReach apm > which deals with both backends and pcm. > > In old Elite architecture we had a dedicated service AFE to deal with > Backend dais, now APM does all. Sure, I'll add it to commit msg. Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/sound/qcom,q6apm.yaml b/Documentation/devicetree/bindings/sound/qcom,q6apm.yaml index 7acb832aa557..cd434e8268ce 100644 --- a/Documentation/devicetree/bindings/sound/qcom,q6apm.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,q6apm.yaml @@ -18,14 +18,24 @@ properties: enum: - qcom,q6apm + bedais: + type: object + $ref: /schemas/sound/qcom,q6apm-lpass-dais.yaml# + unevaluatedProperties: false + description: Qualcomm DSP audio ports + dais: type: object $ref: /schemas/sound/qcom,q6apm-dai.yaml# unevaluatedProperties: false description: Qualcomm DSP audio ports + '#sound-dai-cells': + const: 0 + required: - compatible + - bedais - dais unevaluatedProperties: false @@ -41,11 +51,17 @@ examples: service@1 { reg = <GPR_APM_MODULE_IID>; compatible = "qcom,q6apm"; + #sound-dai-cells = <0>; qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; dais { compatible = "qcom,q6apm-dais"; iommus = <&apps_smmu 0x1801 0x0>; }; + + bedais { + compatible = "qcom,q6apm-lpass-dais"; + #sound-dai-cells = <1>; + }; }; };