Add a new compatible for the rk3568 Rockchip SoC, which also features an RGA, which is called RGA2 in the TRM Part2. It is the same core as used on the rk3288, which documents the same RGA2. Specify a new compatible for the rk3568 to be able to handle unknown SoC-specific differences in the driver. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Link: https://lore.kernel.org/r/20230119-rk3568-rga-v1-1-43d4d14365e6@pengutronix.de Signed-off-by: Heiko Stuebner <heiko@sntech.de>
86 lines
1.9 KiB
YAML
86 lines
1.9 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/media/rockchip-rga.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Rockchip 2D raster graphic acceleration controller (RGA)
|
|
|
|
description:
|
|
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:
|
|
- Jacob Chen <jacob-chen@iotwrt.com>
|
|
- Ezequiel Garcia <ezequiel@collabora.com>
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- const: rockchip,rk3288-rga
|
|
- const: rockchip,rk3399-rga
|
|
- items:
|
|
- enum:
|
|
- rockchip,rk3228-rga
|
|
- rockchip,rk3568-rga
|
|
- const: rockchip,rk3288-rga
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
maxItems: 3
|
|
|
|
clock-names:
|
|
items:
|
|
- const: aclk
|
|
- const: hclk
|
|
- const: sclk
|
|
|
|
power-domains:
|
|
maxItems: 1
|
|
|
|
resets:
|
|
maxItems: 3
|
|
|
|
reset-names:
|
|
items:
|
|
- const: core
|
|
- const: axi
|
|
- const: ahb
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- clocks
|
|
- clock-names
|
|
- resets
|
|
- reset-names
|
|
|
|
additionalProperties: false
|
|
|
|
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";
|
|
};
|