From 2742e988393bed24572cf83ad6418f174743dcfb Mon Sep 17 00:00:00 2001 From: Putin Lee Date: Tue, 9 Jan 2018 20:31:12 +0800 Subject: [PATCH] dt-bindings: rockchip: rga: Document for px30/rk3326 rga Change-Id: Ibbd3c1c7aa47697870a0168c889ff6a0247464d5 Signed-off-by: Putin Lee --- .../bindings/video/rockchip_rga.txt | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/rockchip_rga.txt 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; + : open the dsi host; + :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 = ; + clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>; + clock-names = "aclk", "hclk", "sclk"; + dma-coherent; + status = "disabled"; + };