From patchwork Sun Nov 5 23:36:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Karlman X-Patchwork-Id: 13446175 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 1699EC0018A for ; Sun, 5 Nov 2023 23:37: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=LUw06KT2GK98BHX3JMfg7jmeLTnVrA+u75/NxS75oiU=; b=NivBgWin0S9VuC DX3osZhAEWQXLwLshhftypfjSG9LAefSoOCsvWr5xPLmgSJL/X/2kJQxA+/aLc7EolmDrZXV9rK6p Xy2BYRJdPU98ZS4GOrP4y7FHJh5XaT6pZv5LJp+mqCDgxfyi26lOpiy7Y0Ixhmxvnjc/xLgy/39Q2 LrMus+siob4jIlWY8OgjDLwoBV+EcMBkAEUkx82JvPZ0Gw33OPlh5oICGitt/06sxJDEW90pSkC1m +O+55Cu6Gt2SU3K5kP/b6ciPgPRZA/7e6bzNW22nEeDbGpQ7aMTX36OOaqoDoUk+9hfjA43vgqDhR NUl9mbS9zJKCr+AKtojw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qzmg9-00FdGb-2N; Sun, 05 Nov 2023 23:37:17 +0000 Received: from smtp.forwardemail.net ([149.28.215.223]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qzmg7-00FdFY-2D; Sun, 05 Nov 2023 23:37:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1699227428; bh=qE7nH6H94GMs6nmY2PS6X8h2go3Ub6GdZ/t0WOTlQds=; b=GZmmwJj2vrehMzyYm+SU7CJeiaSIldQ6k1sT6e9Y3Ulx+QhjuTxtBAZSRs+79U892FMVwZCTr 9SRUlvjvxT5WZYm4ecxpVwWW81Otlrt+wLa8chj26IT8sX8bEcoAxJiqndCho4R9p6sRok6zM9R 5bl59D4b6cNoFYLNsM/GQ7ARmEyKaL23muUNGTULXXudIo0GQKNtsusTjusJ+t4OZD+eNW7idHz XdX4O3A+o+N3zt55zskikgltzQIveVkinqVvTN34NJ/9XpUoq2ikmP0zv7nr6pPjwBcsZPNfLur RUt3SUDO33LJfvsVUIeWFNx5zRTngZtk8eR7hY8/a6Ug== From: Jonas Karlman To: Ezequiel Garcia , Mauro Carvalho Chehab , Hans Verkuil , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: Alex Bee , Nicolas Dufresne , Sebastian Fricke , Benjamin Gaignard , Christopher Obbard , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Jonas Karlman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 6/9] media: dt-bindings: rockchip,vdec: Add RK3288 compatible Date: Sun, 5 Nov 2023 23:36:13 +0000 Message-ID: <20231105233630.3927502-7-jonas@kwiboo.se> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231105233630.3927502-1-jonas@kwiboo.se> References: <20231105233630.3927502-1-jonas@kwiboo.se> MIME-Version: 1.0 X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 149.28.215.223 X-ForwardEmail-ID: 654827241b004d4cddbe0c9e X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231105_153715_761802_00124692 X-CRM114-Status: UNSURE ( 9.10 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add a RK3288 compatible for a version of the Rockchip VDEC IP that only support HEVC decoding. Signed-off-by: Jonas Karlman Acked-by: Conor Dooley --- Documentation/devicetree/bindings/media/rockchip,vdec.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/rockchip,vdec.yaml b/Documentation/devicetree/bindings/media/rockchip,vdec.yaml index 08b02ec16755..0f00e9c86737 100644 --- a/Documentation/devicetree/bindings/media/rockchip,vdec.yaml +++ b/Documentation/devicetree/bindings/media/rockchip,vdec.yaml @@ -16,7 +16,9 @@ description: |- properties: compatible: oneOf: - - const: rockchip,rk3399-vdec + - enum: + - rockchip,rk3288-vdec + - rockchip,rk3399-vdec - items: - enum: - rockchip,rk3228-vdec From patchwork Sun Nov 5 23:36:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Karlman X-Patchwork-Id: 13446177 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 AA130C4167D for ; Sun, 5 Nov 2023 23:37:46 +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=3cajnrfbj5Wx6z3SarRX+eqApzwD8mDY3AwfChQhyxU=; b=43EqJUSiC947Vl +4YRksXkeF6OjPXcT1djB1b8UTqnEORHADQfWXV5HQnDODBCs2Qq1e/eNafa9EFjycxxwow2HlUxt T9aVgJpg/FK3l1528mkeQ7Bh3g5VQj5L/zz1n6B+G2DetUuBun77a7mptaYAB1MG2f9nUcvEot9wb h668+DX0nDLY4ioECpETl2ql9nfNXPRg/HGJ/CQO+oYx03ar9o8z42lolRgN5eam1d9SgZS7jveAY Z5SRm5K+99IdvSspDv+LBL2AMBQLIOJZ4+X4XxrtT6xwpWMOW/s0XKSKKufvPoBpl+1T4dfTAm5qu h1DoliynsruZwGHANQ8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qzmgF-00FdKS-13; Sun, 05 Nov 2023 23:37:23 +0000 Received: from smtp.forwardemail.net ([149.28.215.223]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qzmgD-00FdJ9-1y; Sun, 05 Nov 2023 23:37:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1699227433; bh=lwv4Dikhxy25O18egd5yTFSrEBYSBkOsdKQ7nX6VsKs=; b=B7C6swaBQFQSIxCMkRIiHOtBleUZKdIuNo2E4XTTuN/gzYueGRE1ZeaOv+HRgNWXBBf56ElaN 38OGuiOUwOu33WFXKYt41JrCY7IOPUd0ofskkRL79KrBTls+1Mgjj/3CNO0ay18GJMDHkfOBdwE A7vi2xuEVBD12dNes3m+gzgMPL1Vu5Dy/3F8ukT3RLSqquuq8nqWdYNNN0z6nCuukv/VIACGaOR dLgyOotKRuKkWMxufmSTIob2yP67zaRQr8h4nD/dbjF/aVQIGyqIrHmpMDXQSy2/oqV+y75Pz1b VOdrGLFRT1s6qX7f9WqavpexJa5Inwpc9row4kv5YuHQ== From: Jonas Karlman To: Ezequiel Garcia , Mauro Carvalho Chehab , Hans Verkuil , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: Alex Bee , Nicolas Dufresne , Sebastian Fricke , Benjamin Gaignard , Christopher Obbard , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Jonas Karlman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 7/9] ARM: dts: rockchip: Add vdec node for RK3288 Date: Sun, 5 Nov 2023 23:36:14 +0000 Message-ID: <20231105233630.3927502-8-jonas@kwiboo.se> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231105233630.3927502-1-jonas@kwiboo.se> References: <20231105233630.3927502-1-jonas@kwiboo.se> MIME-Version: 1.0 X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 149.28.215.223 X-ForwardEmail-ID: 654827281b004d4cddbe0cab X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231105_153721_688339_42F61CC7 X-CRM114-Status: GOOD ( 11.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Alex Bee RK3288 contains a Rockchip VDEC block that only support HEVC decoding. Add a vdec node for this. Signed-off-by: Alex Bee Signed-off-by: Jonas Karlman --- arch/arm/boot/dts/rockchip/rk3288.dtsi | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rockchip/rk3288.dtsi b/arch/arm/boot/dts/rockchip/rk3288.dtsi index cb9cdaddffd4..cdeb9c72dae1 100644 --- a/arch/arm/boot/dts/rockchip/rk3288.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3288.dtsi @@ -1277,6 +1277,21 @@ vpu_mmu: iommu@ff9a0800 { power-domains = <&power RK3288_PD_VIDEO>; }; + hevc: video-codec@ff9c0000 { + compatible = "rockchip,rk3288-vdec"; + reg = <0x0 0xff9c0000 0x0 0x440>; + interrupts = ; + clocks = <&cru ACLK_HEVC>, <&cru HCLK_HEVC>, + <&cru SCLK_HEVC_CABAC>, <&cru SCLK_HEVC_CORE>; + clock-names = "axi", "ahb", "cabac", "core"; + assigned-clocks = <&cru ACLK_HEVC>, <&cru HCLK_HEVC>, + <&cru SCLK_HEVC_CABAC>, <&cru SCLK_HEVC_CORE>; + assigned-clock-rates = <400000000>, <100000000>, + <300000000>, <300000000>; + iommus = <&hevc_mmu>; + power-domains = <&power RK3288_PD_HEVC>; + }; + hevc_mmu: iommu@ff9c0440 { compatible = "rockchip,iommu"; reg = <0x0 0xff9c0440 0x0 0x40>, <0x0 0xff9c0480 0x0 0x40>; @@ -1284,7 +1299,7 @@ hevc_mmu: iommu@ff9c0440 { clocks = <&cru ACLK_HEVC>, <&cru HCLK_HEVC>; clock-names = "aclk", "iface"; #iommu-cells = <0>; - status = "disabled"; + power-domains = <&power RK3288_PD_HEVC>; }; gpu: gpu@ffa30000 { From patchwork Sun Nov 5 23:36:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Karlman X-Patchwork-Id: 13446176 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 2C5FBC4332F for ; Sun, 5 Nov 2023 23:37:46 +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=tsBON5z0l9UXUCxhcHyLTCT5ZzQ4GCRHLM5TR4H1Mug=; b=G+Uu2LKpoctfzC ykxEavWx7E+M8ITy5yX1w/Io2i1OSLCQ/4Ok5UaTi0n3vO2IOLSiemlPAepkxKwWEBWJo07iVC1C8 ayy2Xi04PICAxUC60XK3o0m7hZumoX51G7uPq0XZWoVnFp3GmsmGKpzs8KsH1JTzjLCmcNQO8uCDe pIBZoDpbKfVhxfdircer9N4F9fmZJwU3/SE2o0kahdEzSao8/9KcThxq/IsXYZDYsG4o9bVlGalDx VcaWf4wz4PYpX+PCBASGXssPTU6o+O1T3vtzpuwAQgXt8lrCpr5FsqO9du8VDUQ0lVTgQTcngQimL QPBgKo/IBuZjMxvQR7HQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qzmgH-00FdMT-1w; Sun, 05 Nov 2023 23:37:25 +0000 Received: from smtp.forwardemail.net ([149.28.215.223]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qzmgF-00FdJs-11; Sun, 05 Nov 2023 23:37:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1699227437; bh=o5ziTLSsHO2+zMABFhPKuCD5zrXCPdvx5uCAiQ5gwDc=; b=sXgR1cliebbC1WiVmU0GCDa3yRVGCBFosbu0l2DwtxPUP0+wMUSdsxgsCagP9xJCnzbjVFfHY ZmL5diGzo0QkFZp6d2Pbe7EqUkhjkxoT3YsA2OXwuWfuANq0UE+zwnr54474rPH58jixfgfl1SE BYcFHOfy2ah5N1JbuTLm7E6zPIUh8/138aaK3JZk5XxssK25S4AGdQjyRpIA0MqCTxbGAHtmYtk ITZp83hCkHwfU0rdy8HPq3pnKJh/Ht3v5u9pZ5dDUblu6F9Itf5uXLfyAI5QgrtXUa8rB4n84ri PwpYksBnHqKKwWl1d1yw1qjx11/AW36TftKrn7XgOPEA== From: Jonas Karlman To: Ezequiel Garcia , Mauro Carvalho Chehab , Hans Verkuil , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Christopher Obbard Cc: Alex Bee , Nicolas Dufresne , Sebastian Fricke , Benjamin Gaignard , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Jonas Karlman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 8/9] arm64: dts: rockchip: Expand reg size of vdec node for RK3328 Date: Sun, 5 Nov 2023 23:36:15 +0000 Message-ID: <20231105233630.3927502-9-jonas@kwiboo.se> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231105233630.3927502-1-jonas@kwiboo.se> References: <20231105233630.3927502-1-jonas@kwiboo.se> MIME-Version: 1.0 X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 149.28.215.223 X-ForwardEmail-ID: 6548272d1b004d4cddbe0cb8 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231105_153723_399782_117BD147 X-CRM114-Status: GOOD ( 11.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Expand the reg size for the vdec node to include cache/performance registers the rkvdec driver writes to. Fixes: 17408c9b119d ("arm64: dts: rockchip: Add vdec support for RK3328") Signed-off-by: Jonas Karlman --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index e729e7a22b23..cc8209795c3e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi @@ -668,7 +668,7 @@ vpu_mmu: iommu@ff350800 { vdec: video-codec@ff360000 { compatible = "rockchip,rk3328-vdec", "rockchip,rk3399-vdec"; - reg = <0x0 0xff360000 0x0 0x400>; + reg = <0x0 0xff360000 0x0 0x480>; interrupts = ; clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>, <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>; From patchwork Sun Nov 5 23:36:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Karlman X-Patchwork-Id: 13446178 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 6676DC4332F for ; Sun, 5 Nov 2023 23:37:54 +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=d8C5DNj8HnsG9sVlSTee78afiLkb8BGkPqYv2EVMVy8=; b=uO3kiyunjcd0hR W19IzurtuCHA7KrbaDPTTq3WB63V5+Qmyt7592B+jmr15MlOCbAz1jedsO7AHASuLerCIzAmIx4r2 5Se2TRzeZ5H66GxrvRlqgnFIyzPVK18yyWTQTcIt7M0ZCzjJgTuQ9hwsdH2m05jAs4ZrHQLIaOVuL Gx/nRJt/cca78QjbI5aUpC+YathxMZov36zec8Tz4SXc+eG37Dko4pdmbciHmlnY13LX8zxc67dyj mDzl1DhEPLna0CPTNfpB684OSrL4h0XHIuEzmc4k68Lnl6ejCt2LzSgvI3nrrsNuLzX3AShy9FKJN ED1Jq1vf7EpXTN/gdUpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qzmgN-00FdRE-1u; Sun, 05 Nov 2023 23:37:31 +0000 Received: from smtp.forwardemail.net ([149.28.215.223]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qzmgL-00FdOg-0O; Sun, 05 Nov 2023 23:37:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1699227442; bh=+9psb6fvO/n4Pf5KwngPKt056it3imN4XslBdOhIWW8=; b=wbw0cw+6J/HILQAveE+KaJUcjQ2UgDz8aMW0kzQ1p4NeJ+RE4yGowxiEl+rEQV3wwvIJXW1Fb GzCDK5S1rf4t/9unO5wtR6TaUP7hKhB6Ed6A1mNWcFc6XEpuGqmUsIup9TyU/oapYKv7/KfqcFa mFrKVjfdp6E8sUAgPkCTS8Xq1w7gvZ0DgjoNMbM05a6HkV8zc413iixjJyqo2UdIiRT5fXNM42e rwcBziSvq09A29+CkzLP6AxNteNnVVGq4ueMe7JaUI4kmH6Lujkp/Rm+hTCBIWtkaSuOruzYK3f DvhclUbeSn2VeIQ5KQQSmqnLpZKauqDWBQZP+MBKfSCg== From: Jonas Karlman To: Ezequiel Garcia , Mauro Carvalho Chehab , Hans Verkuil , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Boris Brezillon Cc: Alex Bee , Nicolas Dufresne , Sebastian Fricke , Benjamin Gaignard , Christopher Obbard , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Jonas Karlman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 9/9] arm64: dts: rockchip: Expand reg size of vdec node for RK3399 Date: Sun, 5 Nov 2023 23:36:16 +0000 Message-ID: <20231105233630.3927502-10-jonas@kwiboo.se> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231105233630.3927502-1-jonas@kwiboo.se> References: <20231105233630.3927502-1-jonas@kwiboo.se> MIME-Version: 1.0 X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 149.28.215.223 X-ForwardEmail-ID: 654827311b004d4cddbe0cc5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231105_153729_207846_68D82779 X-CRM114-Status: GOOD ( 10.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Alex Bee Expand the reg size for the vdec node to include cache/performance registers the rkvdec driver writes to. Also add missing clocks to the related power-domain. Fixes: cbd7214402ec ("arm64: dts: rockchip: Define the rockchip Video Decoder node on rk3399") Signed-off-by: Alex Bee Signed-off-by: Jonas Karlman --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 9da0b6d77c8d..a4b693b710a5 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1109,7 +1109,9 @@ power-domain@RK3399_PD_VCODEC { power-domain@RK3399_PD_VDU { reg = ; clocks = <&cru ACLK_VDU>, - <&cru HCLK_VDU>; + <&cru HCLK_VDU>, + <&cru SCLK_VDU_CA>, + <&cru SCLK_VDU_CORE>; pm_qos = <&qos_video_m1_r>, <&qos_video_m1_w>; #power-domain-cells = <0>; @@ -1385,7 +1387,7 @@ vpu_mmu: iommu@ff650800 { vdec: video-codec@ff660000 { compatible = "rockchip,rk3399-vdec"; - reg = <0x0 0xff660000 0x0 0x400>; + reg = <0x0 0xff660000 0x0 0x480>; interrupts = ; clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>, <&cru SCLK_VDU_CA>, <&cru SCLK_VDU_CORE>;