summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPutin Lee <putin.li@rock-chips.com>2018-01-09 20:31:12 +0800
committerTao Huang <huangtao@rock-chips.com>2018-01-10 18:45:54 +0800
commit2742e988393bed24572cf83ad6418f174743dcfb (patch)
tree9279142a4468a197e68367688003e8aa91bca615
parentccf1ebd486e6b353feb108ffea4ca2be8c676e85 (diff)
dt-bindings: rockchip: rga: Document for px30/rk3326 rga
Change-Id: Ibbd3c1c7aa47697870a0168c889ff6a0247464d5 Signed-off-by: Putin Lee <putin.li@rock-chips.com>
-rw-r--r--Documentation/devicetree/bindings/video/rockchip_rga.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/video/rockchip_rga.txt b/Documentation/devicetree/bindings/video/rockchip_rga.txt
new file mode 100644
index 000000000000..b9846291073d
--- /dev/null
+++ b/Documentation/devicetree/bindings/video/rockchip_rga.txt
@@ -0,0 +1,35 @@
+device-tree bindings for rockchip 2D raster graphic acceleration controller (RGA)
+
+RGA is a standalone 2D raster graphic acceleration unit. It accelerates 2D
+graphics operations, such as point/line drawing, image scaling, rotation,
+BitBLT, alpha blending and image blur/sharpness.
+
+Required properties:
+- compatible: value should be one of the following
+ "rockchip,rga2";
+ "rockchip,rk312x-rga";
+
+- interrupts: RGA interrupt specifier.
+
+- clocks: phandle to RGA sclk/hclk/aclk clocks
+
+- clock-names: should be "aclk", "hclk" and "sclk"
+
+- status: the dsi host status;
+ <disabled>: open the dsi host;
+ <okay>:close the dsi host;
+
+Optional Properties:
+- 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.
+
+Example:
+SoC-specific DT entry:
+ rga: rga@ff680000 {
+ compatible = "rockchip,rga2";
+ reg = <0xff680000 0x10000>;
+ interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>;
+ clock-names = "aclk", "hclk", "sclk";
+ dma-coherent;
+ status = "disabled";
+ };