[PATCH 2/4] dt-bindings: clock: qcom: Add EVA clock and reset controller for Glymur SoC
From: Taniya Das
Date: Tue May 26 2026 - 01:30:21 EST
Add the device tree bindings for the enhanced video analytics(EVA) clock
controller which is required on Qualcomm Glymur SoC. The controller
provides clocks, resets and power domains for the EVA subsystem.
Signed-off-by: Taniya Das <taniya.das@xxxxxxxxxxxxxxxx>
---
.../bindings/clock/qcom,glymur-evacc.yaml | 76 ++++++++++++++++++++++
include/dt-bindings/clock/qcom,glymur-evacc.h | 38 +++++++++++
2 files changed, 114 insertions(+)
diff --git a/Documentation/devicetree/bindings/clock/qcom,glymur-evacc.yaml b/Documentation/devicetree/bindings/clock/qcom,glymur-evacc.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8315e3ce82ecfefb5413ce1c42843adb0bce50d7
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/qcom,glymur-evacc.yaml
@@ -0,0 +1,76 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/qcom,glymur-evacc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm EVA Clock & Reset Controller on Glymur SoC
+
+maintainers:
+ - Taniya Das <taniya.das@xxxxxxxxxxxxxxxx>
+
+description: |
+ Qualcomm EVA clock control module which supports the clocks, resets and
+ power domains for the EVA instances on Glymur SoC.
+
+ See also:
+ - include/dt-bindings/clock/qcom,glymur-evacc.h
+
+properties:
+ compatible:
+ const: qcom,glymur-evacc
+
+ clocks:
+ items:
+ - description: Interface clock from GCC
+ - description: Board XO source
+ - description: Board XO_A source
+ - description: Sleep clock source
+
+ power-domains:
+ description:
+ Power domains required for the clock controller to operate
+ items:
+ - description: MMCX power domain
+ - description: MXC power domain
+
+ required-opps:
+ description:
+ Required OPP nodes for the MMCX and MXC power domains.
+ items:
+ - description: MMCX performance point
+ - description: MXC performance point
+
+required:
+ - compatible
+ - clocks
+ - power-domains
+ - required-opps
+ - '#power-domain-cells'
+
+allOf:
+ - $ref: qcom,gcc.yaml#
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/qcom,glymur-gcc.h>
+ #include <dt-bindings/clock/qcom,rpmh.h>
+ #include <dt-bindings/power/qcom,rpmhpd.h>
+ clock-controller@ab00000 {
+ compatible = "qcom,glymur-evacc";
+ reg = <0x0ab00000 0x10000>;
+ clocks = <&gcc GCC_EVA_AHB_CLK>,
+ <&rpmhcc RPMH_CXO_CLK>,
+ <&rpmhcc RPMH_CXO_CLK_A>,
+ <&sleep_clk>;
+ power-domains = <&rpmhpd RPMHPD_MMCX>,
+ <&rpmhpd RPMHPD_MXC>;
+ required-opps = <&rpmhpd_opp_low_svs>,
+ <&rpmhpd_opp_low_svs>;
+ #clock-cells = <1>;
+ #reset-cells = <1>;
+ #power-domain-cells = <1>;
+ };
+...
diff --git a/include/dt-bindings/clock/qcom,glymur-evacc.h b/include/dt-bindings/clock/qcom,glymur-evacc.h
new file mode 100644
index 0000000000000000000000000000000000000000..35a7b4550351661bdb1f7bdfbeec625fafdfcef7
--- /dev/null
+++ b/include/dt-bindings/clock/qcom,glymur-evacc.h
@@ -0,0 +1,38 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+
+#ifndef _DT_BINDINGS_CLK_QCOM_EVACC_GLYMUR_H
+#define _DT_BINDINGS_CLK_QCOM_EVACC_GLYMUR_H
+
+/* EVA_CC clocks */
+#define EVA_CC_AHB_CLK 0
+#define EVA_CC_AHB_CLK_SRC 1
+#define EVA_CC_MVS0_CLK 2
+#define EVA_CC_MVS0_CLK_SRC 3
+#define EVA_CC_MVS0_DIV_CLK_SRC 4
+#define EVA_CC_MVS0_FREERUN_CLK 5
+#define EVA_CC_MVS0_SHIFT_CLK 6
+#define EVA_CC_MVS0C_CLK 7
+#define EVA_CC_MVS0C_DIV2_DIV_CLK_SRC 8
+#define EVA_CC_MVS0C_FREERUN_CLK 9
+#define EVA_CC_MVS0C_SHIFT_CLK 10
+#define EVA_CC_PLL0 11
+#define EVA_CC_SLEEP_CLK 12
+#define EVA_CC_SLEEP_CLK_SRC 13
+#define EVA_CC_XO_CLK 14
+#define EVA_CC_XO_CLK_SRC 15
+
+/* EVA_CC power domains */
+#define EVA_CC_MVS0_GDSC 0
+#define EVA_CC_MVS0C_GDSC 1
+
+/* EVA_CC resets */
+#define EVA_CC_INTERFACE_BCR 0
+#define EVA_CC_MVS0_BCR 1
+#define EVA_CC_MVS0C_CLK_ARES 2
+#define EVA_CC_MVS0C_BCR 3
+#define EVA_CC_MVS0C_FREERUN_CLK_ARES 4
+
+#endif /* _DT_BINDINGS_CLK_QCOM_EVACC_GLYMUR_H */
--
2.34.1