1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*833e5d42SEmmanuel Vadot%YAML 1.2 3*833e5d42SEmmanuel Vadot--- 4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/display/imx/fsl,imx8qxp-dc-dither.yaml# 5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*833e5d42SEmmanuel Vadot 7*833e5d42SEmmanuel Vadottitle: Freescale i.MX8qxp Display Controller Dither Unit 8*833e5d42SEmmanuel Vadot 9*833e5d42SEmmanuel Vadotdescription: | 10*833e5d42SEmmanuel Vadot The unit can increase the physical color resolution of a display from 5, 6, 7 11*833e5d42SEmmanuel Vadot or 8 bits per RGB channel to a virtual resolution of 10 bits. The physical 12*833e5d42SEmmanuel Vadot resolution can be set individually for each channel. 13*833e5d42SEmmanuel Vadot 14*833e5d42SEmmanuel Vadot The resolution is increased by mixing the two physical colors that are nearest 15*833e5d42SEmmanuel Vadot to the virtual color code in a variable ratio either by time (temporal 16*833e5d42SEmmanuel Vadot dithering) or by position (spatial dithering). 17*833e5d42SEmmanuel Vadot 18*833e5d42SEmmanuel Vadot An optimized algorithm for temporal dithering minimizes noise artifacts on the 19*833e5d42SEmmanuel Vadot output image. 20*833e5d42SEmmanuel Vadot 21*833e5d42SEmmanuel Vadot The dither operation can be individually enabled or disabled for each pixel 22*833e5d42SEmmanuel Vadot using the alpha input bit. 23*833e5d42SEmmanuel Vadot 24*833e5d42SEmmanuel Vadotmaintainers: 25*833e5d42SEmmanuel Vadot - Liu Ying <victor.liu@nxp.com> 26*833e5d42SEmmanuel Vadot 27*833e5d42SEmmanuel Vadotproperties: 28*833e5d42SEmmanuel Vadot compatible: 29*833e5d42SEmmanuel Vadot const: fsl,imx8qxp-dc-dither 30*833e5d42SEmmanuel Vadot 31*833e5d42SEmmanuel Vadot reg: 32*833e5d42SEmmanuel Vadot maxItems: 1 33*833e5d42SEmmanuel Vadot 34*833e5d42SEmmanuel Vadotrequired: 35*833e5d42SEmmanuel Vadot - compatible 36*833e5d42SEmmanuel Vadot - reg 37*833e5d42SEmmanuel Vadot 38*833e5d42SEmmanuel VadotadditionalProperties: false 39*833e5d42SEmmanuel Vadot 40*833e5d42SEmmanuel Vadotexamples: 41*833e5d42SEmmanuel Vadot - | 42*833e5d42SEmmanuel Vadot dither@5618c400 { 43*833e5d42SEmmanuel Vadot compatible = "fsl,imx8qxp-dc-dither"; 44*833e5d42SEmmanuel Vadot reg = <0x5618c400 0x14>; 45*833e5d42SEmmanuel Vadot }; 46