From patchwork Tue Jun 4 16:34:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianfeng Liu X-Patchwork-Id: 13685649 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 867B9C25B78 for ; Tue, 4 Jun 2024 16:34:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lop0b+P0588y094KsPQ1U78k2hpFdbhuAEBdrs1TZks=; b=pvJHH+yWbNMK7Z 7UEhqrlbzEOHZpA10ekrfTbFO+cODh8K30ZTSLcYzGkRGxbPnJZ74sJ24KAUoVCvYICxigfLsCFrn f3mtPDaycJRVSaZV0/JghOKSvgKYz2UgFjKo7gLsRlcsas9eE6uYw60XMyUKtu4quMHpGYAWPTXZf 41gVfS+sE1Q4ZcuvVPrN/SzJH2iLjIic02avxEjMIhYV+Mtk1Y2KgN1ouuyB8cZB2MAZaucZc19W5 omKTzDjzH04G5M75v4ly3YAKPwgPwYSP8XjtMelXoVzGGoS1znCjzH8J8QowaAK/UtAfvuM1gAR6d xQmWPR8AVP8cYyzgQM5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEX7M-000000039SK-2FwG; Tue, 04 Jun 2024 16:34:36 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEX7J-000000039Nn-1eTx; Tue, 04 Jun 2024 16:34:34 +0000 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1f68834bfdfso10539745ad.3; Tue, 04 Jun 2024 09:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717518871; x=1718123671; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zEkM+k4VgfiBUB1eDmq+e8NhhEFahgsAVBFkVD8WSHM=; b=POW0DUAXfddWPND23otlspT61wgaiyX6kuuGaUkT5CpTQqH0U7GASa9pfmotcjP0Go m1q0SCvhH3bVRoY6cZ/0yINjB9zyMJ6TLp49vUdd+o5os3ulWKCmxcw0w3FAORTm7CsY gCyIB7H6KA4IpYP0x96yFylrlTGFEbLes8xBUQq9/2oOxrTzV1YBmOgbQuLFMrhCuM/K eYvnDO+9CDa9A0heA1LrVxL/CLuRntUK3iw3vM9oYWn0WSJNb2+RfA2tmbyHuBXNDz9K Nsz+69zMZRlN/rorjbZ4E7yObtoGE7b9vPq4+YYhZbYLgvIjfCJ0HdIrKY2Sd3f1r7Vj Dj3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717518871; x=1718123671; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zEkM+k4VgfiBUB1eDmq+e8NhhEFahgsAVBFkVD8WSHM=; b=DOmUKnb/uG/w7+KwrlfKdr6XGzEKa1ySKLSVECCLhs7dG2qfmabiONoIDA/9i/LHs+ OUKZgYEu+z/A8+mYogJEfTdPWuxgy28PbNsWBHhnUPAyAHGPJc9afjVu8gFf6uuzoSqk 1AYXVu7EPHbyrRJ56AH4AO2A04xEyUptPFXD+2U5/k+Xm7xk6oG2/CIOtvCr0s90nFdg kcLzjqL6MJdVVbbSZQr+Suse+P9JDjM45lKjcTGu0La1Brij50Nve8jBAt/KMoQ5CI1n 8OJCdAkfKv3RGKms1OV2sbEoYEaiYqHRafNUruyYWxORGLXOQebK7gvJKmmAtTEBOtja G3Ow== X-Forwarded-Encrypted: i=1; AJvYcCXBeG4o/i+UYN9uRruhOaWYWC4p7E+9my/pwXBUvxF13m0IOWT2VUjMqrLZakipatKIyRCTOIV98RXotKc0Gjr6v32e65Dc49EyibIn10lSSWjGhRQ= X-Gm-Message-State: AOJu0YzeZKaMohJHKMf0NhdG7dvG4zr3QEAhaDuWDjf/BFeY1RTJT6V+ MYecHc9llLhfIqS2CWjXCWPC4JHzDxfFDE+29/7WCjndUsw7ZKq2Stfy7hr/50M= X-Google-Smtp-Source: AGHT+IFx+0w4koH+2lh7oQEJiiGnGW3l5n2kEVeCTbZcpsxeFN7yHxa0KGGLds7mR/2miOe42TWtnA== X-Received: by 2002:a17:902:dc84:b0:1f6:326b:cde0 with SMTP id d9443c01a7336-1f6a5a25c39mr340275ad.31.1717518870722; Tue, 04 Jun 2024 09:34:30 -0700 (PDT) Received: from localhost.localdomain ([221.220.133.99]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f63235561csm85463445ad.70.2024.06.04.09.34.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 09:34:30 -0700 (PDT) From: Jianfeng Liu To: linux-rockchip@lists.infradead.org Cc: Diederik de Haas , Jianfeng Liu , Conor Dooley , Conor Dooley , Ezequiel Garcia , Heiko Stuebner , Jacob Chen , Krzysztof Kozlowski , Mauro Carvalho Chehab , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: media: rockchip-rga: add rockchip,rk3588-rga Date: Wed, 5 Jun 2024 00:34:06 +0800 Message-Id: <20240604163408.1863080-2-liujianfeng1994@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240604163408.1863080-1-liujianfeng1994@gmail.com> References: <20240604163408.1863080-1-liujianfeng1994@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_093433_591101_72340DD6 X-CRM114-Status: GOOD ( 11.10 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add a new compatible for the rk3588 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 and rk3568, which documents the same RGA2. Signed-off-by: Jianfeng Liu Acked-by: Conor Dooley --- (no changes since v1) Documentation/devicetree/bindings/media/rockchip-rga.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/rockchip-rga.yaml b/Documentation/devicetree/bindings/media/rockchip-rga.yaml index ea234222240..ac17cda6519 100644 --- a/Documentation/devicetree/bindings/media/rockchip-rga.yaml +++ b/Documentation/devicetree/bindings/media/rockchip-rga.yaml @@ -24,6 +24,7 @@ properties: - enum: - rockchip,rk3228-rga - rockchip,rk3568-rga + - rockchip,rk3588-rga - const: rockchip,rk3288-rga reg: From patchwork Tue Jun 4 16:34:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianfeng Liu X-Patchwork-Id: 13685650 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4A29CC25B78 for ; Tue, 4 Jun 2024 16:34:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iQn8ASNxpBS/VtKxu4GAh8czyCev9qTp3tLaPWhpmP8=; b=MZMvo5i12H3SQ0 +nObzWwIMiEP5iVH4TfIi6P+DpLRyxK+7ZB1CrU51r7EuYmHTyzZj0oolWWI2lPgnKrmT5wGgBtTz KzwY9HS4ibq866w6diglCg6Smc+zeFhHa14Xj9W/Hfh7/WQa90DDwqQfDbf1HJVO7Ofoynv0EBRw4 ofqyovOvyg+19BS85G6EJPvaN/8xIjgGP5H/crjyv6abmGU9VL7krtxdCDCVSc5PyivRHxtlYZcsH Jg3TNNzC1LTMN7VF02/SF4jU74wRt12plilSdoaNZhgIx7C6PxQUPqiT80srNyPeqDF4aSL9xOv7j 0pCG4g8TtAz2+7aYnQ1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEX7P-000000039U6-1xbH; Tue, 04 Jun 2024 16:34:39 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEX7L-000000039RE-2su2; Tue, 04 Jun 2024 16:34:37 +0000 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1f48b825d8cso11353265ad.2; Tue, 04 Jun 2024 09:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717518874; x=1718123674; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MSWAqBDL1izzu0pJ0VxA5Nn7Co4tP4tZJFYWLGdgAg8=; b=fPTA0Coy1+wUSaAzJ/bmVojwhacG8C0u+y9XUo3f8ZNEsp44PMuJOZoRcaIJZuQm/k GNrPjNale++HitWnsQ1lIeBpC8XuDT5hbxcNOP5pvN3Dj6ghKQ6vVkVqDUZRw49suRw3 Cx9Vc0FkTJax2d5KOIy5szm9R1omeAFYUpZT6+axKtBFFCGNKdoExFBWxMxz7fioKjL5 0qMg1bzBRYY5yL99vy+r1rcKT4sBWKd/v3zzH5oE0dfy8d9QqUaGXU7BJpHdqyccg62l pDeyMSQj8+oIk7PixbeIxhSoyb8KRAHlHlGFNgvq/XKQULSiOuuFDQDhARSimnnQCihe y9Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717518874; x=1718123674; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MSWAqBDL1izzu0pJ0VxA5Nn7Co4tP4tZJFYWLGdgAg8=; b=diZwFqnkmbhyNl8GFAopMVAq+chslG4Lwhq8/thx5oH8n3Ic9kmBhlvhyuOvB0fN28 nkt6mTIxaWf9Cj+dmdh4JQD/1E5phh7Ae7l3geEPKWQ2xPO98lL/YEdJPzc/t8ZvCktr oPHDVBo3Ex7W8fw/C1BgKPzEcqLczpslDwDjWgg2zLeYFzI58geek3Evex7K36UD6e0+ FjOgKt52F6HkLQOv1yBhvJmWUiZzedIjrhK4VDELk8uTYuGMFS7sT9cDHZUdzzvpubKW a1Jy5zQ6Agk6N91fM9cFwhvhygJSvlY+oScBkAu9t4ipcvFsR4zi2p0XKLpZAcSzZz0W NR9Q== X-Forwarded-Encrypted: i=1; AJvYcCU4vk2QaUG3mu4ChB4ynZbq3hidCOOp0n6o2Sd3Rcg/RYnBt4cK6pSJ6wmLPFhZlEhjf1+aNn5nAnNgdz6pb8YHB+Hzy5eJ1NUZzW05AhFR2wP8894= X-Gm-Message-State: AOJu0YwikReGoeHhhw0AtghBaNce75itO0HmGStycIjoztEB86Ve157G vvBqkfVJLwvWGtEUBbesyUsrsAmQUzhYSll/pHITrXWAd0Gqu3ihum/qS6E5o3Y= X-Google-Smtp-Source: AGHT+IHwz4HQgLu2AhAlwAyyyDOYRi8UyDFV49LkLxu7HqmpNBzU9VPhkitQY78LumAPLMZ+arYn6A== X-Received: by 2002:a17:902:f687:b0:1f6:5a50:93b3 with SMTP id d9443c01a7336-1f6a5a716edmr293035ad.43.1717518874470; Tue, 04 Jun 2024 09:34:34 -0700 (PDT) Received: from localhost.localdomain ([221.220.133.99]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f63235561csm85463445ad.70.2024.06.04.09.34.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 09:34:34 -0700 (PDT) From: Jianfeng Liu To: linux-rockchip@lists.infradead.org Cc: Diederik de Haas , Jianfeng Liu , Conor Dooley , Heiko Stuebner , Krzysztof Kozlowski , Rob Herring , Stephen Rothwell , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] arm64: dts: rockchip: Add RGA2 support to rk3588 Date: Wed, 5 Jun 2024 00:34:07 +0800 Message-Id: <20240604163408.1863080-3-liujianfeng1994@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240604163408.1863080-1-liujianfeng1994@gmail.com> References: <20240604163408.1863080-1-liujianfeng1994@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_093435_788546_88349E27 X-CRM114-Status: GOOD ( 10.92 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org RK3588 also features a RGA2 block. Add the necessary device tree node. Signed-off-by: Jianfeng Liu Tested-by: Tim Surber --- Changes in v2: - Sort node by bus-address based on next-20240604 arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi index 6ac5ac8b48a..beebc4dc0e7 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi @@ -1159,6 +1159,17 @@ power-domain@RK3588_PD_SDMMC { }; }; + rga: rga@fdb80000 { + compatible = "rockchip,rk3588-rga", "rockchip,rk3288-rga"; + reg = <0x0 0xfdb80000 0x0 0x180>; + interrupts = ; + clocks = <&cru ACLK_RGA2>, <&cru HCLK_RGA2>, <&cru CLK_RGA2_CORE>; + clock-names = "aclk", "hclk", "sclk"; + resets = <&cru SRST_RGA2_CORE>, <&cru SRST_A_RGA2>, <&cru SRST_H_RGA2>; + reset-names = "core", "axi", "ahb"; + power-domains = <&power RK3588_PD_VDPU>; + }; + av1d: video-codec@fdc70000 { compatible = "rockchip,rk3588-av1-vpu"; reg = <0x0 0xfdc70000 0x0 0x800>;