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

title: Marvell MVEBU Core Divider Clock

maintainers:
  - Andrew Lunn <andrew@lunn.ch>
  - Gregory Clement <gregory.clement@bootlin.com>

properties:
  compatible:
    oneOf:
      - enum:
          - marvell,armada-370-corediv-clock
          - marvell,armada-375-corediv-clock
          - marvell,armada-380-corediv-clock
          - marvell,mv98dx3236-corediv-clock
      - items:
          - const: marvell,armada-390-corediv-clock
          - const: marvell,armada-380-corediv-clock

  reg:
    maxItems: 1

  "#clock-cells":
    const: 1

  clocks:
    maxItems: 1

  clock-output-names:
    maxItems: 1

required:
  - compatible
  - reg
  - "#clock-cells"
  - clocks

additionalProperties: false

examples:
  - |
    clock-controller@18740 {
        compatible = "marvell,armada-370-corediv-clock";
        reg = <0x18740 0xc>;
        #clock-cells = <1>;
        clocks = <&pll>;
    };
