Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6785417imm; Tue, 28 Aug 2018 00:36:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYggUusHvKx/mJc8/1ZpcKmedFwPgJqIHiF+gmIF1xKY88lV3I/M0UxTWE7zXEJITXcm7ng X-Received: by 2002:a17:902:b40e:: with SMTP id x14-v6mr363685plr.314.1535441817495; Tue, 28 Aug 2018 00:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535441817; cv=none; d=google.com; s=arc-20160816; b=iZZJH7ROcQwOLmQ1yz+5d265lRyRwosP1oorLuJGWZYLK9+oUgwxgzkat2C9t/D+5Z uQlT9igt48ILOla5eSgjNXWUU1vJa89oAhvil5acIehzOwyZbbrruUa1liAxqj/Ws6su tUyn7/QCmU5ZpSdEdaoay43+OONSONl1cMxE40XxWCVTGtxlQlriQ4GMIi3jNH52EOqx TiUkBoHTyQ+BbnP69mQtXHmroAoi1EvRIDkCVFTINXHliJXUnBdBzuD7xLCx4KDLuZfv EcvLBNkmzBPuhT/2zBis2JiEXAQT/ta7jak7bXieKjTBYQQ6o7Lz40+TnGscxYsA6QLR BxfA== 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=4Yai3zdpYiMjEGsVYz+DRmVt+CL0GVXasfTxg9ZxodE=; b=URgXxmHo6M1DJN77QS0Y07cEXWo8cB+ez3t6TyDJZZ5OHQbl2oep9yogg32pTPnXdQ opk7RutiqItluc8k6JfluFqRXOXEKr0nULezNk/KR3QfOCNquvrxPXHt8SBGUKCuiEbk /BqFWhdkPeDdfOUhmLJGO5aq7hO2dYCkVPeQ5/CWWI4t+249CF5sdfYMfTgX+LkWm3aX KfqtgX3TKY+p3/e/XkWjHGQWdxKBSbX6SlXNXNW7sHCpG+HEpvDbcenJdSP9dmpUe5Pp bK5aER3mt7Jk+k5/cDG5wD9rliiLKXBOOhO5hcyDL6eb+1LEWyNHKb1Mdd9i3UZKhx8e ByAQ== 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 w5-v6si350737pge.395.2018.08.28.00.36.42; Tue, 28 Aug 2018 00:36:57 -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 S1727482AbeH1LZo (ORCPT + 99 others); Tue, 28 Aug 2018 07:25:44 -0400 Received: from mail.bootlin.com ([62.4.15.54]:33497 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727111AbeH1LZY (ORCPT ); Tue, 28 Aug 2018 07:25:24 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 332E7208A0; Tue, 28 Aug 2018 09:35:04 +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 C188A22A45; Tue, 28 Aug 2018 09:35:02 +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 7/8] ARM: dts: sun8i-a33: Add Video Engine and reserved memory nodes Date: Tue, 28 Aug 2018 09:34:23 +0200 Message-Id: <20180828073424.30247-8-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 the A33. 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/sun8i-a33.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/arch/arm/boot/dts/sun8i-a33.dtsi index 8d278ee001e9..a212fbee14bc 100644 --- a/arch/arm/boot/dts/sun8i-a33.dtsi +++ b/arch/arm/boot/dts/sun8i-a33.dtsi @@ -181,6 +181,21 @@ reg = <0x40000000 0x80000000>; }; + 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; + }; + }; + sound: sound { compatible = "simple-audio-card"; simple-audio-card,name = "sun8i-a33-audio"; @@ -245,6 +260,17 @@ }; }; + video-codec@01c0e000 { + compatible = "allwinner,sun8i-a33-video-engine"; + reg = <0x01c0e000 0x1000>; + clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>, + <&ccu CLK_DRAM_VE>; + clock-names = "ahb", "mod", "ram"; + resets = <&ccu RST_BUS_VE>; + interrupts = ; + allwinner,sram = <&ve_sram 1>; + }; + crypto: crypto-engine@1c15000 { compatible = "allwinner,sun4i-a10-crypto"; reg = <0x01c15000 0x1000>; -- 2.18.0