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

title: Freescale i.MX8qxp Display Controller Dither Unit

description: |
  The unit can increase the physical color resolution of a display from 5, 6, 7
  or 8 bits per RGB channel to a virtual resolution of 10 bits. The physical
  resolution can be set individually for each channel.

  The resolution is increased by mixing the two physical colors that are nearest
  to the virtual color code in a variable ratio either by time (temporal
  dithering) or by position (spatial dithering).

  An optimized algorithm for temporal dithering minimizes noise artifacts on the
  output image.

  The dither operation can be individually enabled or disabled for each pixel
  using the alpha input bit.

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

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

  reg:
    maxItems: 1

required:
  - compatible
  - reg

additionalProperties: false

examples:
  - |
    dither@5618c400 {
        compatible = "fsl,imx8qxp-dc-dither";
        reg = <0x5618c400 0x14>;
    };
