Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1977562ybb; Sun, 29 Mar 2020 18:53:30 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsfkoXjGwpXWfAGCcmwtpqYcDlHK8AHlrvC8NzwNPwIP/6+nWkwXHe+TfNCnEw8s4+JFZd1 X-Received: by 2002:aca:da57:: with SMTP id r84mr5922737oig.79.1585533209828; Sun, 29 Mar 2020 18:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585533209; cv=none; d=google.com; s=arc-20160816; b=p/dwrnUb6bQ2WqZYxezmwROhNizfKIb9lYKs5jGKuwT0SsjMKJwpUCDMctXLvTQfTB a8Dy0vBarBrYDDH3onXmji2ZD1E5d98lxcOTLUAfledi1AA9hlcyYNeuNOcN2adad10V wTKA62Qo8OT4YJMb2Ac6ltA920ykDXJBLt+p8E2hh0KeruNWVAVV/njDwzAm5KokI8DC UryzBeC0lcedGTqqJjM6HZoerQRCMbWZU2fLpzPNslRS/73ZfvhEtja/jb1cnYqjlbEh S79GGWCDRrzqcWb3AjA9Qn+muvLMVMZP8IbRh7ktkn2N5dEflW7NVV8ZF09EsDh63RlJ bBrw== 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=Q8uZvIpRmxBLs1RtjhVSRFC4CS/86HORFxJPjtVa8HQ=; b=gf7aCd2WuabfjL9p4WZ7we45SmIzmr9wvfUSEMNHOLsk9719uzsUUaNo13YJXA4pmn /+wRRS98dYc7Khiz1UqetKQspeisweO2yI+L9Ofpsd09H4ojliDxdWLR9uK8gs41tuNT NnDHXxTdmgkULnJ+CaKwz6pIcYU4lMpaPHp9l+EWxR3dzrgs7iurGbfg/lVvBukwlX0v lS9pNcJ1g1yaNVyThSy6wWOAVpUkmHnk2fPPDIOwFWbEWDIY1hq4SnR8n+blTOj1gRvf n63Fccv6+ggmgDKp7gCJKggUgc6UNYgTB11eOciYvDXa+kawBlv92uIbTJ+qdglmLtXg CjgA== 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 y5si4617490oiy.150.2020.03.29.18.53.17; Sun, 29 Mar 2020 18:53:29 -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 S1728727AbgC3BrP (ORCPT + 99 others); Sun, 29 Mar 2020 21:47:15 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:53536 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727801AbgC3BrO (ORCPT ); Sun, 29 Mar 2020 21:47:14 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 3469629483D From: Ezequiel Garcia To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Tomasz Figa , Nicolas Dufresne , kernel@collabora.com, Paul Kocialkowski , Jonas Karlman , Heiko Stuebner , Boris Brezillon , Hans Verkuil , Alexandre Courbot , Jeffrey Kardatzke , Mark Rutland , Ezequiel Garcia Subject: [PATCH v7 5/5] arm64: dts: rockchip: rk3399: Define the rockchip Video Decoder node Date: Sun, 29 Mar 2020 22:46:16 -0300 Message-Id: <20200330014616.10621-6-ezequiel@collabora.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200330014616.10621-1-ezequiel@collabora.com> References: <20200330014616.10621-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 -- 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