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