xref: /linux/Documentation/devicetree/bindings/media/rockchip-rga.yaml (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1b1f487efSJohan Jonker# SPDX-License-Identifier: GPL-2.0
2b1f487efSJohan Jonker%YAML 1.2
3b1f487efSJohan Jonker---
4b1f487efSJohan Jonker$id: http://devicetree.org/schemas/media/rockchip-rga.yaml#
5b1f487efSJohan Jonker$schema: http://devicetree.org/meta-schemas/core.yaml#
6b1f487efSJohan Jonker
7b1f487efSJohan Jonkertitle: Rockchip 2D raster graphic acceleration controller (RGA)
8b1f487efSJohan Jonker
9b1f487efSJohan Jonkerdescription:
10b1f487efSJohan Jonker  RGA is a standalone 2D raster graphic acceleration unit. It accelerates 2D
11b1f487efSJohan Jonker  graphics operations, such as point/line drawing, image scaling, rotation,
12b1f487efSJohan Jonker  BitBLT, alpha blending and image blur/sharpness.
13b1f487efSJohan Jonker
14b1f487efSJohan Jonkermaintainers:
15b1f487efSJohan Jonker  - Jacob Chen <jacob-chen@iotwrt.com>
16b1f487efSJohan Jonker  - Ezequiel Garcia <ezequiel@collabora.com>
17b1f487efSJohan Jonker
18b1f487efSJohan Jonkerproperties:
19b1f487efSJohan Jonker  compatible:
20b1f487efSJohan Jonker    oneOf:
21b1f487efSJohan Jonker      - const: rockchip,rk3288-rga
22b1f487efSJohan Jonker      - const: rockchip,rk3399-rga
23b1f487efSJohan Jonker      - items:
249b12ceb5SMichael Tretter          - enum:
259b12ceb5SMichael Tretter              - rockchip,rk3228-rga
269b12ceb5SMichael Tretter              - rockchip,rk3568-rga
27*dd40472dSJianfeng Liu              - rockchip,rk3588-rga
28b1f487efSJohan Jonker          - const: rockchip,rk3288-rga
29b1f487efSJohan Jonker
30b1f487efSJohan Jonker  reg:
31b1f487efSJohan Jonker    maxItems: 1
32b1f487efSJohan Jonker
33b1f487efSJohan Jonker  interrupts:
34b1f487efSJohan Jonker    maxItems: 1
35b1f487efSJohan Jonker
36b1f487efSJohan Jonker  clocks:
37b1f487efSJohan Jonker    maxItems: 3
38b1f487efSJohan Jonker
39b1f487efSJohan Jonker  clock-names:
40b1f487efSJohan Jonker    items:
41b1f487efSJohan Jonker      - const: aclk
42b1f487efSJohan Jonker      - const: hclk
43b1f487efSJohan Jonker      - const: sclk
44b1f487efSJohan Jonker
45b2965c91SJohan Jonker  power-domains:
46b2965c91SJohan Jonker    maxItems: 1
47b2965c91SJohan Jonker
48b1f487efSJohan Jonker  resets:
49b1f487efSJohan Jonker    maxItems: 3
50b1f487efSJohan Jonker
51b1f487efSJohan Jonker  reset-names:
52b1f487efSJohan Jonker    items:
53b1f487efSJohan Jonker      - const: core
54b1f487efSJohan Jonker      - const: axi
55b1f487efSJohan Jonker      - const: ahb
56b1f487efSJohan Jonker
57b1f487efSJohan Jonkerrequired:
58b1f487efSJohan Jonker  - compatible
59b1f487efSJohan Jonker  - reg
60b1f487efSJohan Jonker  - interrupts
61b1f487efSJohan Jonker  - clocks
62b1f487efSJohan Jonker  - clock-names
63b1f487efSJohan Jonker  - resets
64b1f487efSJohan Jonker  - reset-names
65b1f487efSJohan Jonker
66b1f487efSJohan JonkeradditionalProperties: false
67b1f487efSJohan Jonker
68b1f487efSJohan Jonkerexamples:
69b1f487efSJohan Jonker  - |
70b1f487efSJohan Jonker    #include <dt-bindings/clock/rk3399-cru.h>
71b1f487efSJohan Jonker    #include <dt-bindings/interrupt-controller/arm-gic.h>
72b2965c91SJohan Jonker    #include <dt-bindings/power/rk3399-power.h>
73b1f487efSJohan Jonker    rga: rga@ff680000 {
74b1f487efSJohan Jonker      compatible = "rockchip,rk3399-rga";
75b1f487efSJohan Jonker      reg = <0xff680000 0x10000>;
76b1f487efSJohan Jonker      interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
77b1f487efSJohan Jonker      clocks = <&cru ACLK_RGA>,
78b1f487efSJohan Jonker               <&cru HCLK_RGA>,
79b1f487efSJohan Jonker               <&cru SCLK_RGA_CORE>;
80b1f487efSJohan Jonker      clock-names = "aclk", "hclk", "sclk";
81b2965c91SJohan Jonker      power-domains = <&power RK3399_PD_RGA>;
82b1f487efSJohan Jonker      resets = <&cru SRST_RGA_CORE>,
83b1f487efSJohan Jonker               <&cru SRST_A_RGA>,
84b1f487efSJohan Jonker               <&cru SRST_H_RGA>;
85b1f487efSJohan Jonker      reset-names = "core", "axi", "ahb";
86b1f487efSJohan Jonker    };
87