# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/display/imx/fsl,imx6qp-prg.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Freescale i.MX PRG (Prefetch Resolve Gasket)

maintainers:
  - Frank Li <Frank.Li@nxp.com>

properties:
  compatible:
    const: fsl,imx6qp-prg

  reg:
    maxItems: 1

  clocks:
    maxItems: 2

  clock-names:
    items:
      - const: ipg
      - const: axi

  fsl,pres:
    $ref: /schemas/types.yaml#/definitions/phandle-array
    items:
      maxItems: 1
    description:
      phandles to the PRE units attached to this PRG, with the fixed
      PRE as the first entry and the muxable PREs following.

required:
  - compatible
  - reg
  - clocks
  - clock-names

additionalProperties: false

examples:
  - |
    #include <dt-bindings/clock/imx6qdl-clock.h>

    prg@21cc000 {
        compatible = "fsl,imx6qp-prg";
        reg = <0x021cc000 0x1000>;
        clocks = <&clks IMX6QDL_CLK_PRG0_APB>, <&clks IMX6QDL_CLK_PRG0_AXI>;
        clock-names = "ipg", "axi";
        fsl,pres = <&pre1>, <&pre2>, <&pre3>;
    };

