diff --git a/bindings/arm/msm/sys-pm-violators.yaml b/bindings/arm/msm/sys-pm-violators.yaml new file mode 100644 index 00000000..537d4446 --- /dev/null +++ b/bindings/arm/msm/sys-pm-violators.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/msm/sys-pm-violators.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. (QTI) System PM Violoators bindings + +description: | + System PM Violoators is a virtual device sends a QMP message to AOP to start + recording subsystems that are preventing system low power modes - AOSS sleep, + CX PC, DDR low power from happening during a test duration. The stats are + saved in MSGRAM and are read and displayed from Linux in debugfs. + +properties: + compatible: + enum: + - qcom,sys-pm-lahaina + - qcom,sys-pm-waipio + - qcom,sys-pm-kalama + - qcom,sys-pm-pineapple + - qcom,sys-pm-monaco-auto + - qcom,sys-pm-sun + + reg: + maxItems: 1 + description: + The address on the AOP Message RAM from where the stats are read. + + qcom,qmp: + description: + Handle to the QMP mailbox. + +required: + - compatible + - reg + - qcom,qmp + +examples: + - | + sys-pm-vx@c320000 { + compatible = "qcom,sys-pm-violators", "qcom,sys-pm-lahaina"; + reg = <0xc320000 0x0400>; + qcom,qmp = <&aoss_qmp>; + }; diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index 3ed69a52..3e221a1d 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -605,6 +605,12 @@ hyplog-size-offset = <0x414>; }; + sys-pm-vx@c320000 { + compatible = "qcom,sys-pm-violators", "qcom,sys-pm-sun"; + reg = <0xc320000 0x400>; + qcom,qmp = <&aoss_qmp>; + }; + tlmm: pinctrl@f000000 { compatible = "qcom,sun-tlmm"; reg = <0xf000000 0x202000>;