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

title: The document describes the device tree binding for qcom dcc.

maintainers:
  - Yuanfang Zhang <quic_yuanfang@quicinc.com>

description:
    DCC driver provides interface to configure DCC block and read back captured
    data from DCC's internal SRAM.

properties:
  compatible:
    items:
      - const: qcom,dcc-v2

  reg:
    maxItems: 2
    description:
      physical base address and length of the register set(s), SRAM of the component.

  reg-names:
      minItems: 2
      items:
        - const: dcc-base
        - const: dcc-ram-base

required:
  - compatible
  - reg
  - reg-manes

additionalProperties: false

examples:
  - |
    dcc@4b3000 {
        compatible = "qcom,dcc-v2";
        reg = <0x4b3000 0x1000>,
              <0x4b4000 0x2000>;
        reg-names = "dcc-base", "dcc-ram-base";
    };
