From patchwork Thu Nov 8 18:39:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 150572 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1184322ljp; Thu, 8 Nov 2018 10:41:09 -0800 (PST) X-Google-Smtp-Source: AJdET5eANCcPZbTxkoE5PvsvoT36nPriScPSASZgucH6hOke4+YZ2Nd+C8I6XJnCfcxDQJhmHj17 X-Received: by 2002:a17:902:144:: with SMTP id 62-v6mr5482639plb.142.1541702469008; Thu, 08 Nov 2018 10:41:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541702469; cv=none; d=google.com; s=arc-20160816; b=hhQA/c5rH+6CsO6EkVLP+mxKaybubxhnDGfYfw3VLjJKZeNMWXFeeEHcwiaUeZ/Q+W a+Ku3YFJbE82xZtjFAW777ElCsyiXsDxcKp/AlmAGEp7PpkdBcX4hDy9L1Fl/2QTpnnZ XkyR2IUG4kRP/6exb/cbgaGGxfkrSMWXhPPZxkc60YqpekWRV0Ry5xTCp1KTL67y2Ehz XwdxgnbYl/ACkZvJ5tG16iclnFNdDdOPSLt0sjHyXdMm7fgpgYDhnSPHXNc4EWiKeaJy jSV7maF8PnQR4wcfNTMhsII3o7AyNvDp0YLN52xrLoBPQuZaAtn0r7Zx4L+1r27UZ+mH 5ZWg== 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=4PqnnSli9xjBlAzdmxyR3VSlqtVN32TYWlzWjrR6xB0=; b=u2uxRSSorL2bup7vnd7Ma2Gix/Va/GwIISk/dporpkqmgmiwPSZiKK/1vak+4rmjSp sISZCCDVsAPfc2DGxktu+P0uEa8/YW9/jcODnArqc7gMeXfk3zJMcV2/AV8DCzwvnRbI ouhJ82AUtGC5uV8r3LId/LPM9A3Cs7IXP7EZ7kYHOnzFyu0EOmJoQpwyqnOcKQ0hJoF1 TgcyDRRIANJYRTZQ9zwhhuRFvxn9lMRe8RX6dvMGhB+n/W8AC83Of0Xiw79s6DGVWUUn /vFkFBIGX9ewrkpQKlzFTLQCpVo/iBxPRPwYt/o0y1tHuTponb07oC+zt2M+A3p0NnMp bN8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yaNWa9Ya; 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 u64si4429420pgd.262.2018.11.08.10.41.08; Thu, 08 Nov 2018 10:41:08 -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=yaNWa9Ya; 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 S1727702AbeKIERy (ORCPT + 14 others); Thu, 8 Nov 2018 23:17:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:59754 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727691AbeKIERy (ORCPT ); Thu, 8 Nov 2018 23:17:54 -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 E07C520857; Thu, 8 Nov 2018 18:41:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541702466; bh=rBdiDcXhGABoXowC2nl0Oxd/IOB5n6ZwwrLs1n2op7o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yaNWa9YaQpdQDDDlnirL2OnQjh9RJKgZoAzh+Hmc8vErS74omf+eRB5aG1BALssUd 6m0cLJJI3LrgCRt1q53OgOLHYQLG6/Gs/RSqswwOnQN6kpm0ak6Fi9AtMczegHXHrl azuptdPiBrxIf6XHx7p9wg7SEmZOEop8tQsvroQQ= 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 03/18] arm64: dts: qcom: qcs404: Add reserved-memory regions Date: Fri, 9 Nov 2018 00:09:54 +0530 Message-Id: <20181108184009.18430-4-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 reserved memory regions in QCS404 Signed-off-by: Bjorn Andersson Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) -- 2.14.4 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index b77d1198ba79..58aa1f989089 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -73,6 +73,47 @@ method = "smc"; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + memory@85600000 { + reg = <0 0x85600000 0 0x90000>; + no-map; + }; + + smem_region: memory@85f00000 { + reg = <0 0x85f00000 0 0x200000>; + no-map; + }; + + memory@86100000 { + reg = <0 0x86100000 0 0x300000>; + no-map; + }; + + wlan_fw_mem: memory@86400000 { + reg = <0 0x86400000 0 0x1c00000>; + no-map; + }; + + adsp_fw_mem: memory@88000000 { + reg = <0 0x88000000 0 0x1a00000>; + no-map; + }; + + cdsp_fw_mem: memory@89a00000 { + reg = <0 0x89a00000 0 0x600000>; + no-map; + }; + + wlan_msa_mem: memory@8a000000 { + reg = <0 0x8a000000 0 0x100000>; + no-map; + }; + }; + soc: soc@0 { #address-cells = <1>; #size-cells = <1>; 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>;