summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/media/nxp,dw100.yaml
blob: 21910ff0e1c372a8123fc8348db6534b473635a6 (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
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/nxp,dw100.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: NXP i.MX8MP DW100 Dewarper core

maintainers:
  - Xavier Roumegue <xavier.roumegue@oss.nxp.com>

description: |-
  The Dewarp Engine provides high-performance dewarp processing for the
  correction of the distortion that is introduced in images produced by fisheye
  and wide angle lenses. It is implemented with a line/tile-cache based
  architecture. With configurable address mapping look up tables and per tile
  processing, it successfully generates a corrected output image.
  The engine can be used to perform scaling, cropping and pixel format
  conversion.

properties:
  compatible:
    enum:
      - nxp,imx8mp-dw100

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    items:
      - description: The AXI clock
      - description: The AHB clock

  clock-names:
    items:
      - const: axi
      - const: ahb

  power-domains:
    maxItems: 1

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names
  - power-domains

additionalProperties: false

examples:
  - |
    #include <dt-bindings/clock/imx8mp-clock.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    #include <dt-bindings/power/imx8mp-power.h>

    dewarp: dwe@32e30000 {
            compatible = "nxp,imx8mp-dw100";
            reg = <0x32e30000 0x10000>;
            interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
            clocks = <&clk IMX8MP_CLK_MEDIA_AXI_ROOT>,
                     <&clk IMX8MP_CLK_MEDIA_APB_ROOT>;
            clock-names = "axi", "ahb";
            power-domains = <&media_blk_ctrl IMX8MP_MEDIABLK_PD_DWE>;
    };