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

title: Qualcomm Technologies, Inc. Camera Clock & Reset Controller

maintainers:
  - Kalpak Kawadkar <quic_kkawadka@quicinc.com>

description: |
  Camera clock control module which supports the clocks, resets and
  power domains on Parrot.

  See also:
  - dt-bindings/clock/qcom,camcc-parrot.h

properties:
  compatible:
    const: qcom,parrot-camcc

  clocks:
    items:
      - description: Board XO source
      - description: Camera AHB clock from GCC

  clock-names:
    items:
      - const: bi_tcxo
      - const: iface

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

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

required:
  - compatible
  - clocks
  - clock-names

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

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/qcom,rpmh.h>
    camcc: clock-controller@ade0000 {
         compatible = "qcom,parrot-camcc", "syscon";
         reg = <0xade0000 0x20000>;
         reg-name = "cc_base";
         vdd_cx-supply = <&VDD_CX_LEVEL>;
         vdd_mxa-supply = <&VDD_MXA_LEVEL>;
         clocks = <&rpmhcc RPMH_CXO_CLK>,
                <&gcc GCC_CAMERA_AHB_CLK>;
                clock-names = "bi_tcxo", "iface";
                #clock-cells = <1>;
                #reset-cells = <1>;
       };
...
