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

title: Hisilicon Hi6220/Hi3660/Hi3670 Clock Controllers

maintainers:
  - Wei Xu <xuwei5@hisilicon.com>

description: >
  The Hi3670 clock controller generates and supplies clock to various
  controllers within the Hi3670 SoC.

  All these identifiers can be found in:
    dt-bindings/clock/hi3660-clock.h.
    dt-bindings/clock/hi3670-clock.h.
    dt-bindings/clock/hi6220-clock.h.

properties:
  compatible:
    items:
      - enum:
          - hisilicon,hi3660-crgctrl
          - hisilicon,hi3660-pctrl
          - hisilicon,hi3660-pmuctrl
          - hisilicon,hi3660-sctrl
          - hisilicon,hi3660-iomcu
          - hisilicon,hi3670-crgctrl
          - hisilicon,hi3670-pctrl
          - hisilicon,hi3670-pmuctrl
          - hisilicon,hi3670-sctrl
          - hisilicon,hi3670-iomcu
          - hisilicon,hi3670-media1-crg
          - hisilicon,hi3670-media2-crg
          - hisilicon,hi6220-acpu-sctrl
      - const: syscon

  reg:
    maxItems: 1

  '#clock-cells':
    const: 1

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

additionalProperties: false