From patchwork Wed Oct 2 02:20: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: 833627 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 8902ECEF17A for ; Tue, 8 Oct 2024 14:22: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 C3B72850; Tue, 8 Oct 2024 16:22:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C3B72850 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1728397358; bh=KJ/XBCfRYMGGmoGw6pT+HzGpgHNM0HqU+ZU6WmeHwTA=; 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=K5GHlh5Ca6qEmSNOV3TSKZ9rB37UeXYYov4P1lDdrc66IM2L+ERjK2vIaMnmX5Njp xjh9wi4D4XbjWztCx13PBSutbPDVfG/XLr4IXSSey72UmhUl/c/kAZ6B9sDWCyciMY ZLOjHLF5nCI0FHv3LVgtNJ3mf5C9QkwBngvK/kR8= Received: by alsa1.perex.cz (Postfix, from userid 50401) id AFB92F80688; Tue, 8 Oct 2024 16:21:02 +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 30434F8068D; Tue, 8 Oct 2024 16:21:02 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8D729F80536; Wed, 2 Oct 2024 04:20:30 +0200 (CEST) Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) (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 C3C3BF8001E for ; Wed, 2 Oct 2024 04:20:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C3C3BF8001E 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=eWz0kp9n Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a8a6d1766a7so106980166b.3 for ; Tue, 01 Oct 2024 19:20:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727835627; x=1728440427; 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=O6tt3oG2r1wMqarycN8kg/XqfelGZiLqlb3bl/K/iuU=; b=eWz0kp9nzzMqC1uPZpRUmvBq6/tX32XoJh5RdCfwpBzhM4u8yzif1FT5MgARmhyX9j CaD9/NPBsFuLzfeibQbUbrntLQy2e+ypHE8BrrFwyQHbRZjGzyA1t6DOsgc8zdIeNRwW ObSNXB4//HfWLyZgBh7XF65CqU/OKN3TQj9V4GL4UB7stNuK5A6dsRlyQB2o2EuZM9eo W97zTg64ghAzkyR/YniwLBSH61HEMchV/+FbUMHQsIGLoj9MicfRUF1oxpwleDJU0nR8 N/lkp5XExTOTr76LXmJ8f0v6+ZLoUmcTzL3papF6I326VGzA8PotuB0B+rj9HAd1J6fN g8pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727835627; x=1728440427; 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=O6tt3oG2r1wMqarycN8kg/XqfelGZiLqlb3bl/K/iuU=; b=Xo0Of7lqo5I5P4B+YwCSX9PdaCs9hAAij+MDyCVcavtgpXBwNtUVruyShqT7gPK6pv 05QVG1JEmFEJ/hXsyblj6Kg9cBCIUdS/D2jZOb+kRNlZ5w6uG8q0FDgt64DRkw+EzXMx x4sr1Q/VdnYmbNSso+sjieKHCmYtVuiufklIRatNb3Mo8ZrNSId33XW+3p9wNwSml9YF Jl2oJqSfYstNkXPnYViZYbHnF3X1csphQz8O2hC8sS2K0kRMEWFTR9wui4AyT4hGmINO CMMMGG+xBD3uYvQfTjVYBENFFWMMwmbX9DJiEc0sX5bLKPrQ0lcApU3I1oJoP2CxTfEL HFBQ== X-Forwarded-Encrypted: i=1; AJvYcCVrpn4Rukr5B2yfLPvpQg2KEEvUWoD8PKVxYOSYz7LorCQiO8D3YpeFepw97UPnjzPSZ4q7ebj6QrbU@alsa-project.org X-Gm-Message-State: AOJu0Yya2Pm/8wUgV5GuR8/HdUGxkVve6dzj7TBHrEHwNTm9KKJ/tl3T wm79EuC1v3auIwgL0UszaA14bvnUIjIj/NNU11j/PbDN5h4FCC9FeSi117+i9hM= X-Google-Smtp-Source: AGHT+IF7DSxO6S/zg0dV87J7CmDUxTyQGbSW2llz09R6q945EHLqQDNzRVtWVZkaJVui3r1JoBLxgg== X-Received: by 2002:a17:907:848:b0:a7a:b4bd:d0eb with SMTP id a640c23a62f3a-a98f823904amr119175766b.24.1727835627397; Tue, 01 Oct 2024 19:20:27 -0700 (PDT) Received: from localhost.localdomain ([2.125.184.148]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a93c2945f2esm787518866b.117.2024.10.01.19.20.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 19:20:26 -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, a39.skl@gmail.com, alexey.klimov@linaro.org Subject: [PATCH v2 4/7] arm64: dts: qcom: sm6115: add apr and its services Date: Wed, 2 Oct 2024 03:20:12 +0100 Message-ID: <20241002022015.867031-5-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241002022015.867031-1-alexey.klimov@linaro.org> References: <20241002022015.867031-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: YOJ7PDBUEXVOH63GI7PNIWLL3KQVUOYC X-Message-ID-Hash: YOJ7PDBUEXVOH63GI7PNIWLL3KQVUOYC X-Mailman-Approved-At: Tue, 08 Oct 2024 14:20:35 +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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alexey Klimov --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 72 ++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index 41216cc319d6..b211a49982d6 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -14,6 +14,8 @@ #include #include #include +#include +#include #include / { @@ -2701,6 +2703,76 @@ 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>; + + dai@0 { + reg = ; + }; + + dai@1 { + reg = ; + }; + + dai@2 { + reg = ; + }; + }; + }; + + 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";