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