From patchwork Tue Jan 29 23:20:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 157013 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp5253602jaa; Tue, 29 Jan 2019 15:20:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN4oSGD4PCbLWhsi1gtHy4yhL/xO6VzfJAkxydg00qIf7HZHVyOJTiOsctBkgTpZQRIjOY0C X-Received: by 2002:a17:902:b48b:: with SMTP id y11mr26889748plr.200.1548804034826; Tue, 29 Jan 2019 15:20:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548804034; cv=none; d=google.com; s=arc-20160816; b=hFkKOuMg6iFYhYIhegS2C7jdyCeFeNuKpIiqmskw0pHpo8l8/PFYIuT5MGp8RgBvcL 1lkBI9cE45oUUc0h2g/QkTwTqYlhaIO02c3WS1bjsgoFYiIJbAmUQEYR0b92E9RDscNe JgLN5ERKpEbXwgBx738XWro1ZeRhg3/NnrUNxo7oTtLSkKxxuCHNd7OdKRDDtmI1Hxm7 iD6tcBPPVmuVDqGaBWh8m/nBDybcdgJyEaqDO0gk9X7NGwKH+pyZTpuB51hD0TnSCZoe k+MYfb90PGMC/jMSuw5dxXUsiTZtLXHYt/SeYZ3EozoyXj0T80DOu7BX8Tg7JC/+t0bi B2Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=NRbN8HgsLKUpGZTnSmCBsWLR6zauooE33ibyj+b+r7o=; b=FYP0nXyqAVSCOjoFPo/Y2DV7pP2RORHpT+ElJbtCaJUB5qjETq0tY9edQHnpVYsRqW Davw/XfQZ9GEqcqWfUdeCgTaco4wEmEEcO+7XxBCdcZ4lC0Ew+1M49CqUgxrSi2vfG63 EL7K7S0DoiuL03IS/wBMzmNWb9qFprhkFFPApPz4AvzI7CNtmzWAA8fMxWzHJAdVTYJX JoTn7nTpCX8q+FmYuJAVGy1pBLsOfMewH1Z087wGl9x2po7x7fuZW4E0mu6kifmhBv0P kbOoRyetWakrjaZ3Th9XoDJxIj7sjWu7i++WWgoCRFcsXC81UVljQ5T1QiQ2W7TOGEBI plYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KNaeMfbY; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si36073273pgi.387.2019.01.29.15.20.34; Tue, 29 Jan 2019 15:20:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KNaeMfbY; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727783AbfA2XUd (ORCPT + 7 others); Tue, 29 Jan 2019 18:20:33 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:41787 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729846AbfA2XUd (ORCPT ); Tue, 29 Jan 2019 18:20:33 -0500 Received: by mail-pl1-f196.google.com with SMTP id u6so10096525plm.8 for ; Tue, 29 Jan 2019 15:20:32 -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; bh=NRbN8HgsLKUpGZTnSmCBsWLR6zauooE33ibyj+b+r7o=; b=KNaeMfbYBnuDZIDwXP5HLmL9z8tblTbyacx3M2ClFJQkm4xAtoDdZfpLtoKAEfcrNF 06fZ/Mi/Oz4ZCgo1LQw5ijhFEp4gnqhBo7uddJ7yq/YCAB+kI9kGFCtV49pX/iPWYtaq 04PV32G78JQLrgBTKiNAx3wiGVrpwSNlL+Dhk= 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; bh=NRbN8HgsLKUpGZTnSmCBsWLR6zauooE33ibyj+b+r7o=; b=PBWK8U97euBQ4oktJVxDVpMTNrGYrMbwMWY2qhqWkBZkZqvoukWkLHpKTY5sM7zPax +Jj9V2oVz5algmzxbSihfeTxwRfur9jRoA+i5lU5s3ZdJgqUuDmnM1WyK/xIvhLAVu+C 88zNvO3N86My/Xv1i9mzzlPG3rUHMqCbX+g5RdzVS0ZGGdd+IE8y0BYoRk5fjZ7TsC8A IvzB0Sd9YWTGbS+jCoghcoB97BwFjHzWX2094cPg90eyEMg5x3vfqzhLv8MBwm9G86BJ NpBXMmgurWUc5isg6jvP7ATUTjlqUiUBX9COGNnHyNTkAgzBI9oPC3j18kPszBhhDWTP 57Kw== X-Gm-Message-State: AJcUukfDvy39A+Yjb3kxN3dKhU74YBI8VTyAcm3uThMJ5rghABWW3Gu2 X5ylRcM6Mn28DIwDcrPAn9Ggs875SFs= X-Received: by 2002:a17:902:714c:: with SMTP id u12mr27661196plm.234.1548804032511; Tue, 29 Jan 2019 15:20:32 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id v70sm51182779pfa.152.2019.01.29.15.20.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Jan 2019 15:20:31 -0800 (PST) From: Bjorn Andersson To: Andy Gross , David Brown Cc: Rob Herring , Mark Rutland , Ohad Ben-Cohen , Arun Kumar Neelakantam , Sibi Sankar , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Subject: [PATCH v4 03/10] arm64: dts: sdm845: Introduce ADSP and CDSP PAS nodes Date: Tue, 29 Jan 2019 15:20:02 -0800 Message-Id: <20190129232009.5033-4-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190129232009.5033-1-bjorn.andersson@linaro.org> References: <20190129232009.5033-1-bjorn.andersson@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the Audio DSP (ADSP) and Compute DSP (CDSP) nodes for TrustZone based remoteproc, supporting booting these cores on e.g. the MTP, and enable the same for the MTP. Signed-off-by: Bjorn Andersson --- Changes since v3: - Make xo reference the actual CXO clock arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 8 ++++ arch/arm64/boot/dts/qcom/sdm845.dtsi | 58 +++++++++++++++++++++++++ 2 files changed, 66 insertions(+) -- 2.18.0 diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index af8c6a2445a2..02b8357c8ce8 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -48,6 +48,10 @@ }; }; +&adsp_pas { + status = "okay"; +}; + &apps_rsc { pm8998-rpmh-regulators { compatible = "qcom,pm8998-rpmh-regulators"; @@ -344,6 +348,10 @@ }; }; +&cdsp_pas { + status = "okay"; +}; + &gcc { protected-clocks = , , diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index afaffcc1e835..d193f85e5835 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -330,6 +330,64 @@ }; }; + adsp_pas: remoteproc-adsp { + compatible = "qcom,sdm845-adsp-pas"; + + interrupts-extended = <&intc GIC_SPI 162 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + memory-region = <&adsp_mem>; + + qcom,smem-states = <&adsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts = ; + label = "lpass"; + qcom,remote-pid = <2>; + mboxes = <&apss_shared 8>; + }; + }; + + cdsp_pas: remoteproc-cdsp { + compatible = "qcom,sdm845-cdsp-pas"; + + interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_EDGE_RISING>, + <&cdsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&cdsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&cdsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&cdsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + memory-region = <&cdsp_mem>; + + qcom,smem-states = <&cdsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts = ; + label = "turing"; + qcom,remote-pid = <5>; + mboxes = <&apss_shared 4>; + }; + }; + tcsr_mutex: hwlock { compatible = "qcom,tcsr-mutex"; syscon = <&tcsr_mutex_regs 0 0x1000>;