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

title: Freescale i.MX8qxp Display Controller Color Matrix

description:
  The unit supports linear color transformation, alpha pre-multiply and
  alpha masking.

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

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

  reg:
    minItems: 1
    maxItems: 2

  reg-names:
    oneOf:
      - const: cfg      # matrix in display engine
      - items:          # matrix in pixel engine
          - const: pec
          - const: cfg

required:
  - compatible
  - reg
  - reg-names

additionalProperties: false

examples:
  - |
    matrix@5618bc00 {
        compatible = "fsl,imx8qxp-dc-matrix";
        reg = <0x5618bc00 0x3c>;
        reg-names = "cfg";
    };
