Files
android_kernel_samsung_sm87…/bindings/soc/qcom/qcom,pmu.yaml
Amir Vajid 467330472c dt-bindings: Add devicetree bindings for dcvs drivers
Add snapshot of dcvs dt bindings as of qcom-6.1
commit 96af901712d3 ("dt-bindings: soc: qcom: Document
CRMB and CRMC regs").

Change-Id: I305f06bee1895feabec2b85b2c5ed4fa80895f83
Signed-off-by: Amir Vajid <quic_avajid@quicinc.com>
Signed-off-by: Gurbir Arora <quic_gurbaror@quicinc.com>
2023-08-16 12:24:20 -07:00

58 lines
1.9 KiB
YAML

# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/soc/qcom/qcom,pmu.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Qualcomm Technologies, Inc. (QTI) PMU Monitor Driver
maintainers:
- avajid@quicinc.com <quic_avajid@quicinc.com>
- gurbaror@quicinc.com <quic_gurbaror@quicinc.com>
description: |
The Qualcomm Technologies, Inc. PMU Driver provides an interface to request
for per-CPU performance counters that are available on some QTI chipsets.
properties:
compatible:
const: qcom,pmu
qcom,long-counter:
description:
Specify if the pmu counters are long (64 bit) counters.
type: boolean
qcom,pmu-events-tbl:
$ref: /schemas/types.yaml#/definitions/uint32-array
description:
A list of the pmu events to be configured on the cpus. The first column in
the table contains the event id and the second column contains a bit mask
(cpumask) of cpus for which the event should be configured on. The third
column contains the AMU id for events that are present as part of AMU
counters. The list of ids can be found in enum amu_counters
(include/soc/qcom/pmu_lib.h). 0xFF represents an invalid id. The fourth
column represents the index in enum cpucp_ev_idx
(include/linux/scmi_pmu.h), which is a shared enum between hlos and cpucp.
This helps maintain the sequence of events when pmu hardware ids or cached
counts are shared between hlos and cpucp. 0xFF represents an invalid
index, which means this event is not supposed to be shared between hlos
and cpucp.
required:
- compatible
- qcom,pmu-events-tbl
examples:
- |
qcom,pmu {
compatible = "qcom,pmu";
qcom,long-counter;
qcom,pmu-events-tbl =
< 0x0008 0xFF 0x02 0x02 >,
< 0x0011 0xFF 0x01 0x01 >,
< 0x0017 0xFF 0xFF 0x04 >,
< 0x002A 0xFF 0xFF 0xFF >,
< 0x1000 0xFF 0xFF 0xFF >;
};