From nobody Tue Feb 10 06:25:19 2026 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 257B3334C22 for ; Tue, 27 Jan 2026 14:40:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769524804; cv=none; b=eduV1IZqfEuEtjRJO/IMoWPvBbRRvguCNl1MFXamuazOPt04Uv5lEfX5ff27NkKsoAWI/if9MztqyvtlznQWfMb+MitlAgdMnEU2KEbcMvJ0QBJS2DirJ78N3naCngc8PyHS/8Ug9GVXLOcky9BcrjY8MTleOqJkhoyWXYptSYM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769524804; c=relaxed/simple; bh=r1EM2vfsDGfqJ4zPMIJDZKpb3Eeh0H1vaHxfyMbNz3E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=V2THDQ4M25NhZ1itImB19Vim2EQKlBZcC9DhnWTwnkmSyIWL8cVaRhZXFBzCnb8r5bUPHkl1cWiB31Cmhsg9n8ywvU8gpcsc1cMXpfLd8zLjxnk1rHfIAGnsRSpHyG1vNVlR1KJmUCtPSgK/JCU3RjZJQ70E2x9gCRj2T47s6EI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=peter.mobile.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1vkkEY-0007YT-N3; Tue, 27 Jan 2026 15:39:58 +0100 From: =?utf-8?q?Sven_P=C3=BCschel?= Date: Tue, 27 Jan 2026 15:39:10 +0100 Subject: [PATCH v3 01/27] media: dt-bindings: media: rockchip-rga: add rockchip,rk3588-rga3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260127-spu-rga3-v3-1-77b273067beb@pengutronix.de> References: <20260127-spu-rga3-v3-0-77b273067beb@pengutronix.de> In-Reply-To: <20260127-spu-rga3-v3-0-77b273067beb@pengutronix.de> To: Jacob Chen , Ezequiel Garcia , Mauro Carvalho Chehab , Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Sven_P=C3=BCschel?= X-Mailer: b4 0.14.3 X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: s.pueschel@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Add a new compatible for the RGA3 (Raster Graphic Acceleration 3) peripheral found on the RK3588 SoC. Also specify an iommu property, as the RGA3 contains the generic rockchip iommu. The RGA2 also has an iommu, but it's specific to the RGA2. The existing binding refers to the RGA2 peripheral. The RK3588 contains one RGA2 core and two RGA3 cores. Both feature a similar functionality of scaling, cropping and rotating of up to two input images into one output image. Key differences of the RGA3 are: - supports 10bit YUV output formats - supports 8x8 tiles and FBCD as inputs and outputs - supports BT2020 color space conversion - max output resolution of (8192-64)x(8192-64) - MMU can map up to 32G DDR RAM - fully planar formats (3 planes) are not supported - max scale up/down factor of 8 (RGA2 allows up to 16) Signed-off-by: Sven P=C3=BCschel --- .../devicetree/bindings/media/rockchip-rga.yaml | 19 +++++++++++++++= +++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/rockchip-rga.yaml b/Do= cumentation/devicetree/bindings/media/rockchip-rga.yaml index ac17cda65191b..7735d8794c719 100644 --- a/Documentation/devicetree/bindings/media/rockchip-rga.yaml +++ b/Documentation/devicetree/bindings/media/rockchip-rga.yaml @@ -9,7 +9,9 @@ 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. + BitBLT, alpha blending and image blur/sharpness. There exist two variants + named RGA2 and RGA3 that differ in the supported inputs/output formats, + the attached IOMMU and the supported operations on the input. =20 maintainers: - Jacob Chen @@ -20,6 +22,7 @@ properties: oneOf: - const: rockchip,rk3288-rga - const: rockchip,rk3399-rga + - const: rockchip,rk3588-rga3 - items: - enum: - rockchip,rk3228-rga @@ -45,6 +48,9 @@ properties: power-domains: maxItems: 1 =20 + iommus: + maxItems: 1 + resets: maxItems: 3 =20 @@ -54,6 +60,17 @@ properties: - const: axi - const: ahb =20 +allOf: +- if: + properties: + compatible: + contains: + enum: + - rockchip,rk3588-rga3 + then: + required: + - iommus + required: - compatible - reg --=20 2.52.0