0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/media/rockchip-rga.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Rockchip 2D raster graphic acceleration controller (RGA)
0008
0009 description:
0010 RGA is a standalone 2D raster graphic acceleration unit. It accelerates 2D
0011 graphics operations, such as point/line drawing, image scaling, rotation,
0012 BitBLT, alpha blending and image blur/sharpness.
0013
0014 maintainers:
0015 - Jacob Chen <jacob-chen@iotwrt.com>
0016 - Ezequiel Garcia <ezequiel@collabora.com>
0017
0018 properties:
0019 compatible:
0020 oneOf:
0021 - const: rockchip,rk3288-rga
0022 - const: rockchip,rk3399-rga
0023 - items:
0024 - const: rockchip,rk3228-rga
0025 - const: rockchip,rk3288-rga
0026
0027 reg:
0028 maxItems: 1
0029
0030 interrupts:
0031 maxItems: 1
0032
0033 clocks:
0034 maxItems: 3
0035
0036 clock-names:
0037 items:
0038 - const: aclk
0039 - const: hclk
0040 - const: sclk
0041
0042 power-domains:
0043 maxItems: 1
0044
0045 resets:
0046 maxItems: 3
0047
0048 reset-names:
0049 items:
0050 - const: core
0051 - const: axi
0052 - const: ahb
0053
0054 required:
0055 - compatible
0056 - reg
0057 - interrupts
0058 - clocks
0059 - clock-names
0060 - resets
0061 - reset-names
0062
0063 additionalProperties: false
0064
0065 examples:
0066 - |
0067 #include <dt-bindings/clock/rk3399-cru.h>
0068 #include <dt-bindings/interrupt-controller/arm-gic.h>
0069 #include <dt-bindings/power/rk3399-power.h>
0070 rga: rga@ff680000 {
0071 compatible = "rockchip,rk3399-rga";
0072 reg = <0xff680000 0x10000>;
0073 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
0074 clocks = <&cru ACLK_RGA>,
0075 <&cru HCLK_RGA>,
0076 <&cru SCLK_RGA_CORE>;
0077 clock-names = "aclk", "hclk", "sclk";
0078 power-domains = <&power RK3399_PD_RGA>;
0079 resets = <&cru SRST_RGA_CORE>,
0080 <&cru SRST_A_RGA>,
0081 <&cru SRST_H_RGA>;
0082 reset-names = "core", "axi", "ahb";
0083 };