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

title: Freescale i.MX8qxp Display Controller Signature Unit

description: |
  In order to control the correctness of display output, signature values can
  be computed for each frame and compared against reference values. In case of
  a mismatch (signature violation) a HW event can be triggered, for example a
  SW interrupt.

  This unit supports signature computation, reference check, evaluation windows,
  alpha masking and panic modes.

maintainers:
  - Liu Ying <victor.liu@nxp.com>

properties:
  compatible:
    const: fsl,imx8qxp-dc-signature

  reg:
    maxItems: 1

  interrupts:
    maxItems: 3

  interrupt-names:
    items:
      - const: shdload
      - const: valid
      - const: error

required:
  - compatible
  - reg
  - interrupts
  - interrupt-names

additionalProperties: false

examples:
  - |
    signature@5618d000 {
        compatible = "fsl,imx8qxp-dc-signature";
        reg = <0x5618d000 0x140>;
        interrupt-parent = <&dc0_intc>;
        interrupts = <22>, <23>, <24>;
        interrupt-names = "shdload", "valid", "error";
    };
