From 64484f70295b5357c225e42e9df7699fbbcc77f8 Mon Sep 17 00:00:00 2001 From: Prakruthi Deepak Heragu Date: Mon, 20 Apr 2020 13:07:11 -0700 Subject: [PATCH 1/2] dt-bindings: Add dt-binding for mpm counter Add dt-bindings for mpm counter. Change-Id: If8706a3ccc17f1d3d0e79c78bab43f8e5bd0b3b8 --- bindings/arm/msm/mpm_counter.yaml | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 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 000000000000..41f865991a7d --- /dev/null +++ b/bindings/arm/msm/mpm_counter.yaml @@ -0,0 +1,37 @@ +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bindings/arm/msm/mpm_counter.yaml# +$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 3cd0ab089710b2ddd8039bc85d44447e433e467b Mon Sep 17 00:00:00 2001 From: Prakruthi Deepak Heragu Date: Fri, 17 Apr 2020 17:36:22 -0700 Subject: [PATCH 2/2] ARM: dts: msm: Add dts node for boot_stats Add dts node for boot_stats for Lahaina. Change-Id: Ib9c33e0d7a491427cd7d750b23dfd9f0ffb683a7 --- qcom/lahaina.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/lahaina.dtsi b/qcom/lahaina.dtsi index b24c4720dd7e..f81c11e7dd68 100644 --- a/qcom/lahaina.dtsi +++ b/qcom/lahaina.dtsi @@ -2778,6 +2778,12 @@ qcom,rtb-size = <0x100000>; }; + qcom,mpm2-sleep-counter@c221000 { + compatible = "qcom,mpm2-sleep-counter"; + reg = <0xc221000 0x1000>; + clock-frequency = <32768>; + }; + jtag_mm0: jtagmm@7040000 { compatible = "qcom,jtagv8-mm"; reg = <0x7040000 0x1000>;