From ae40717288b482d4420a2c4c55cd29f79f34e506 Mon Sep 17 00:00:00 2001 From: Gokul krishna Krishnakumar Date: Mon, 16 Aug 2021 08:37:22 -0700 Subject: [PATCH 1/2] dt-bindings: Add dt-binding for mpm counter Add dt-bindings for mpm counter. Change-Id: I6941fab1c3487a63d73b5c741e1cd1ae40e5c09c --- bindings/arm/msm/mpm_counter.yaml | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 bindings/arm/msm/mpm_counter.yaml diff --git a/bindings/arm/msm/mpm_counter.yaml b/bindings/arm/msm/mpm_counter.yaml new file mode 100644 index 00000000..ac1a7954 --- /dev/null +++ b/bindings/arm/msm/mpm_counter.yaml @@ -0,0 +1,36 @@ +%YAML 1.2 +--- +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MSM MPM sleep counter (mpm-v2) + +maintainers: + - Prakruthi Deepak Heragu + +description: | + The MPM provides a timetick that starts when the device is powered up and + is not reset by any of the boot loaders or the HLOS. The MPM timetick counter + driver provides an api to get this value. + +properties: + compatible: + const: qcom,mpm2-sleep-counter + + reg: + description: Specifies the physical address of the timetick count register. + + clock-frequency: + description: the physical counter frequency. + +required: + - compatible + - reg + +example: + - | + qcom,mpm2-sleep-counter@4a3000 { + compatible = "qcom,mpm2-sleep-counter"; + reg = <0x4a3000 0x1000>; + clock-frequency = <32768>; + }; + From 6e18547103f9b7dfd4f5689df4da7be97c5b1087 Mon Sep 17 00:00:00 2001 From: Gokul krishna Krishnakumar Date: Wed, 4 Aug 2021 16:32:45 -0700 Subject: [PATCH 2/2] ARM: dts: msm: Add boot stats node for Kalama Add boot stats node for kalama Soc. Change-Id: I17c8d4dd98dd2c0f9a5e6e52f2e857544b42b17d --- qcom/kalama.dtsi | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/qcom/kalama.dtsi b/qcom/kalama.dtsi index e9ad1dbe..e64f5780 100644 --- a/qcom/kalama.dtsi +++ b/qcom/kalama.dtsi @@ -628,6 +628,54 @@ interrupt-controller; }; + qcom,msm-imem@146aa000 { + compatible = "qcom,msm-imem"; + reg = <0x146aa000 0x1000>; + ranges = <0x0 0x146aa000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + mem_dump_table@10 { + compatible = "qcom,msm-imem-mem_dump_table"; + reg = <0x10 0x8>; + }; + + restart_reason@65c { + compatible = "qcom,msm-imem-restart_reason"; + reg = <0x65c 0x4>; + }; + + dload_type@1c { + compatible = "qcom,msm-imem-dload-type"; + reg = <0x1c 0x4>; + }; + + boot_stats@6b0 { + compatible = "qcom,msm-imem-boot_stats"; + reg = <0x6b0 0x20>; + }; + + kaslr_offset@6d0 { + compatible = "qcom,msm-imem-kaslr_offset"; + reg = <0x6d0 0xc>; + }; + + pil@94c { + compatible = "qcom,pil-reloc-info"; + reg = <0x94c 0xc8>; + }; + + pil@6dc { + compatible = "qcom,msm-imem-pil-disable-timeout"; + reg = <0x6dc 0x4>; + }; + + diag_dload@c8 { + compatible = "qcom,msm-imem-diag-dload"; + reg = <0xc8 0xc8>; + }; + }; + tlmm: pinctrl@f000000 { compatible = "qcom,kalama-pinctrl"; reg = <0x0F000000 0x1000000>; @@ -1236,6 +1284,12 @@ compatible = "syscon"; reg = <0x1fc0000 0x30000>; }; + + qcom,mpm2-sleep-counter@c221000 { + compatible = "qcom,mpm2-sleep-counter"; + reg = <0xc221000 0x1000>; + clock-frequency = <32768>; + }; }; &firmware {