From e121e5078dbc0c1c1508ad0d50803a55f5996e1b Mon Sep 17 00:00:00 2001 From: Shreyas K K Date: Mon, 14 Feb 2022 23:57:31 +0530 Subject: [PATCH 1/2] ARM: dts: msm: Add device node for boot_stats on SM8150 Add IMEM device tree node on SM8150 target. Add a place holder to capture the boot stats of the various bootloader events. Change-Id: I3fac756393c9d5152a52b3f42bcf35163584d7e9 --- qcom/sm8150.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/qcom/sm8150.dtsi b/qcom/sm8150.dtsi index 2ac66ba2..0cf4eb39 100644 --- a/qcom/sm8150.dtsi +++ b/qcom/sm8150.dtsi @@ -511,6 +511,19 @@ }; }; + qcom,msm-imem@146bf000 { + compatible = "qcom,msm-imem"; + reg = <0x146bf000 0x1000>; + ranges = <0x0 0x146bf000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + boot_stats@6b0 { + compatible = "qcom,msm-imem-boot_stats"; + reg = <0x6b0 0x20>; + }; + }; + qcom,msm-rtb { compatible = "qcom,msm-rtb"; qcom,rtb-size = <0x100000>; From c713f3de5d35089b91efc93341befe737aa98a81 Mon Sep 17 00:00:00 2001 From: Shreyas K K Date: Mon, 14 Feb 2022 23:57:46 +0530 Subject: [PATCH 2/2] ARM: dts: msm: Add mpm2 sleep counter for SM8150 Add mpm2 sleep counter to support boot time marker on SM8150 target. Change-Id: I42949d9baadd2211ed2dbc08f22e2eb07e727675 --- qcom/sm8150.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/sm8150.dtsi b/qcom/sm8150.dtsi index 0cf4eb39..e2175046 100644 --- a/qcom/sm8150.dtsi +++ b/qcom/sm8150.dtsi @@ -511,6 +511,12 @@ }; }; + qcom,mpm2-sleep-counter@c221000 { + compatible = "qcom,mpm2-sleep-counter"; + reg = <0xc221000 0x1000>; + clock-frequency = <32768>; + }; + qcom,msm-imem@146bf000 { compatible = "qcom,msm-imem"; reg = <0x146bf000 0x1000>;