From patchwork Wed Dec 2 18:07:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 11946557 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08C5DC71155 for ; Wed, 2 Dec 2020 18:08:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A5E2422201 for ; Wed, 2 Dec 2020 18:08:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387496AbgLBSIf (ORCPT ); Wed, 2 Dec 2020 13:08:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727108AbgLBSIe (ORCPT ); Wed, 2 Dec 2020 13:08:34 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7308EC0617A6 for ; Wed, 2 Dec 2020 10:07:54 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id g185so10794001wmf.3 for ; Wed, 02 Dec 2020 10:07:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=g6nXFxwui6LlgkzThdMNjZ7jNWTIQtA3MqnNk7x+FbA=; b=eCfisf3scDZboHsfmTrU9hQL3m3FB9sjSJHws8ZskY7oNjwUnzr3djiDKnorRanFOj BOxWeh648P014c1o2sHr6O62S1FMuHlj983nPwDpp15vb7mKHF2B0jg0A81VkaZLp0Yt jypoZZzyeyzSVD9PJZbE8sEsYVu3WCLoVIkAPu+C68/yqYwIQ/EyVYXyXetzrsWFfpRU fj9Z58i1tFUcg+cVlWWzR+H7Lt9DfdA8Lwkyw/YUMF5Yvjt/z9Oldd3GEDECo0ZsKCBG 5QOuLrmJzf4xAZjCv/pzGJEwrCbPMkS3SURQG7xVOztgiil4fHpUOJFyWkwdyvO0luYt Jv4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=g6nXFxwui6LlgkzThdMNjZ7jNWTIQtA3MqnNk7x+FbA=; b=X8xVasrBxd2eNp63SwQU4V6bIqlJHRNx50da9XR6HyvAfAVB53cav5okVdjh4eJwIn o9ha4RcOGvNfQ25nFKy070/BRHHosx0bMeWywcoWcWaB+9ZU2PxrbpKKdzPp/ATa8D0u 7jJDkJESfZG33fzIGtyaS5e5G6pKI+PX9zyDrPMynvNMGJ6okrKcioK0gf80CBwMrPBz 2YWLXK2CIAsWUeQVSn2zvk5gOgEVsbhH4QNOvN3eGC/dHb4Cvcmdc9Mwg3tuOiJOeNbE sBhDcrd1U29hjfbtiPpSiumavG95hzHkmlt0/LFHisZVFzTLVHA/sIUvguxxRJByB+5Q nn+w== X-Gm-Message-State: AOAM5334sQn5B77G3mwPoOZlZ2OlT0Md3ckC7huwJkdPMloOzJWilYXt TzI6LLIpv0Ec/+hdSwgDZuKfgQ== X-Google-Smtp-Source: ABdhPJxExSgM6GM/aAxAthga7OMPmTb2ZJL3oUkFTfcdhhckmEtj62dmQ1Dsh1lJcgvC5hBSPZ9nLw== X-Received: by 2002:a1c:f405:: with SMTP id z5mr4319430wma.93.1606932473145; Wed, 02 Dec 2020 10:07:53 -0800 (PST) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id a18sm3004404wrr.20.2020.12.02.10.07.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 10:07:52 -0800 (PST) From: Srinivas Kandagatla To: bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, agross@kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla , Dmitry Baryshkov Subject: [PATCH v2 1/6] arm64: dts: qcom: sm8250: add apr and its services Date: Wed, 2 Dec 2020 18:07:36 +0000 Message-Id: <20201202180741.16386-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20201202180741.16386-1-srinivas.kandagatla@linaro.org> References: <20201202180741.16386-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add apr node and its associated services required for audio on RB5. Signed-off-by: Srinivas Kandagatla Tested-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 56 ++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 65acd1f381eb..d44120a6eadb 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -11,7 +11,9 @@ #include #include #include +#include #include +#include #include / { @@ -2620,6 +2622,60 @@ label = "lpass"; qcom,remote-pid = <2>; + apr { + compatible = "qcom,apr-v2"; + qcom,glink-channels = "apr_audio_svc"; + qcom,apr-domain = ; + #address-cells = <1>; + #size-cells = <0>; + + apr-service@3 { + reg = ; + compatible = "qcom,q6core"; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + }; + + q6afe: apr-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: cc { + compatible = "qcom,q6afe-clocks"; + #clock-cells = <2>; + }; + }; + + q6asm: apr-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 0x1801 0x0>; + }; + }; + + q6adm: apr-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";