# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/clock/qcom,evacc-sun.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm Technologies, Inc. Eva Clock Controller for SUN

maintainers:
  - Xubin Bai <quic_xubibai@quicinc.com>

description: |
  Eva clock control module on SUN

  See also:
  - dt-bindings/clock/qcom,evacc-sun.h
  - dt-bindings/clock/qcom,evacc-tuna.h

properties:
  compatible:
    enum:
      - qcom,sun-evacc
      - qcom,tuna-evacc
      - qcom,sun-evacc-v2

  clocks:
    items:
      - description: Board XO source
      - description: Sleep clock source

  clock-names:
    items:
      - const: bi_tcxo
      - const: sleep_clk

  vdd_mm-supply:
    description: Phandle pointer to the vdd_mm logic rail supply

  vdd_mxc-supply:
    description: Phandle pointer to the vdd_mxc logic rail supply

required:
  - compatible
  - clocks
  - clock-names

allOf:
  - $ref: "qcom,gcc.yaml#"

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/qcom,rpmh.h>
    evacc: clock-controller@abf0000 {
      compatible = "qcom,sun-evacc", "syscon";
      reg = <0xabf0000 0x10000>;
      reg-name = "cc_base";
      vdd_mm-supply = <&VDD_MM_LEVEL>;
      vdd_mxc-supply = <&VDD_MXC_LEVEL>;
      clocks = <&rpmhcc RPMH_CXO_CLK>,
        <&sleep_clk>;
      clock-names = "bi_tcxo",
        "sleep_clk";
      #clock-cells = <1>;
      #reset-cells = <1>;
    };

...
