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

title: Freescale i.MX PATA Controller

maintainers:
  - Animesh Agarwal <animeshagarwal28@gmail.com>

properties:
  compatible:
    oneOf:
      - items:
          - enum:
              - fsl,imx31-pata
              - fsl,imx51-pata
          - const: fsl,imx27-pata
      - const: fsl,imx27-pata

  reg:
    maxItems: 1

  interrupts:
    items:
      - description: PATA Controller interrupts

  clocks:
    items:
      - description: PATA Controller clocks

additionalProperties: false

examples:
  - |
    pata: pata@83fe0000 {
        compatible = "fsl,imx51-pata", "fsl,imx27-pata";
        reg = <0x83fe0000 0x4000>;
        interrupts = <70>;
        clocks = <&clks 161>;
    };
