Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6785388imm; Tue, 28 Aug 2018 00:36:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdblVdtK8lu205SZNy5ZjOqm2HTnZ+Wqh5tHc6jY4A5xguPuJ3ta8XS0yuSstkdWnnGopv6Q X-Received: by 2002:a62:d94:: with SMTP id 20-v6mr305817pfn.202.1535441815784; Tue, 28 Aug 2018 00:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535441815; cv=none; d=google.com; s=arc-20160816; b=ZmMBRQ6TsMAyeJBJFMf1s1bkDQg9BGhfN94Nm+xDo++qqkF81YaG4McHvdThm55epj 2c3W/hR3yGNyoZGeTd2rywdlN2Lsv+XtkkKVw0nFgJ1TBJVfCDqhW3OnV6hL5lTdoKFP Oxv0oWDpVyZCl+HX5V101aln6TS0kgtb/g7btGI8n32lOaPvuUh2OwzvZCo5xyd0/m3N cFsIV7gHPKuxBYOUC3MF/KNc+60zjGqyqZUADr3+3qBMuY37u3S+hT1w93wYidS8xa4u 9hKXQNLZcQPz/Lke/7I9d4fEl4XGv2lxgGGlxj2SIqnPaVoLEITkyb63e7VTG3wpMXRW isIw== 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=GR5JJ8DNkIBDOu1UFo+smslnanCO/X00h6h70dyj69k=; b=ivxLdtUCi1bOAkogSHXeT0Zz2FZHsT+od1Lm89N5L+0c9DWhAkKl428S/1uIdIoiOH dlNiExu4yMneEslarx/4FJKRwVR0AdIUthmroeLEq494koXaIb4kzN3+BT1eSiiKRtoT 6kH+mhNKiB5NcrGmHvcG4Hf/GaPDKC8oT8UMbWdc6FhZZ/unOnEk67NdKIijsI3KJeQx g6igKgwfdQqM9uGtP8B4oMVwkVcp0Pp+JPZO2vXQWNxk3Q2z07hg/+RKbe6p5Hs98zDM Ib9hbg0iI3fmDjPL+boyQE2CYwB7sKRi8AG7AUUZn7mA6t2P2Z838b9HAZVsMzxyEWO/ 1aeQ== 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 h1-v6si377577pld.152.2018.08.28.00.36.40; Tue, 28 Aug 2018 00:36:55 -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 S1727462AbeH1LZo (ORCPT + 99 others); Tue, 28 Aug 2018 07:25:44 -0400 Received: from mail.bootlin.com ([62.4.15.54]:33472 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727337AbeH1LZY (ORCPT ); Tue, 28 Aug 2018 07:25:24 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id C40DF22A39; 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 5A7D922A41; 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 6/8] ARM: dts: sun7i-a20: Add Video Engine and reserved memory nodes Date: Tue, 28 Aug 2018 09:34:22 +0200 Message-Id: <20180828073424.30247-7-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 A20. 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/sun7i-a20.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 38999d791cb5..55517b068009 100644 --- a/arch/arm/boot/dts/sun7i-a20.dtsi +++ b/arch/arm/boot/dts/sun7i-a20.dtsi @@ -161,6 +161,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; + }; + }; + timer { compatible = "arm,armv7-timer"; interrupts = , @@ -466,6 +481,17 @@ }; }; + video-codec@1c0e000 { + compatible = "allwinner,sun7i-a20-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 = ; + allwinner,sram = <&ve_sram 1>; + }; + mmc0: mmc@1c0f000 { compatible = "allwinner,sun7i-a20-mmc"; reg = <0x01c0f000 0x1000>; -- 2.18.0