From patchwork Thu Nov 8 17:50:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 150554 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1132192ljp; Thu, 8 Nov 2018 09:52:48 -0800 (PST) X-Google-Smtp-Source: AJdET5eoeEXSiBhOjJljfpHMHAIZqMtNHc8dIBgbR9UCIxOB4FLudx8YJ4S1/Fxr6UZS0ymNjkI9 X-Received: by 2002:a63:e247:: with SMTP id y7mr4370249pgj.84.1541699568835; Thu, 08 Nov 2018 09:52:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541699568; cv=none; d=google.com; s=arc-20160816; b=SjuhmtXe0GHQjE+SWZ0v/NR+hJ+CREirGX6V0PjrYU1yy/FLPIra5D59atj4dg8kWs C//3H2FLbB3Cks8JXtHLrqvR2mo/nVDj55+UpG9D6lz080TelpjmHYoZ/+nsZni2O//W FsFDaHcAOKpwFPt4YngiqzcTKkW9b8fc6EKCTdOAdtb9C6MuEY38RdrfGo2GrbY07DwQ jkHCNcuIgjBgHLQuMBuQw4N+tyHY5FRrcJMvcyVkdLTEq23th8aTz7dW/z4OJgor5n1P NvcxrfBapeZpMvpgLJqNWCi71gNOpEC+Q/jwxrfxfXjM3WqBLo5Gwx6Wh755cYlP+NZZ 3SUQ== 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=a7h4Uegv+oNVefVNc+3UMpBlcbFpT0VqZJaqzvp0hs8=; b=nl6afWaugkL9DTmBODyVA23+6yld0rIjiYGKXXu+3S4hnSi9Xz3J34Xs2KP5MNcvig Hyk7xlzant4CMKXZN0FlRXGxqSRlLMu5Oq8/g38847FRGu5VxoCN1Nq9EwThQyoqFPVT vtiC3+HMhghrAlMCqD0uG0SanzyDSFXgR/JVKPTMnNUxE/Vwoa73t8X80dI+UdunWGrG f5T9JsNKckNnEq+PL6kkDBvcjMQUSB5tAphCluZMboGJqTGj4+DaEw9/xXtOGa9Rhur3 jfKd/IQ2SHlnbD1ZsE+zzQM9fyrZ69l1EqsgALBTr2pZpZL0wTO4rmKEbvnLMP9BB7f4 YgZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mTZF4eza; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 u19-v6si5253906pfj.137.2018.11.08.09.52.48; Thu, 08 Nov 2018 09:52:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=mTZF4eza; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727794AbeKID3V (ORCPT + 32 others); Thu, 8 Nov 2018 22:29:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:40984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbeKID3U (ORCPT ); Thu, 8 Nov 2018 22:29:20 -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 6B41C20684; Thu, 8 Nov 2018 17:52:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541699564; bh=fPNvlz7Ncq+Qod9N/oJXQ/I/H9k+4O/yx5l+GYKhIvQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mTZF4ezaag4d3pEsiLDaHRz1GU/f99DAMFDI0sGZ/Cs7kjASTl6ICf3LLtmOmZLDS feRLaQSu9Meza3c4s5SMcpz7DSZn5uW/l71EZvjhzmaaEBwDMLQzhXu85lDpS6L4US pzsT7611YpLVXH+i1Ln4oO7q27zPelcKp5Dcpoj0= 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 v3 14/18] arm64: dts: qcom: qcs404: Add remoteproc nodes Date: Thu, 8 Nov 2018 23:20:45 +0530 Message-Id: <20181108175049.7090-15-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181108175049.7090-1-vkoul@kernel.org> References: <20181108175049.7090-1-vkoul@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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..d4182756980b 100644 --- a/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi @@ -21,6 +21,18 @@ }; }; +&rproc_adsp { + status = "ok"; +}; + +&rproc_cdsp { + status = "ok"; +}; + +&rproc_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..a9d6d3dd5945 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -80,6 +80,99 @@ method = "smc"; }; + rproc_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"; + }; + }; + + rproc_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"; + }; + }; + + rproc_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>;