summaryrefslogtreecommitdiff
path: root/dts/upstream/Bindings/display/imx/fsl,imx8qxp-dc-scaling-engine.yaml
blob: 76cbe11a63643e73a9928ad96296b69bdd6e51c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/display/imx/fsl,imx8qxp-dc-scaling-engine.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Freescale i.MX8qxp Display Controller Scaling Engine

description: |
  The unit can change the dimension of the input frame by nearest or linear
  re-sampling with 1/32 sub pixel precision.

  Internally it consist of two independent blocks for horizontal and vertical
  scaling. The sequence of both operations is arbitrary.

  Any frame dimensions between 1 and 16384 pixels in width and height are
  supported, except that the vertical scaler has a frame width maximum
  depending of the system's functional limitations.

  In general all scale factors are supported inside the supported frame
  dimensions. In range of scale factors 1/16..16 the filtered output colors
  are LSBit precise (e.g. DC ripple free).

                       +-----------+
                       |   Line    |
                       |  Buffer   |
                       +-----------+
                             ^
                             |
                             V
                 |\    +-----------+
           ------+ |   |           |
          |      | +-->| Vertical  |----
          |  ----+ |   |  Scaler   |    |
          | |    |/    +-----------+    |
          | |                           |
          | |                           |
          | |                           |     |\
          |  ------------- -------------+-----+ |
  Input --+               X                   | +--> Output
          |  ------------- -------------+-----+ |
          | |                           |     |/
          | |                           |
          | |    |\    +-----------+    |
          |  ----+ |   |           |    |
          |      | +-->| Horizontal|----
           ------+ |   |  Scaler   |
                 |/    +-----------+

  The unit supports downscaling, upscaling, sub pixel translation and bob
  de-interlacing.

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

properties:
  compatible:
    enum:
      - fsl,imx8qxp-dc-hscaler
      - fsl,imx8qxp-dc-vscaler

  reg:
    maxItems: 2

  reg-names:
    items:
      - const: pec
      - const: cfg

required:
  - compatible
  - reg
  - reg-names

additionalProperties: false

examples:
  - |
    hscaler@561808c0 {
        compatible = "fsl,imx8qxp-dc-hscaler";
        reg = <0x561808c0 0x10>, <0x56183000 0x18>;
        reg-names = "pec", "cfg";
    };