From patchwork Fri Feb 12 11:55:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 381804 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2869708jah; Fri, 12 Feb 2021 04:00:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJz261epnmsQR0ky3XBAp7DnYTU9Y7RG9uF7PwAyz+CQrptKR+uzZtw5gy077XPOIw14i0rr X-Received: by 2002:a17:907:2705:: with SMTP id w5mr2721431ejk.136.1613131212292; Fri, 12 Feb 2021 04:00:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613131212; cv=none; d=google.com; s=arc-20160816; b=jzs3tWM3rGhUVVCdEEUgLlweZxh8k5MP18qS/bSoCiGxAOmwRwbLN+DUcqeeQoDlsG /iZxe4b2a1waYJByk5g31xlevDqOmrmXKwXoV93K2TTVAFTn9cjB7yEuKUh9MK98tnQR 9bwd3ZBWhlshp1g4lGBn59dz1DNfffs0qcPGtUM8qEewrB4CgrAa/X5SfUJwR2i6kxle 6M4329QI2jw2RwHAN15JZJXn1R8tWx9c6tD8oTjFPY9tbV5VzgTGJ2Y0nRlKGjmtm8Iy NOBz5NAU+nVGS1FaHI2j86lQouUq/pcX4v5LqAJTXEmKDgLesFG2vtsvZzInmMxRnNf0 KLkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=t/3DxtZBi3WOZmyNClluvvECQyVfNYYwJkeMD/xJPb8=; b=oBGsJv5lxDF1LTgkbND945SL+T8vMiMou6syFjV4XxBCgUwLo+RxW4B0Hi7WdKOU5g Y+DU9QxzWhMZwSdwdMbaYpD4ikkQWG97nPH9owVJjWkBUZc62qDr93oywgxWUdy/yW+L mOQunckH6ClSP4wsAeh36XKsBUALGzDR8wauf1j+1VhgQTtfFYdJzygwPqvxskyz/hKr Y8+wThSHHEikZF5+OoIYvfCqIIv6lN8uzdAl8BYtoyYECYMe8ReIxsdOcl1D2hJKGQny Oy0MCpBvq/soWebSmlGhNfUXqceCpoAfiwSEafS1eBD3bwbqjTOYHVMcQ6KQMIcGwb8q jEig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HZne2W+j; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id bz22si5927835ejc.658.2021.02.12.04.00.12; Fri, 12 Feb 2021 04:00:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HZne2W+j; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 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 S231254AbhBLL6y (ORCPT + 16 others); Fri, 12 Feb 2021 06:58:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:48064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbhBLL5j (ORCPT ); Fri, 12 Feb 2021 06:57:39 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7D9DE64E8C; Fri, 12 Feb 2021 11:55:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613130950; bh=hbNe8n/nOJZWhdmBB+ff/tqK4Qphz4Ib3NZgc4F601A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HZne2W+jDxQvGFKa4u6ELvd9XvUkxbcg4ptThzNGIrBTTb3zagJoYu4n/y+PWQHxM KfZ/YDKLEXYPLxj1Wg2FmY7GM13OTtN+vCRlSYdj8Ms70cUd9PnN5vvtYxbEY1Np8W xiqFb61yyb28MDQ4tWt7KrLrl0V3pM/BKm4euNNbvN4nac71h5WPeXLniYqzrWDS5i +WjynE+O1r0oaaevQELXpkAJHftcHtoJjPTjMHMRyGHY8RIUYzIWXWS1zfm1iqCQXl /cdjkCGUbqOfEIaTJivdULrm8I/V76h1QwZtbZQ1wGwzbRzTxzubyPzP0q36QTQ90l fTrJvEoL8jEaQ== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , linux-kernel@vger.kernel.org Subject: [PATCH 4/7] arm64: dts: qcom: sm8350: Add SMP2P nodes Date: Fri, 12 Feb 2021 17:25:29 +0530 Message-Id: <20210212115532.1339942-5-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210212115532.1339942-1-vkoul@kernel.org> References: <20210212115532.1339942-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org SMP2P is used for interrupting and being interrupted about remoteproc state changes related to the audio, compute, modem and sensor subsystems. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 96 ++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index faa0d0a716e6..1ea72f30ea5a 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -304,6 +304,102 @@ smem: qcom,smem { hwlocks = <&tcsr_mutex 3>; }; + smp2p-adsp { + compatible = "qcom,smp2p"; + qcom,smem = <443>, <429>; + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_SMP2P + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_SMP2P>; + + qcom,local-pid = <0>; + qcom,remote-pid = <2>; + + smp2p_adsp_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + smp2p_adsp_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + smp2p-cdsp { + compatible = "qcom,smp2p"; + qcom,smem = <94>, <432>; + interrupts-extended = <&ipcc IPCC_CLIENT_CDSP + IPCC_MPROC_SIGNAL_SMP2P + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_CDSP + IPCC_MPROC_SIGNAL_SMP2P>; + + qcom,local-pid = <0>; + qcom,remote-pid = <5>; + + smp2p_cdsp_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + smp2p_cdsp_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + smp2p-modem { + compatible = "qcom,smp2p"; + qcom,smem = <435>, <428>; + interrupts-extended = <&ipcc IPCC_CLIENT_MPSS + IPCC_MPROC_SIGNAL_SMP2P + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_MPSS + IPCC_MPROC_SIGNAL_SMP2P>; + + qcom,local-pid = <0>; + qcom,remote-pid = <1>; + + smp2p_modem_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + smp2p_modem_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + smp2p-slpi { + compatible = "qcom,smp2p"; + qcom,smem = <481>, <430>; + interrupts-extended = <&ipcc IPCC_CLIENT_SLPI + IPCC_MPROC_SIGNAL_SMP2P + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_SLPI + IPCC_MPROC_SIGNAL_SMP2P>; + + qcom,local-pid = <0>; + qcom,remote-pid = <3>; + + smp2p_slpi_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + smp2p_slpi_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + soc: soc@0 { #address-cells = <2>; #size-cells = <2>;