xref: /linux/Documentation/devicetree/bindings/media/st,stm32-dma2d.yaml (revision 67f49869106f78882a8a09b736d4884be85aba18)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/st,stm32-dma2d.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: STMicroelectronics STM32 Chrom-Art Accelerator DMA2D
8
9description:
10  Chrom-ART Accelerator(DMA2D), graphical hardware accelerator
11  enabling enhanced graphical user interface with minimum CPU load
12
13  It can perform the following operations.
14
15  - Filling a part or the whole of a destination image with a specific color.
16  - Copying a part or the whole of a source image into a part or the whole of
17    a destination image.
18  - Copying a part or the whole of a source image into a part or the whole of
19    a destination image with a pixel format conversion.
20  - Blending a part and/or two complete source images with different pixel
21    format and copy the result into a part or the whole of a destination image
22    with a different color format. (TODO)
23
24
25maintainers:
26  - Dillon Min <dillon.minfei@gmail.com>
27
28properties:
29  compatible:
30    const: st,stm32-dma2d
31
32  reg:
33    maxItems: 1
34
35  interrupts:
36    maxItems: 1
37
38  clocks:
39    maxItems: 1
40
41  clock-names:
42    items:
43      - const: dma2d
44
45  resets:
46    maxItems: 1
47
48required:
49  - compatible
50  - reg
51  - interrupts
52  - clocks
53  - clock-names
54  - resets
55
56additionalProperties: false
57
58examples:
59  - |
60    #include <dt-bindings/clock/stm32fx-clock.h>
61    #include <dt-bindings/mfd/stm32f4-rcc.h>
62    dma2d: dma2d@4002b000 {
63        compatible = "st,stm32-dma2d";
64        reg = <0x4002b000 0xc00>;
65        interrupts = <90>;
66        resets = <&rcc STM32F4_AHB1_RESET(DMA2D)>;
67        clocks = <&rcc 0 STM32F4_AHB1_CLOCK(DMA2D)>;
68        clock-names = "dma2d";
69    };
70
71...
72