Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6785908imm; Tue, 28 Aug 2018 00:37:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaV6OJ4e4tBB27CTUkBLi1d0gWIYulw/l9jZ0y6/I6YcR2RWZRov+rJGNeFkd8F7NlnnBFp X-Received: by 2002:a17:902:5998:: with SMTP id p24-v6mr394145pli.36.1535441858413; Tue, 28 Aug 2018 00:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535441858; cv=none; d=google.com; s=arc-20160816; b=fcKcoO9ZrFY5PEWm0OGEA2tL8tauEcHwQEjHgtiJhdhqZhXm+PjQHo8DHhITFjDyj2 qfPWp5/rFbbo1Ou1z3hmpWVC//rckupdx1H6CzQnIclS1EKBcZd4+93hn5kZ/MYifGfA kQSJriEbCjCkxo91+/oaGPz4SLDf+Au1SydrgVl9PVvcoGhCDHFYxq1VYsQbdowRkQQo JUXyKBXZV7j5pM4oiLA0EXJx35NCFeMPkYvyl0f+VzWa2tYsXEkQiMYprfjVnbTl40VJ 067CnfziIbskedylnxHM3MdX8TNXIsa3PYX0ji+vDyvI/wtGelwQ0Y+WAYUvuu9y5hxs XUuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=thz1oLC5ah5KFGD8tGbuaAUEYs1mv2x5d4zD4AVysEY=; b=Se/hpL8JUEDCWlqrhGAjGKLkg4/ZlZPhQajJxTcA9RpgaeWhQ0zbKuoBwx5iwLRoKK oIGcMcBnSrwKhJHniMQnS534HYwund4MT9xWr71QNpDLt96QIWkOqqw1a4gp3/p4RdXu tOYKfwmm+rGarfSzGD3PilMLZlkkYbsAEa9wcc1h9J7j6Fg0LHm3ib3x2qRh+PsLgE35 buT5nhODBpgm1OksZ6RDBKwSr28iW3+PSsbKv+wMo42ntNXND5WU7Lu4OLQLQbbhrW5M hAEC6dhWGOXtkHR/v650nAKRefJ/WP/GITmkJDIJYfM2dcAPOqyBFqCf8du2D6LwvQMe IbdA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d128-v6si273133pfc.211.2018.08.28.00.37.23; Tue, 28 Aug 2018 00:37:38 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727422AbeH1LZZ (ORCPT + 99 others); Tue, 28 Aug 2018 07:25:25 -0400 Received: from mail.bootlin.com ([62.4.15.54]:33453 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727145AbeH1LZY (ORCPT ); Tue, 28 Aug 2018 07:25:24 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id A386222A4E; Tue, 28 Aug 2018 09:35:03 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (AAubervilliers-681-1-53-19.w90-88.abo.wanadoo.fr [90.88.170.19]) by mail.bootlin.com (Postfix) with ESMTPSA id E896422A39; Tue, 28 Aug 2018 09:35:01 +0200 (CEST) From: Paul Kocialkowski To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org Cc: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Greg Kroah-Hartman , Paul Kocialkowski , Thomas Petazzoni , Randy Li , Hans Verkuil , Ezequiel Garcia , Tomasz Figa , Alexandre Courbot , Philipp Zabel , Laurent Pinchart , Sakari Ailus , linux-sunxi@googlegroups.com Subject: [PATCH v8 5/8] ARM: dts: sun5i: Add Video Engine and reserved memory nodes Date: Tue, 28 Aug 2018 09:34:21 +0200 Message-Id: <20180828073424.30247-6-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180828073424.30247-1-paul.kocialkowski@bootlin.com> References: <20180828073424.30247-1-paul.kocialkowski@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds nodes for the Video Engine and the associated reserved memory for sun5i-based platforms. Up to 96 MiB of memory are dedicated to the CMA pool. The VPU can only map the first 256 MiB of DRAM, so the reserved memory pool has to be located in that area. Following Allwinner's decision in downstream software, the last 96 MiB of the first 256 MiB of RAM are reserved for this purpose. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/sun5i.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/sun5i.dtsi b/arch/arm/boot/dts/sun5i.dtsi index 51dcefc76c12..6a9d6d185ade 100644 --- a/arch/arm/boot/dts/sun5i.dtsi +++ b/arch/arm/boot/dts/sun5i.dtsi @@ -108,6 +108,21 @@ }; }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + /* Address must be kept in the lower 256 MiBs of DRAM for VE. */ + cma_pool: cma@4a000000 { + compatible = "shared-dma-pool"; + size = <0x6000000>; + alloc-ranges = <0x4a000000 0x6000000>; + reusable; + linux,cma-default; + }; + }; + soc@1c00000 { compatible = "simple-bus"; #address-cells = <1>; @@ -295,6 +310,17 @@ }; }; + video-codec@1c0e000 { + compatible = "allwinner,sun5i-a13-video-engine"; + reg = <0x01c0e000 0x1000>; + clocks = <&ccu CLK_AHB_VE>, <&ccu CLK_VE>, + <&ccu CLK_DRAM_VE>; + clock-names = "ahb", "mod", "ram"; + resets = <&ccu RST_VE>; + interrupts = <53>; + allwinner,sram = <&ve_sram 1>; + }; + mmc0: mmc@1c0f000 { compatible = "allwinner,sun5i-a13-mmc"; reg = <0x01c0f000 0x1000>; -- 2.18.0