From patchwork Wed Apr 25 14:46:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sibi Sankar X-Patchwork-Id: 10363385 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4E0306038F for ; Wed, 25 Apr 2018 14:47:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DC6728518 for ; Wed, 25 Apr 2018 14:47:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3274028AF1; Wed, 25 Apr 2018 14:47:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEEBD28518 for ; Wed, 25 Apr 2018 14:47:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754617AbeDYOq5 (ORCPT ); Wed, 25 Apr 2018 10:46:57 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:36594 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753632AbeDYOqp (ORCPT ); Wed, 25 Apr 2018 10:46:45 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4E20D60881; Wed, 25 Apr 2018 14:46:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524667604; bh=PgQRb1lEiUXIkWp3IbZz62VPIGZ4aHhdOQW5a94hx18=; h=From:To:Cc:Subject:Date:From; b=QEvamPZ3qJ09Ci3AKKnlmQu6pYswOEnXRt677Us/l703GiEQtJ/CR1OZlcwIXox2p GekPFrR/v3eqyfZpgOJfbP3PhSyXbr8JhUkaiETJ2eEouEc4JhVYIc/NJQ2Nwinq+3 +c1l69KQsXVo4IIZG343I42YLwclvCcDIWWyR/hg= Received: from blr-ubuntu-87.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sibis@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7806D60227; Wed, 25 Apr 2018 14:46:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524667603; bh=PgQRb1lEiUXIkWp3IbZz62VPIGZ4aHhdOQW5a94hx18=; h=From:To:Cc:Subject:Date:From; b=GbRP2pUnvirRC7DOS4GkoAPPVwOsRrXMcvtZbOTTeSHCJ/EDEOwdmNvJ6OpyOUKrw DjhUrKTDR4MsA7r9iMmYWol2rmTTfarmoN4mDOcRKlk7EI/kC0lb/9WdbEKrHtv87f XuK2KJXjdH8ZYRv3Y2ttZ67iKEAFejmDeUrANUPc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7806D60227 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sibis@codeaurora.org From: Sibi Sankar To: andy.gross@linaro.org, david.brown@linaro.org, robh+dt@kernel.org, bjorn.andersson@linaro.org Cc: mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-soc@vger.kernel.org, Sibi Sankar Subject: [PATCH] arm64: dts: qcom: Add SDM845 SMEM nodes Date: Wed, 25 Apr 2018 20:16:31 +0530 Message-Id: <20180425144631.19731-1-sibis@codeaurora.org> X-Mailer: git-send-email 2.17.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add all the necessary dt nodes to support SMEM driver on SDM845. It also adds the required memory carveouts so that the kernel does not access memory that is in use. Signed-off-by: Sibi Sankar --- This patch depends on: https://patchwork.kernel.org/patch/10276419/ https://patchwork.kernel.org/patch/10363361/ arch/arm64/boot/dts/qcom/sdm845.dtsi | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 9be763da0664..bea985045759 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -21,6 +21,27 @@ reg = <0 0x80000000 0 0>; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + memory@85fc0000 { + reg = <0 0x85fc0000 0 0x40000>; + no-map; + }; + + smem_mem: smem-mem@86000000 { + reg = <0x0 0x86000000 0x0 0x200000>; + no-map; + }; + + memory@86000000 { + reg = <0 0x86200000 0 0x2d00000>; + no-map; + }; + }; + cpus { #address-cells = <2>; #size-cells = <0>; @@ -147,6 +168,18 @@ }; }; + tcsr_mutex: hwlock { + compatible = "qcom,tcsr-mutex"; + syscon = <&tcsr_mutex_regs 0 0x1000>; + #hwlock-cells = <1>; + }; + + smem { + compatible = "qcom,smem"; + memory-region = <&smem_mem>; + hwlocks = <&tcsr_mutex 3>; + }; + psci { compatible = "arm,psci-1.0"; method = "smc"; @@ -339,6 +372,11 @@ }; }; + tcsr_mutex_regs: syscon@1f40000 { + compatible = "syscon"; + reg = <0x1f40000 0x40000>; + }; + apss_shared: mailbox@17990000 { compatible = "qcom,sdm845-apss-shared"; reg = <0x17990000 0x1000>;