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