From patchwork Thu Nov 8 18:40:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 150583 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1185205ljp; Thu, 8 Nov 2018 10:41:55 -0800 (PST) X-Google-Smtp-Source: AJdET5eCd1aEGMQDAhT57zKzFQP4Vv+L2eP1/bpldu5MKCQf6E4NgsTqp6R7bljbiB5f7c7B3xeZ X-Received: by 2002:a17:902:e005:: with SMTP id ca5-v6mr5527662plb.195.1541702515310; Thu, 08 Nov 2018 10:41:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541702515; cv=none; d=google.com; s=arc-20160816; b=RBQ2RKtVZ1LeJSpQZgAm1pkqIwZQXpKket5Y9Cmzr7Lz/i03MA+5SiMbU7Pb/v28Ry JvFOB0M++RWKZU4Vr2qKSmqtlhwFbnIxW9egurcAoYnOvQ6/NBKY7b7x/Abd/xHMjFUR bAyy4EVh2uZL/8Q2tGjpF8j7D3THbK+9niS7Wr1id9KTW1aG1/+mmV60xtJsDBLgzDXe K/dDUuVnX5ABQv7D6qMBA58crNjuCdtxYFNpHr2Chu4j3ZmWHQc+uKaoqaEkZesaweq0 /WKRRcSmT9wMLM9SEQJ7rnHwg5yTqMA2HPQDqVzQgWPFnFiSxojX0UWBa6mjBfv2+pSX bP3g== 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=EEI2f/pcjLhRuL+x46aaFkJbHMPBB4P3sePN3UH5OcM=; b=QnDFajOHwgK1Gg5zI33iBGTZhMMrMNzUoPCvWwJA0cCnKq2VMBL+3CHaG9hsrqOc3E Cf+WCJp2I+RYVSB6m8e6u06lh9ZlE+Qo8Bp0RXCGmrQAlJp1tun2hv9XWH6VrAuBH5Bz 4mua2J4Uez6lEhqauttcIZ94w8Nsun5QRhixto8j5DW31YjRGynguU3ftWVEngrb8S0P HHo7I4Eto+FU8t5MoavxJR3B3JpWNpEP+rRgTAi3+SLrko01lVy9zsTiWAn6aGIZDufR 62Fpb+tVVE+Cx2gx7HzcEINK2PW6Q/rEk9nCtzwnD77v/nYRy+GxVUzIeLuk8FyjcwB+ iSGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1R4d+9uf; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h71-v6si5421707pfa.261.2018.11.08.10.41.55; Thu, 08 Nov 2018 10:41:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=@kernel.org header.s=default header.b=1R4d+9uf; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728087AbeKIESl (ORCPT + 14 others); Thu, 8 Nov 2018 23:18:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:60756 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727231AbeKIESk (ORCPT ); Thu, 8 Nov 2018 23:18:40 -0500 Received: from localhost.localdomain (unknown [171.76.98.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E920E20684; Thu, 8 Nov 2018 18:41:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541702512; bh=zGAOaHycwJH4ZP2IcDu5VLIrA1tRYeVW9BXdOqUHAWA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1R4d+9ufM0Labi9mBBSkymhD3ZaBJemUxySqq4hUy+Cm2JX9BdHBqu4cfTp53tTIZ QGjb84qCB27kYS/f6swJKLUPxWQG5uVyjSI8jKEaIwcGaWl/TMF9JOiVda6aoywDkO SphcpR8AxblaHBKfpNOkDVy5pUGAbX1cYbqcr5yg= From: Vinod Koul To: Andy Gross , David Brown Cc: Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Vinod Koul Subject: [PATCH v4 14/18] arm64: dts: qcom: qcs404: Add remoteproc nodes Date: Fri, 9 Nov 2018 00:10:05 +0530 Message-Id: <20181108184009.18430-15-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181108184009.18430-1-vkoul@kernel.org> References: <20181108184009.18430-1-vkoul@kernel.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bjorn Andersson Add the TrustZone based remoteproc nodes and their glink edges for adsp, cdsp and wcss. Enable them for EVB common DTS. Signed-off-by: Bjorn Andersson Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404-evb.dtsi | 12 +++++ arch/arm64/boot/dts/qcom/qcs404.dtsi | 93 ++++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+) -- 2.14.4 diff --git a/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi b/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi index cc5dfb319af8..ef37ad8f0d4e 100644 --- a/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi @@ -21,6 +21,18 @@ }; }; +&remoteproc_adsp { + status = "ok"; +}; + +&remoteproc_cdsp { + status = "ok"; +}; + +&remoteproc_wcss { + status = "ok"; +}; + &rpm_requests { pms405-regulators { compatible = "qcom,rpm-pms405-regulators"; diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 373d514eb147..4805f66cd2cd 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -80,6 +80,99 @@ method = "smc"; }; + remoteproc_adsp: remoteproc_adsp { + compatible = "qcom,qcs404-adsp-pas"; + + interrupts-extended = <&intc GIC_SPI 293 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 = <&xo_board>; + clock-names = "xo"; + + memory-region = <&adsp_fw_mem>; + + qcom,smem-states = <&adsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts = ; + + qcom,remote-pid = <2>; + mboxes = <&apcs_glb 8>; + + label = "adsp"; + }; + }; + + remoteproc_cdsp: remoteproc_cdsp { + compatible = "qcom,qcs404-cdsp-pas"; + + interrupts-extended = <&intc GIC_SPI 229 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 = <&xo_board>; + clock-names = "xo"; + + memory-region = <&cdsp_fw_mem>; + + qcom,smem-states = <&cdsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts = ; + + qcom,remote-pid = <5>; + mboxes = <&apcs_glb 12>; + + label = "cdsp"; + }; + }; + + remoteproc_wcss: remoteproc_wcss { + compatible = "qcom,qcs404-wcss-pas"; + + interrupts-extended = <&intc GIC_SPI 153 IRQ_TYPE_EDGE_RISING>, + <&wcss_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&wcss_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&wcss_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&wcss_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&xo_board>; + clock-names = "xo"; + + memory-region = <&wlan_fw_mem>; + + qcom,smem-states = <&wcss_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts = ; + + qcom,remote-pid = <1>; + mboxes = <&apcs_glb 16>; + + label = "wcss"; + }; + }; + reserved-memory { #address-cells = <2>; #size-cells = <2>;