Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp959027ybb; Fri, 3 Apr 2020 15:15:28 -0700 (PDT) X-Google-Smtp-Source: APiQypIT2s256iz+5q93FOccxU3kfOET+F35WgLk/RLIkF64c4kmyrdSbL8bhVcwXonCQRn6F45N X-Received: by 2002:a9d:2aca:: with SMTP id e68mr8503147otb.324.1585952128503; Fri, 03 Apr 2020 15:15:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585952128; cv=none; d=google.com; s=arc-20160816; b=joAmZmFS9iJ0wPgMG5c7SFvnXZUGo3gpa1MBRzcMvUmqCvIB9xE/wczeiPwjt1WnBS Ojw+XSmNNW+cuBqXYWYov9tDVBZuuaAgqctde0kWsJSzPr+J2DcoLzbhpMsvb/nlgc08 lKNTE89FlNRSAbhIS+iVYrczFXhMCFgUr2vlnnmkwTkwYsKWH0uxQrJt+dT2aY3ezYvp +BmKfjH9+PQD3BZV2aebTqOPsIHgAHyRIl1GJF30ZEZgadoT5NrK/1o4ICK9BfchV4LB yxQtkHGm3Odg2MEdgBlhu5tnjef34zCiQDgziVmov2pHhhrsFfGImx8Q4YWnEpV3t35k mtiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ecCTyruynsZpGguv7iumYj68JXPq/F4Zes6HZAaLfeg=; b=Ql1Ubr7I7xcUh92DLLGCAKae0gIdeMoZe26leZy70pHfYyUoos2j3UlYSdrx+0h7mr O7SsahM+Dao7qJGiMBHeYzMRkJxDAn2Y9X69Ed3LVsEvW0/QCGTNhwV/SqLXgpiLvXrp gLxKq5db+KbL5m627Ny0a9oNzV/N9WYdglxkxOLVDVG7zAz4s/13JdZaBaM2fRs+ls3S V9IZis7SnPbz0J5P9ypq/Bahf8PTYdkzrcLWl8pLW7gto/2pKBOef1OmiFheIZwKEAq6 bJ4itVtVhbIUukiLm1U4ZBc3TmLGupBhwlyYBM0RjZ9j31h3BNYyPDFvj+EbtmXJqte+ ukLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x8si4441528otq.313.2020.04.03.15.15.16; Fri, 03 Apr 2020 15:15:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729073AbgDCWO1 (ORCPT + 99 others); Fri, 3 Apr 2020 18:14:27 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:32800 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729018AbgDCWO1 (ORCPT ); Fri, 3 Apr 2020 18:14:27 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 4017E2986B2 From: Ezequiel Garcia To: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Tomasz Figa , kernel@collabora.com, Jonas Karlman , Heiko Stuebner , Hans Verkuil , Alexandre Courbot , Jeffrey Kardatzke , Boris Brezillon , Ezequiel Garcia Subject: [PATCH v8 5/5] arm64: dts: rockchip: rk3399: Define the rockchip Video Decoder node Date: Fri, 3 Apr 2020 19:13:45 -0300 Message-Id: <20200403221345.16702-6-ezequiel@collabora.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200403221345.16702-1-ezequiel@collabora.com> References: <20200403221345.16702-1-ezequiel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Boris Brezillon RK3399 has a Video decoder, define the node in the dtsi. We also add the missing power-domain in mmu node and enable the block. Signed-off-by: Boris Brezillon Signed-off-by: Ezequiel Garcia -- v8: * None. v7: * As noted by Johan Jonker, fix node order. --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 33cc21fcf4c1..dfb737e8ff31 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1278,6 +1278,18 @@ vpu_mmu: iommu@ff650800 { power-domains = <&power RK3399_PD_VCODEC>; }; + vdec: video-codec@ff660000 { + compatible = "rockchip,rk3399-vdec"; + reg = <0x0 0xff660000 0x0 0x400>; + interrupts = ; + interrupt-names = "vdpu"; + clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>, + <&cru SCLK_VDU_CA>, <&cru SCLK_VDU_CORE>; + clock-names = "axi", "ahb", "cabac", "core"; + power-domains = <&power RK3399_PD_VDU>; + iommus = <&vdec_mmu>; + }; + vdec_mmu: iommu@ff660480 { compatible = "rockchip,iommu"; reg = <0x0 0xff660480 0x0 0x40>, <0x0 0xff6604c0 0x0 0x40>; @@ -1285,8 +1297,8 @@ vdec_mmu: iommu@ff660480 { interrupt-names = "vdec_mmu"; clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>; clock-names = "aclk", "iface"; + power-domains = <&power RK3399_PD_VDU>; #iommu-cells = <0>; - status = "disabled"; }; iep_mmu: iommu@ff670800 { -- 2.26.0.rc2