Skip to content

Commit c783394

Browse files
anderssonAndy Gross
authored andcommitted
arm64: dts: qcom: msm8998: Add smem related nodes
Add reserve-memory nodes, tcsr-mutex nodes and the smem node. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Andy Gross <andy.gross@linaro.org>
1 parent b122723 commit c783394

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

arch/arm64/boot/dts/qcom/msm8998.dtsi

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,38 @@
2020
reg = <0 0 0 0>;
2121
};
2222

23+
reserved-memory {
24+
#address-cells = <2>;
25+
#size-cells = <2>;
26+
ranges;
27+
28+
memory@85800000 {
29+
reg = <0x0 0x85800000 0x0 0x800000>;
30+
no-map;
31+
};
32+
33+
smem_mem: smem-mem@86000000 {
34+
reg = <0x0 0x86000000 0x0 0x200000>;
35+
no-map;
36+
};
37+
38+
memory@86200000 {
39+
reg = <0x0 0x86200000 0x0 0x2600000>;
40+
no-map;
41+
};
42+
43+
rmtfs {
44+
compatible = "qcom,rmtfs-mem";
45+
46+
size = <0x0 0x200000>;
47+
alloc-ranges = <0x0 0xa0000000 0x0 0x2000000>;
48+
no-map;
49+
50+
qcom,client-id = <1>;
51+
qcom,vmid = <15>;
52+
};
53+
};
54+
2355
clocks {
2456
xo_board {
2557
compatible = "fixed-clock";
@@ -205,6 +237,12 @@
205237
};
206238
};
207239

240+
tcsr_mutex: hwlock {
241+
compatible = "qcom,tcsr-mutex";
242+
syscon = <&tcsr_mutex_regs 0 0x1000>;
243+
#hwlock-cells = <1>;
244+
};
245+
208246
psci {
209247
compatible = "arm,psci-1.0";
210248
method = "smc";
@@ -223,6 +261,12 @@
223261
};
224262
};
225263

264+
smem {
265+
compatible = "qcom,smem";
266+
memory-region = <&smem_mem>;
267+
hwlocks = <&tcsr_mutex 3>;
268+
};
269+
226270
thermal-zones {
227271
cpu-thermal0 {
228272
polling-delay-passive = <250>;
@@ -472,6 +516,11 @@
472516
#thermal-sensor-cells = <1>;
473517
};
474518

519+
tcsr_mutex_regs: syscon@1f40000 {
520+
compatible = "syscon";
521+
reg = <0x1f40000 0x20000>;
522+
};
523+
475524
apcs_glb: mailbox@9820000 {
476525
compatible = "qcom,msm8998-apcs-hmss-global";
477526
reg = <0x17911000 0x1000>;

0 commit comments

Comments
 (0)