From patchwork Wed Feb 6 05:13:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 157558 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6000896jaa; Tue, 5 Feb 2019 21:13:53 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib0XPiGynRZ6RUC/Tkhv9XPBAhNBVlQWVKyTt25+SgIe7kBo0Z4lqk1xLNsz7Di+gXDZS20 X-Received: by 2002:a17:902:7043:: with SMTP id h3mr8936873plt.22.1549430033623; Tue, 05 Feb 2019 21:13:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549430033; cv=none; d=google.com; s=arc-20160816; b=ioJdHTAAFYyKbiT+E7p2sku4aUkjHrT47RDphRxd1C+YATtdARJHpMFTye5x+4UxVK q5XYb4p02yXrUvblmpRD2phubxbhgjPT9Z7wfxLiJEwm/dC33xx0+GYAbKx4zi1X+Em6 Yu5Js1Mcgj/TfPdwpcJjGTUZB9E8orzztV2yVoegM1LWYXQrInDskqNif4G4dxhHcF9K XTNwEmFMToEcpEPLLVHA8RzBwIIUoFe6G4lJvdpNbgEFVckfk8I2KRfz9Y2uBy29Blgo Y24N5sBoLK4GjzKALbhGxTvBoX2nd1ezMivaQyxBzEr6fg/0Axns7t2upfUdVhBWamSw gpYw== 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=jBPy0BCogKNseYJcIvB8uJfzudS8Sr9y75W4AtxYtoc=; b=XaefYBaVwKzQAsZSdPkOuvrVhdg4dkhdl2jc8/JcqGmtS/nZnLm8fsgmOXNx5taBsI wlFrR/uMfQj4mla7PufbeONjGAUMttbxpR/aQMxgjbWt9JnRdUo+BPrbbUNxa4kSuHbx KgMZqSK5XlyyUy8ySxAKO+X9AQKhRZq2yf0FrsjUw3uz4Vy6s8av12R44czAjuJlLHce EDwwrzgOxTpQ1mG0qmBMPCgJ34cGSRpYunTpZge1v6SNqeO3VagoArxlwx+BimpZ4ggn 7l2lZ4i8o8rjvPGIdLRkz19RaBrJu54MqURPIJ0vtoYi+4Eg1H6XnnvQz8iB6rpHVehs gnjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dKXNYUjL; 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 w11si3972824pfk.210.2019.02.05.21.13.52; Tue, 05 Feb 2019 21:13:53 -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=dKXNYUjL; 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 S1727694AbfBFFNr (ORCPT + 7 others); Wed, 6 Feb 2019 00:13:47 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:40977 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727696AbfBFFNq (ORCPT ); Wed, 6 Feb 2019 00:13:46 -0500 Received: by mail-pg1-f194.google.com with SMTP id m1so2417170pgq.8 for ; Tue, 05 Feb 2019 21:13:46 -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=jBPy0BCogKNseYJcIvB8uJfzudS8Sr9y75W4AtxYtoc=; b=dKXNYUjLUW8z8GvDR1xLm+3bFXFqFtT9u0J7f//ld8CCA8ZaauK8ErwhzKngAhjAwY Jb86uDn2jxNMw0TONnz/3U2+tbuGidKkC8xR2rjzYwSYiXnGb4toAwYNYSc1L3Ju/Uk/ VNUnoMBQW2Uo2lKlEP6Hxrl0MPxYb9BfMpIDgnkTwgEQiQ6BMk6miksoZ6WLkUZIIGrn jfPaCduO1K6Rjw2ZantKB9/8aewzAxYSAIwGTG7i3eHHIClusIaPLyAMy1GALMjKtTN8 R4+hOR50sTvs3rJCyr9K6jg+rXQMC7SFBycZeJNTmxSnx74NHk/z24rorpLTDFkHMAw8 ye5g== 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=jBPy0BCogKNseYJcIvB8uJfzudS8Sr9y75W4AtxYtoc=; b=TxyfElPOz44KWpRXoNSktPT6CcUf6JJR+Ij2rB3sMzxpqXVnJnWTTgT4I7QF4ObvNb fyEXt01fwSB8ZP/qulmlFjCRj+vGTQT2NhDaObq0WSRh4DL7IHhExq0PjcIlRVYL/qy8 kCCPxdPPKiUJmtRG4clWZl0fNofrJTZxjXdTqilf5421mjiRUgM3KCcK5GSpUh4Oaiv7 kXwU919O6PnyPWSms0J/PUEDaSwK2fV3gk8YaM7C4usZXrtleBpC91n1wWYR+ybwtP9X iwFliRAXdiAvSf0v4LzD6+9MsCWy7NLyyWhuygDuQeuSvVsZmTnxYaHMYZTJ695qFaS6 39Zg== X-Gm-Message-State: AHQUAuYghwrlZ4mDUJdMPj7puNbmqB3QJypuMtcSCX0mFRmGRaxP6dkl brH395sb1Yx1iHGuYI8LqveEjw== X-Received: by 2002:a63:f74f:: with SMTP id f15mr7874228pgk.190.1549430025738; Tue, 05 Feb 2019 21:13:45 -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 y71sm10735012pfi.123.2019.02.05.21.13.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 21:13:44 -0800 (PST) From: Bjorn Andersson To: Andy Gross Cc: David Brown , Rob Herring , Mark Rutland , Arun Kumar Neelakantam , Sibi Sankar , Doug Anderson , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 3/8] arm64: dts: sdm845: Introduce ADSP and CDSP PAS nodes Date: Tue, 5 Feb 2019 21:13:30 -0800 Message-Id: <20190206051335.23799-4-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190206051335.23799-1-bjorn.andersson@linaro.org> References: <20190206051335.23799-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. Tested-by: Sibi Sankar Reviewed-by: Sibi Sankar Signed-off-by: Bjorn Andersson --- Changes since v5: - None 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 89071463a84a..2e78638eb73b 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 a33d27b3a389..12efbdb1fa2e 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -324,6 +324,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>;