From 4219d2612070ac24ba0ab073f6bb124f0c3aa966 Mon Sep 17 00:00:00 2001 From: Mukesh Ojha Date: Tue, 28 Nov 2023 00:28:44 +0530 Subject: [PATCH] ARM: dts: msm: Add devicetree bindings for bootstat driver Add the device tree binding for mpm sleep counter so that it device nodes can be added for respective SoC where it is supported. Change-Id: Ic503641c25a4be7121cbf00ccffe103e641cd2f8 Signed-off-by: Mukesh Ojha --- bindings/arm/msm/mpm_counter.yaml | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 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..75e74464 --- /dev/null +++ b/bindings/arm/msm/mpm_counter.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/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 + +additionalProperties: false + +examples: + - | + qcom,mpm2-sleep-counter@4a3000 { + compatible = "qcom,mpm2-sleep-counter"; + reg = <0x4a3000 0x1000>; + clock-frequency = <32768>; + }; +