From ae310f7035b3ce83d33c3c1d79c4aee5fd2a850a Mon Sep 17 00:00:00 2001 From: Satya Durga Srinivasu Prabhala Date: Wed, 21 Jun 2023 18:11:11 -0700 Subject: [PATCH 1/4] ARM: dts: msm: Add tz-log node for Sun Add tz-log node for Sun which gets updated by Resource Manager. With out this node, device tree overlay fails. Change-Id: I9d54da4cf32272176e12d3cd49bc21f20e688f30 Signed-off-by: Satya Durga Srinivasu Prabhala --- qcom/sun.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index 0bb15796..d7a1824b 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -284,6 +284,9 @@ clock-frequency = <19200000>; }; + qcom_tzlog: tz-log@0 { + }; + clk_virt: interconnect@0 { compatible = "qcom,sun-clk_virt"; qcom,stub; From 8f71e16f99230faf6095a604d95c3e85ac4d985d Mon Sep 17 00:00:00 2001 From: Melody Olvera Date: Fri, 30 Jun 2023 14:47:51 -0700 Subject: [PATCH 2/4] ARM: dts: msm: Adjust RUMI arch timer and memtimer frequencies on sun Adjust arch timer and memtimer frequencies on the sun RUMI to stop IRQ storms during boot. Change-Id: Ic34a125763701ec115db82cd5ed5259fb3bd9a28 Signed-off-by: Melody Olvera --- qcom/sun-rumi.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/sun-rumi.dtsi b/qcom/sun-rumi.dtsi index 485d3902..3d978721 100644 --- a/qcom/sun-rumi.dtsi +++ b/qcom/sun-rumi.dtsi @@ -11,11 +11,11 @@ }; &arch_timer { - clock-frequency = <192000>; + clock-frequency = <500000>; }; &memtimer { - clock-frequency = <192000>; + clock-frequency = <500000>; }; &qupv3_se7_2uart { From 8aea2d5fc73dc0a798438a925517439421c71bc1 Mon Sep 17 00:00:00 2001 From: Melody Olvera Date: Fri, 23 Jun 2023 13:24:19 -0700 Subject: [PATCH 3/4] ARM: dts: msm: Change sun rumi to compile as overlay Change the sun rumi dt file to compile as an overlay. Change-Id: I56dcc5349eac12c660981da0fc75f0173b27197a Signed-off-by: Melody Olvera --- qcom/sun-rumi-overlay.dts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcom/sun-rumi-overlay.dts b/qcom/sun-rumi-overlay.dts index 921586a1..29bff8ba 100644 --- a/qcom/sun-rumi-overlay.dts +++ b/qcom/sun-rumi-overlay.dts @@ -4,9 +4,8 @@ */ /dts-v1/; -/memreserve/ 0x90000000 0x100000; +/plugin/; -#include "sun.dtsi" #include "sun-rumi.dtsi" / { From 9f2ed04bf38e8758bf6ff4b2140053d25d90067f Mon Sep 17 00:00:00 2001 From: Melody Olvera Date: Thu, 29 Jun 2023 15:52:38 -0700 Subject: [PATCH 4/4] ARM: dts: msm: Add psci node and change enable method on sun Add the psci node and change the cpu enable method to psci on the sun SoC. Change-Id: I86f747a87169172ac215885c6de0e19be921f99f Signed-off-by: Melody Olvera --- qcom/sun.dtsi | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index d7a1824b..d3d25b4c 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -45,8 +45,7 @@ device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x0>; - enable-method = "spin-table"; - cpu-release-addr = <0x0 0x90000000>; + enable-method = "psci"; next-level-cache = <&L2_0>; L2_0: l2-cache { compatible = "arm,arch-cache"; @@ -58,8 +57,7 @@ device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x100>; - enable-method = "spin-table"; - cpu-release-addr = <0x0 0x90000000>; + enable-method = "psci"; next-level-cache = <&L2_0>; }; @@ -67,8 +65,7 @@ device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x200>; - enable-method = "spin-table"; - cpu-release-addr = <0x0 0x90000000>; + enable-method = "psci"; next-level-cache = <&L2_0>; }; @@ -76,8 +73,7 @@ device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x300>; - enable-method = "spin-table"; - cpu-release-addr = <0x0 0x90000000>; + enable-method = "psci"; next-level-cache = <&L2_0>; }; @@ -85,8 +81,7 @@ device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x400>; - enable-method = "spin-table"; - cpu-release-addr = <0x0 0x90000000>; + enable-method = "psci"; next-level-cache = <&L2_0>; }; @@ -94,8 +89,7 @@ device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x500>; - enable-method = "spin-table"; - cpu-release-addr = <0x0 0x90000000>; + enable-method = "psci"; next-level-cache = <&L2_0>; }; @@ -103,8 +97,7 @@ device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x10000>; - enable-method = "spin-table"; - cpu-release-addr = <0x0 0x90000000>; + enable-method = "psci"; next-level-cache = <&L2_6>; L2_6: l2-cache { compatible = "arm,arch-cache"; @@ -116,8 +109,7 @@ device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x10100>; - enable-method = "spin-table"; - cpu-release-addr = <0x0 0x90000000>; + enable-method = "psci"; next-level-cache = <&L2_6>; }; @@ -737,6 +729,11 @@ compatible = "qcom,stub-regulator"; regulator-name = "video_cc_mvs0c_gdsc"; }; + + psci { + compatible = "arm,psci-1.0"; + method = "smc"; + }; }; &reserved_memory {