# SPDX-License-Identifier: GPL-2.0-only
%YAML 1.2
---
$id: http://devicetree.org/schemas/clock/qcom,msm8996-apcc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm clock controller for MSM8996 CPUs

maintainers:
  - Loic Poulain <loic.poulain@linaro.org>

description: |
  Qualcomm CPU clock controller for MSM8996 CPUs, clock 0 is for Power cluster
  and clock 1 is for Perf cluster.

properties:
  compatible:
    enum:
      - qcom,msm8996-apcc

  reg:
    maxItems: 1

  '#clock-cells':
    const: 1

  clocks:
    items:
      - description: Primary PLL clock for power cluster (little)
      - description: Primary PLL clock for perf cluster (big)
      - description: Alternate PLL clock for power cluster (little)
      - description: Alternate PLL clock for perf cluster (big)

  clock-names:
    items:
      - const: pwrcl_pll
      - const: perfcl_pll
      - const: pwrcl_alt_pll
      - const: perfcl_alt_pll

required:
  - compatible
  - reg
  - '#clock-cells'

additionalProperties: false

examples:
  - |
    kryocc: clock-controller@6400000 {
        compatible = "qcom,msm8996-apcc";
        reg = <0x6400000 0x90000>;
        #clock-cells = <1>;
    };
