xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/video/rockchip_rga.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1device-tree bindings for rockchip 2D raster graphic acceleration controller (RGA)
2
3RGA is a standalone 2D raster graphic acceleration unit. It accelerates 2D
4graphics operations, such as point/line drawing, image scaling, rotation,
5BitBLT, alpha blending and image blur/sharpness.
6
7Required properties:
8- compatible: value should be one of the following
9		"rockchip,rga2";
10		"rockchip,rk312x-rga";
11
12- interrupts: RGA interrupt specifier.
13
14- clocks: phandle to RGA sclk/hclk/aclk clocks
15
16- clock-names: should be "aclk", "hclk" and "sclk"
17
18- status: the dsi host status;
19	<disabled>: open the dsi host;
20	<okay>:close the dsi host;
21
22Optional Properties:
23- dma-coherent: When import dma_buf to rga driver, dma_map_sg will always do cpu cache sync, it cause low performance.Actually we don't want to do cpu cache sync on this context,So set rga device with dma-coherent to skip cpu cache sync.
24
25Example:
26SoC-specific DT entry:
27	rga: rga@ff680000 {
28		compatible = "rockchip,rga2";
29		reg = <0xff680000 0x10000>;
30		interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
31		clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>;
32		clock-names = "aclk", "hclk", "sclk";
33		dma-coherent;
34		status = "disabled";
35	};
36