xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/video/rockchip_rga.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyundevice-tree bindings for rockchip 2D raster graphic acceleration controller (RGA)
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRGA is a standalone 2D raster graphic acceleration unit. It accelerates 2D
4*4882a593Smuzhiyungraphics operations, such as point/line drawing, image scaling, rotation,
5*4882a593SmuzhiyunBitBLT, alpha blending and image blur/sharpness.
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunRequired properties:
8*4882a593Smuzhiyun- compatible: value should be one of the following
9*4882a593Smuzhiyun		"rockchip,rga2";
10*4882a593Smuzhiyun		"rockchip,rk312x-rga";
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun- interrupts: RGA interrupt specifier.
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun- clocks: phandle to RGA sclk/hclk/aclk clocks
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun- clock-names: should be "aclk", "hclk" and "sclk"
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun- status: the dsi host status;
19*4882a593Smuzhiyun	<disabled>: open the dsi host;
20*4882a593Smuzhiyun	<okay>:close the dsi host;
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunOptional Properties:
23*4882a593Smuzhiyun- 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*4882a593Smuzhiyun
25*4882a593SmuzhiyunExample:
26*4882a593SmuzhiyunSoC-specific DT entry:
27*4882a593Smuzhiyun	rga: rga@ff680000 {
28*4882a593Smuzhiyun		compatible = "rockchip,rga2";
29*4882a593Smuzhiyun		reg = <0xff680000 0x10000>;
30*4882a593Smuzhiyun		interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
31*4882a593Smuzhiyun		clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>;
32*4882a593Smuzhiyun		clock-names = "aclk", "hclk", "sclk";
33*4882a593Smuzhiyun		dma-coherent;
34*4882a593Smuzhiyun		status = "disabled";
35*4882a593Smuzhiyun	};
36