Message ID | 20221115170242.150246-2-srinivas.kandagatla@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 l7csp2841286wru; Tue, 15 Nov 2022 09:06:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf5vF4AHplNHIuJT44EnNKC/4zc3FVqmaaoUaJjPjl8EmvHDbgCjExN0/8Bx7LI2XFk1xwQp X-Received: by 2002:a17:906:3e46:b0:78e:1046:c52a with SMTP id t6-20020a1709063e4600b0078e1046c52amr14767852eji.713.1668531967142; Tue, 15 Nov 2022 09:06:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668531967; cv=none; d=google.com; s=arc-20160816; b=NVvsfU9ix/AwaNhQvFf5qDAZ2CL5pLG63DEP8PLfs27N7oGPfBin2USEFfmfR8BVlt 1Ztg9UfZ0CB9grPVdfndz6JC2M4kxji0zIlZw2CvLN2iFZLnI7ZaoEt6zKrMGL9xTYLf McKBvZQgA+4LtpvhZ5zkGq39JkmPXyzYnjM8SQnbKndz0WefBAtsQkRXnqB97HeqWftt pp6g4j4GquA+ont1AptEZHvxvOoMonMS8jiA81XNBWa36a+Sqc4K1vpQ1RSvb7SKBNx9 0+x3Vs1gx2MiibWY0dvi/91eKAqfWrbXzpH+0pA9Xn2kaR/HRJ81udO3Yg9yzP2wMnf8 +kEA== 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=7vOAdIUmGMxdUp1gtYvPxRf9ED25yi+MPvUy63Nj+0E=; b=bsX4ZmFNZlU6bIOgfYeJl+8s4bulqUCHcxmoTZ9NAKFLRkIY1bXxCiPoul8hBCUwZA dye8hnP5X2SIoUNN50WEehmvPe3F81wID9ORUsOzqNGImZdPKK8HXxTZvJZ8JzodTFRC n+/vwcinnb4+3m71WUYXOSp8JXTDTF3KGdTt5sMCM7Mk9mmPD9Uh1SVDKXqSFdSr3yHa 4XOlgAKrM/yzVdMwkTNRpWr5+53rmjhCbJlhFZF5NFN5NTwMcwW38nyU7YlF89YV1zne 1FC8WqqtULfiKAoc4IVdW7OftmvlRpZ8pX0yHO+jDBNrBKdYQR+eMgSV+xN6DRIBMEtU EwWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pgmyXclG; 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 sh9-20020a1709076e8900b007ad8bd5b636si8111705ejc.377.2022.11.15.09.05.34; Tue, 15 Nov 2022 09:06:07 -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=pgmyXclG; 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 S231288AbiKORDZ (ORCPT <rfc822;maxim.cournoyer@gmail.com> + 99 others); Tue, 15 Nov 2022 12:03:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230442AbiKORDJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 15 Nov 2022 12:03:09 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 549182EF35 for <linux-kernel@vger.kernel.org>; Tue, 15 Nov 2022 09:02:59 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id v1so25325622wrt.11 for <linux-kernel@vger.kernel.org>; Tue, 15 Nov 2022 09:02:59 -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=7vOAdIUmGMxdUp1gtYvPxRf9ED25yi+MPvUy63Nj+0E=; b=pgmyXclGCmGSPtny7bNgUDi7gOL7+zcjbvh8fwSS1Yn/LTgFHuhqdZGs1Wtoc5E4Nn XPsQfu7ctqpTZiTYH3Am2kLdRLZ2+E3FaXEEpAUqWOklEkulx1q7XScBj+Cm0VT85o8Y xxIjHMz8+uAQTv+Oz9U8bV+4mFsHdHgoR3Y2oMyFOPooUh3sRDX40v2KsqNEFM9Rqwx3 HLFFOh6tsM+MgbQohHKIIYAFOCGvBQLx4OUijNL6A+c17KEzJhKM2B1pPEyvgTn0B0tG 8tfiC+4N/MHJawsjkdPRqBF4MZnxMvR2nvcRUR+8IrDkwGl718GLc7Zo5r7qOTC0Uldr gq4w== 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=7vOAdIUmGMxdUp1gtYvPxRf9ED25yi+MPvUy63Nj+0E=; b=jg9cbOzRJHYEpPQkbPV+amRl0wwT9PW4IV5IR3KYGzeltSnuEA0tCIM89QqF9DrEDb ZupMY0xx2O5wJgNbGwcEA3Lfsjicu4sdhQWl0Jujqu3VDUqvY8MnPb5DtMQUpANrKtef PokCdYSl2WmJPYRpeu1XWlfDbGx8G7rZYTyoDxCGsk+RAISemJM3xjWkrBsp8zXHL5Lb /IesWcjiLrMhM3I/1hxVF7E1nPwxOwuCqzpAyqbpR3S6/IjEIIX2FErVPk2OQiZ78X1W b6v0zmwkqet+n/7azlNA4ETkgZD5SLKthbmJF1Vnw/xrfByiPDXr6lA5Btg4IZhKWK0Z avxQ== X-Gm-Message-State: ANoB5plkGrWXY/MB3YT/nmH0NMQdCLa+brQoa6KNHL50gdNf4uZfj+CM KjF+2L1mjSF4UVw9lIuJ3To8lA== X-Received: by 2002:adf:f606:0:b0:236:8a0:2d76 with SMTP id t6-20020adff606000000b0023608a02d76mr11305223wrp.28.1668531777805; Tue, 15 Nov 2022 09:02:57 -0800 (PST) Received: from localhost.localdomain ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id v21-20020a05600c215500b003c6c3fb3cf6sm15747090wml.18.2022.11.15.09.02.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 09:02:57 -0800 (PST) From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> To: agross@kernel.org, andersson@kernel.org Cc: konrad.dybcio@somainline.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Subject: [PATCH 1/3] arm64: dts: qcom: sc8280xp/sa8540p: add gpr node Date: Tue, 15 Nov 2022 17:02:40 +0000 Message-Id: <20221115170242.150246-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221115170242.150246-1-srinivas.kandagatla@linaro.org> References: <20221115170242.150246-1-srinivas.kandagatla@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=ham 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?1749582576254792631?= X-GMAIL-MSGID: =?utf-8?q?1749582576254792631?= |
Series |
arm64: dts: qcom: sc8280xp: add audio support
|
|
Commit Message
Srinivas Kandagatla
Nov. 15, 2022, 5:02 p.m. UTC
Add GPR node along with APM(Audio Process Manager) and PRM(Proxy
resource Manager) audio services.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 40 ++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Comments
On 15/11/2022 18:02, Srinivas Kandagatla wrote: > Add GPR node along with APM(Audio Process Manager) and PRM(Proxy > resource Manager) audio services. > > Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> > --- > arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 40 ++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > index c32bcded2aef..e3cdd8bccb0c 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > @@ -12,6 +12,7 @@ > #include <dt-bindings/power/qcom-rpmpd.h> > #include <dt-bindings/soc/qcom,rpmh-rsc.h> > #include <dt-bindings/thermal/thermal.h> > +#include <dt-bindings/soc/qcom,gpr.h> > > / { > interrupt-parent = <&intc>; > @@ -1152,6 +1153,45 @@ IPCC_MPROC_SIGNAL_GLINK_QMP > > label = "lpass"; > qcom,remote-pid = <2>; > + > + gpr { > + compatible = "qcom,gpr"; > + qcom,glink-channels = "adsp_apps"; > + qcom,domain = <GPR_DOMAIN_ID_ADSP>; > + #address-cells = <1>; > + #size-cells = <0>; > + qcom,intents = <512 20>; > + > + q6apm: q6apm { > + reg = <GPR_APM_MODULE_IID>; > + compatible = "qcom,q6apm"; > + #sound-dai-cells = <0>; > + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; > + q6apmdai: dais { > + compatible = "qcom,q6apm-dais"; > + #sound-dai-cells = <1>; DAI cells are not allowed by binding, so either drop it or update binding. > + iommus = <&apps_smmu 0x0c01 0x0>; > + }; > + > + q6apmbedai: bedais { > + compatible = "qcom,q6apm-lpass-dais"; > + #sound-dai-cells = <1>; > + }; > + }; > + > + q6prm: q6prm { > + reg = <GPR_PRM_MODULE_IID>; > + compatible = "qcom,q6prm"; > + #clock-cells = <2>; Not allowed by binding. > + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; > + q6prmcc: cc { This should be "clock-controller". > + compatible = "qcom,q6prm-lpass-clocks"; > + #clock-cells = <2>; > + }; > + }; > + Drop empty line > + }; > + Ditto > }; > }; > Best regards, Krzysztof
On Tue, Nov 15, 2022 at 05:02:40PM +0000, Srinivas Kandagatla wrote: > Add GPR node along with APM(Audio Process Manager) and PRM(Proxy Perhaps spell out GPR as well. > resource Manager) audio services. > > Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> > --- > arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 40 ++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > index c32bcded2aef..e3cdd8bccb0c 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > @@ -12,6 +12,7 @@ > #include <dt-bindings/power/qcom-rpmpd.h> > #include <dt-bindings/soc/qcom,rpmh-rsc.h> > #include <dt-bindings/thermal/thermal.h> > +#include <dt-bindings/soc/qcom,gpr.h> Please keep the include directives sorted. > > / { > interrupt-parent = <&intc>; > @@ -1152,6 +1153,45 @@ IPCC_MPROC_SIGNAL_GLINK_QMP > > label = "lpass"; > qcom,remote-pid = <2>; > + > + gpr { > + compatible = "qcom,gpr"; > + qcom,glink-channels = "adsp_apps"; > + qcom,domain = <GPR_DOMAIN_ID_ADSP>; > + #address-cells = <1>; > + #size-cells = <0>; I'd move the address and size cells properties above the vendor ones. > + qcom,intents = <512 20>; > + > + q6apm: q6apm { > + reg = <GPR_APM_MODULE_IID>; > + compatible = "qcom,q6apm"; Please move compatible before reg throughout. > + #sound-dai-cells = <0>; > + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; > + q6apmdai: dais { > + compatible = "qcom,q6apm-dais"; > + #sound-dai-cells = <1>; > + iommus = <&apps_smmu 0x0c01 0x0>; > + }; > + > + q6apmbedai: bedais { > + compatible = "qcom,q6apm-lpass-dais"; > + #sound-dai-cells = <1>; > + }; > + }; > + > + q6prm: q6prm { > + reg = <GPR_PRM_MODULE_IID>; > + compatible = "qcom,q6prm"; > + #clock-cells = <2>; > + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; > + q6prmcc: cc { > + compatible = "qcom,q6prm-lpass-clocks"; > + #clock-cells = <2>; > + }; > + }; > + Stray new line. > + }; > + Same here. > }; > }; Johan
On 16/11/2022 08:06, Krzysztof Kozlowski wrote: > On 15/11/2022 18:02, Srinivas Kandagatla wrote: >> Add GPR node along with APM(Audio Process Manager) and PRM(Proxy >> resource Manager) audio services. >> >> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> >> --- >> arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 40 ++++++++++++++++++++++++++ >> 1 file changed, 40 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi >> index c32bcded2aef..e3cdd8bccb0c 100644 >> --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi >> @@ -12,6 +12,7 @@ >> #include <dt-bindings/power/qcom-rpmpd.h> >> #include <dt-bindings/soc/qcom,rpmh-rsc.h> >> #include <dt-bindings/thermal/thermal.h> >> +#include <dt-bindings/soc/qcom,gpr.h> >> >> / { >> interrupt-parent = <&intc>; >> @@ -1152,6 +1153,45 @@ IPCC_MPROC_SIGNAL_GLINK_QMP >> >> label = "lpass"; >> qcom,remote-pid = <2>; >> + >> + gpr { >> + compatible = "qcom,gpr"; >> + qcom,glink-channels = "adsp_apps"; >> + qcom,domain = <GPR_DOMAIN_ID_ADSP>; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + qcom,intents = <512 20>; >> + >> + q6apm: q6apm { >> + reg = <GPR_APM_MODULE_IID>; >> + compatible = "qcom,q6apm"; >> + #sound-dai-cells = <0>; >> + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; >> + q6apmdai: dais { >> + compatible = "qcom,q6apm-dais"; >> + #sound-dai-cells = <1>; > > DAI cells are not allowed by binding, so either drop it or update binding. Thanks Krzystof, Konrad and Johan for reviewing. I agree with all of the comments and they are fixed now. it will be part of v2. --srini > >> + iommus = <&apps_smmu 0x0c01 0x0>; >> + }; >> + >> + q6apmbedai: bedais { >> + compatible = "qcom,q6apm-lpass-dais"; >> + #sound-dai-cells = <1>; >> + }; >> + }; >> + >> + q6prm: q6prm { >> + reg = <GPR_PRM_MODULE_IID>; >> + compatible = "qcom,q6prm"; >> + #clock-cells = <2>; > > Not allowed by binding. > >> + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; >> + q6prmcc: cc { > > This should be "clock-controller". > >> + compatible = "qcom,q6prm-lpass-clocks"; >> + #clock-cells = <2>; >> + }; >> + }; >> + > > Drop empty line > >> + }; >> + > > Ditto > >> }; >> }; >> > > Best regards, > Krzysztof >
diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index c32bcded2aef..e3cdd8bccb0c 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -12,6 +12,7 @@ #include <dt-bindings/power/qcom-rpmpd.h> #include <dt-bindings/soc/qcom,rpmh-rsc.h> #include <dt-bindings/thermal/thermal.h> +#include <dt-bindings/soc/qcom,gpr.h> / { interrupt-parent = <&intc>; @@ -1152,6 +1153,45 @@ IPCC_MPROC_SIGNAL_GLINK_QMP label = "lpass"; qcom,remote-pid = <2>; + + gpr { + compatible = "qcom,gpr"; + qcom,glink-channels = "adsp_apps"; + qcom,domain = <GPR_DOMAIN_ID_ADSP>; + #address-cells = <1>; + #size-cells = <0>; + qcom,intents = <512 20>; + + q6apm: q6apm { + reg = <GPR_APM_MODULE_IID>; + compatible = "qcom,q6apm"; + #sound-dai-cells = <0>; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + q6apmdai: dais { + compatible = "qcom,q6apm-dais"; + #sound-dai-cells = <1>; + iommus = <&apps_smmu 0x0c01 0x0>; + }; + + q6apmbedai: bedais { + compatible = "qcom,q6apm-lpass-dais"; + #sound-dai-cells = <1>; + }; + }; + + q6prm: q6prm { + reg = <GPR_PRM_MODULE_IID>; + compatible = "qcom,q6prm"; + #clock-cells = <2>; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + q6prmcc: cc { + compatible = "qcom,q6prm-lpass-clocks"; + #clock-cells = <2>; + }; + }; + + }; + }; };