[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180425144631.19731-1-sibis@codeaurora.org>
Date: Wed, 25 Apr 2018 20:16:31 +0530
From: Sibi Sankar <sibis@...eaurora.org>
To: andy.gross@...aro.org, david.brown@...aro.org, robh+dt@...nel.org,
bjorn.andersson@...aro.org
Cc: mark.rutland@....com, catalin.marinas@....com, will.deacon@....com,
linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-soc@...r.kernel.org,
Sibi Sankar <sibis@...eaurora.org>
Subject: [PATCH] arm64: dts: qcom: Add SDM845 SMEM nodes
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 <sibis@...eaurora.org>
---
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@...c0000 {
+ reg = <0 0x85fc0000 0 0x40000>;
+ no-map;
+ };
+
+ smem_mem: smem-mem@...00000 {
+ reg = <0x0 0x86000000 0x0 0x200000>;
+ no-map;
+ };
+
+ memory@...00000 {
+ 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@...0000 {
+ compatible = "syscon";
+ reg = <0x1f40000 0x40000>;
+ };
+
apss_shared: mailbox@...90000 {
compatible = "qcom,sdm845-apss-shared";
reg = <0x17990000 0x1000>;
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
Powered by blists - more mailing lists