xref: /linux/Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-scaling-engine.yaml (revision 260f6f4fda93c8485c8037865c941b42b9cba5d2)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/imx/fsl,imx8qxp-dc-scaling-engine.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Freescale i.MX8qxp Display Controller Scaling Engine
8
9description: |
10  The unit can change the dimension of the input frame by nearest or linear
11  re-sampling with 1/32 sub pixel precision.
12
13  Internally it consist of two independent blocks for horizontal and vertical
14  scaling. The sequence of both operations is arbitrary.
15
16  Any frame dimensions between 1 and 16384 pixels in width and height are
17  supported, except that the vertical scaler has a frame width maximum
18  depending of the system's functional limitations.
19
20  In general all scale factors are supported inside the supported frame
21  dimensions. In range of scale factors 1/16..16 the filtered output colors
22  are LSBit precise (e.g. DC ripple free).
23
24                       +-----------+
25                       |   Line    |
26                       |  Buffer   |
27                       +-----------+
28                             ^
29                             |
30                             V
31                 |\    +-----------+
32           ------+ |   |           |
33          |      | +-->| Vertical  |----
34          |  ----+ |   |  Scaler   |    |
35          | |    |/    +-----------+    |
36          | |                           |
37          | |                           |
38          | |                           |     |\
39          |  ------------- -------------+-----+ |
40  Input --+               X                   | +--> Output
41          |  ------------- -------------+-----+ |
42          | |                           |     |/
43          | |                           |
44          | |    |\    +-----------+    |
45          |  ----+ |   |           |    |
46          |      | +-->| Horizontal|----
47           ------+ |   |  Scaler   |
48                 |/    +-----------+
49
50  The unit supports downscaling, upscaling, sub pixel translation and bob
51  de-interlacing.
52
53maintainers:
54  - Liu Ying <victor.liu@nxp.com>
55
56properties:
57  compatible:
58    enum:
59      - fsl,imx8qxp-dc-hscaler
60      - fsl,imx8qxp-dc-vscaler
61
62  reg:
63    maxItems: 2
64
65  reg-names:
66    items:
67      - const: pec
68      - const: cfg
69
70required:
71  - compatible
72  - reg
73  - reg-names
74
75additionalProperties: false
76
77examples:
78  - |
79    hscaler@561808c0 {
80        compatible = "fsl,imx8qxp-dc-hscaler";
81        reg = <0x561808c0 0x10>, <0x56183000 0x18>;
82        reg-names = "pec", "cfg";
83    };
84