Skip to content

Commit

Permalink
arm64: dts: qcom: msm8916: Drop standalone smem node
Browse files Browse the repository at this point in the history
SMEM can now be described directly in the reserved-memory.
This is mainly meant for newer SoCs where there is only one SMEM
region. However, even on older SoCs like MSM8916 there is clearly one
main SMEM region (described by "memory-region") that holds the
smem_header and one special extra region used only for data of the
RPM ("qcom,rpm-msg-ram").

The definition in reserved-memory also looks cleaner for older SoCs,
so make use of that in MSM8916 as well.

Signed-off-by: Stephan Gerhold <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
stephan-gh authored and andersson committed Oct 24, 2021
1 parent 179811b commit c86c43c
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions arch/arm64/boot/dts/qcom/msm8916.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@
no-map;
};

smem_mem: smem@86300000 {
smem@86300000 {
compatible = "qcom,smem";
reg = <0x0 0x86300000 0x0 0x100000>;
no-map;

hwlocks = <&tcsr_mutex 3>;
qcom,rpm-msg-ram = <&rpm_msg_ram>;
};

hypervisor@86400000 {
Expand Down Expand Up @@ -331,15 +335,6 @@
};
};

smem {
compatible = "qcom,smem";

memory-region = <&smem_mem>;
qcom,rpm-msg-ram = <&rpm_msg_ram>;

hwlocks = <&tcsr_mutex 3>;
};

smp2p-hexagon {
compatible = "qcom,smp2p";
qcom,smem = <435>, <428>;
Expand Down

0 comments on commit c86c43c

Please sign in to comment.