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

title: Freescale i.MX PRE (Prefetch Resolve Engine)

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

properties:
  compatible:
    const: fsl,imx6qp-pre

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 1

  clock-names:
    items:
      - const: axi
  fsl,iram:
    $ref: /schemas/types.yaml#/definitions/phandle
    description:
      phandle pointing to the mmio-sram device node, that should be
      used for the PRE SRAM double buffer.

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

additionalProperties: false

examples:
  - |
    #include <dt-bindings/clock/imx6qdl-clock.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>

    pre@21c8000 {
        compatible = "fsl,imx6qp-pre";
        reg = <0x021c8000 0x1000>;
        interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
        clocks = <&clks IMX6QDL_CLK_PRE0>;
        clock-names = "axi";
        fsl,iram = <&ocram2>;
    };
