arm64: dts: qcom: msm8976: Split lpass region
authorAdam Skladowski <a39.skl@gmail.com>
Sat, 12 Aug 2023 11:24:49 +0000 (13:24 +0200)
committerBjorn Andersson <andersson@kernel.org>
Wed, 20 Sep 2023 17:21:50 +0000 (10:21 -0700)
MSM8976 downstream dts define reloc region which is used by pil-tz
to load both wcnss and lpass, on mainline however we might not be
able to do it and we need separate regions(also validating dts might get
problematic if we had to put memory-region(rproc node) per device).
Luckily it seems size and entry points in firmware headers appears
to be static across multiple devices including Sony Loire platform
and Xiaomi Redmi Note 3 Pro this should let us fit in first ~17MB
Split lpass region(reloc on downstream) into two separate regions.

Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
Link: https://lore.kernel.org/r/20230812112534.8610-7-a39.skl@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/msm8976.dtsi

index f9f5afbcc52bba29dce27ccc3c3427d72605bfe4..f21120dc7811160b2695c27d2582c80d14fe5c1e 100644 (file)
                };
 
                lpass_mem: lpass@8c200000 {
-                       reg = <0x0 0x8c200000 0x0 0x1800000>;
+                       reg = <0x0 0x8c200000 0x0 0x1000000>;
+                       no-map;
+               };
+
+               wcnss_fw_mem: wcnss@8d200000 {
+                       reg = <0x0 0x8d200000 0x0 0x800000>;
                        no-map;
                };