Content-Type: multipart/mixed; boundary="===============0490791371765865154==" MIME-Version: 1.0 From: Dillon Min To: kbuild-all@lists.01.org Subject: [PATCH v7 02/10] media: dt-bindings: media: add document for STM32 DMA2d bindings Date: Tue, 26 Oct 2021 15:11:14 +0800 Message-ID: <1635232282-3992-3-git-send-email-dillon.minfei@gmail.com> In-Reply-To: <1635232282-3992-1-git-send-email-dillon.minfei@gmail.com> List-Id: --===============0490791371765865154== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable This adds documentation of device tree bindings for the STM32 DMA2D Signed-off-by: Dillon Min Reviewed-by: Rob Herring --- .../devicetree/bindings/media/st,stm32-dma2d.yaml | 71 ++++++++++++++++++= ++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/st,stm32-dma2d.= yaml diff --git a/Documentation/devicetree/bindings/media/st,stm32-dma2d.yaml b/= Documentation/devicetree/bindings/media/st,stm32-dma2d.yaml new file mode 100644 index 000000000000..f97b4a246605 --- /dev/null +++ b/Documentation/devicetree/bindings/media/st,stm32-dma2d.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/st,stm32-dma2d.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STM32 Chrom-Art Accelerator DMA2D binding + +description: + Chrom-ART Accelerator(DMA2D), graphical hardware accelerator + enabling enhanced graphical user interface with minimum CPU load + + It can perform the following operations. + + - Filling a part or the whole of a destination image with a specific col= or. + - Copying a part or the whole of a source image into a part or the whole= of + a destination image. + - Copying a part or the whole of a source image into a part or the whole= of + a destination image with a pixel format conversion. + - Blending a part and/or two complete source images with different pixel + format and copy the result into a part or the whole of a destination i= mage + with a different color format. (TODO) + + +maintainers: + - Dillon Min + +properties: + compatible: + const: st,stm32-dma2d + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: dma2d + + resets: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + +additionalProperties: false + +examples: + - | + #include + #include + dma2d: dma2d(a)4002b000 { + compatible =3D "st,stm32-dma2d"; + reg =3D <0x4002b000 0xc00>; + interrupts =3D <90>; + resets =3D <&rcc STM32F4_AHB1_RESET(DMA2D)>; + clocks =3D <&rcc 0 STM32F4_AHB1_CLOCK(DMA2D)>; + clock-names =3D "dma2d"; + }; + +... -- = 2.7.4 --===============0490791371765865154==--