Rockchip 2D raster graphic acceleration controller (RGA)

Schema identifier ($id): "http://devicetree.org/schemas/media/rockchip-rga.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

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.

Maintainers (maintainers): "Jacob Chen <jacob-chen@iotwrt.com>", "Ezequiel Garcia <ezequiel@collabora.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "rockchip,rk3288-rga"

Rule 2

Exact value (const): "rockchip,rk3399-rga"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,rk3228-rga", "rockchip,rk3568-rga", "rockchip,rk3588-rga"

Item 2

Exact value (const): "rockchip,rk3288-rga"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 3

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "aclk"

Item 2

Exact value (const): "hclk"

Item 3

Exact value (const): "sclk"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 3

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "axi"

Item 3

Exact value (const): "ahb"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "resets", "reset-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3399-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/rk3399-power.h>
rga: rga@ff680000 {
  compatible = "rockchip,rk3399-rga";
  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";
  power-domains = <&power RK3399_PD_RGA>;
  resets = <&cru SRST_RGA_CORE>,
           <&cru SRST_A_RGA>,
           <&cru SRST_H_RGA>;
  reset-names = "core", "axi", "ahb";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page