Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp612077imm; Wed, 25 Jul 2018 03:07:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdyT4UgspdlJuVp3OoWs9HeL4ZL/dLF7qykK4shV03IJzd2UtD8O8YBNvE6zaOcfrqql2+f X-Received: by 2002:a63:f919:: with SMTP id h25-v6mr19317422pgi.401.1532513230704; Wed, 25 Jul 2018 03:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532513230; cv=none; d=google.com; s=arc-20160816; b=nPo/cM+rrqVcOQ9t3qVry5tvkCIw1jnl2Dzol01+BcYciQ36s1/CAOTY9fJQD1nBHh gUhNbqSubX+PmlN/0lUXZ0wqbUwQoRzseipzSSegn+UHROW681NQmOtjkYAmpQO074hO i2NFpZCywl3Zmwx5mWjsKJ30bSoSaEnzfNYkV24zSLFVuPQh5voSMoXbPGHAWXRAyQkp 3XG/otEaVzcKnw1XEhWhNaaiR9Oml74DBfkrorIn8vt9EpOpskuA7zP9mntwyuaLHSg6 j9S55yVPYl/gSLXjQnRfq9BNKpXNjiXd39xcpshuSewgwIk5GJzX13J8d+LQMVvlY7zE tMCA== 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=blmyjc6G0YRAK/Eds++DHMja/9wsV7/iZQMpkp1llTevKFUnopwPStqSIlYsxrSBiV OluipanT0uap+elzSdTuYn1PQbwgtTFCAhIAuR+1k35HnQESe4mAhmZicZRXV07cOifG XNmdLv0I5X2dJKEF1izDTv+MlfbFUwgN2W4j8ZjAtSilgje2tTW1cDNXokVVghYOOpPO mmSePZmm7nkhXvKtzMr5uKuj+36YM69R6O5ULX+CTidJOFIn+620/GYx4SWSgT/JCYCZ aeaRfZuGcAtTZpFPZqm0mbd5c+peUpOBcT8ov43qfwaO7KExg7Q/wQhPliJbJnnmXt2J JbFA== 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 n18-v6si13784688pgg.225.2018.07.25.03.06.55; Wed, 25 Jul 2018 03:07:10 -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 S1728951AbeGYLPm (ORCPT + 99 others); Wed, 25 Jul 2018 07:15:42 -0400 Received: from mail.bootlin.com ([62.4.15.54]:57855 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728923AbeGYLPl (ORCPT ); Wed, 25 Jul 2018 07:15:41 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 23C82207B3; Wed, 25 Jul 2018 12:04:41 +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-78-122.w90-88.abo.wanadoo.fr [90.88.20.122]) by mail.bootlin.com (Postfix) with ESMTPSA id 18DBE20876; Wed, 25 Jul 2018 12:04:23 +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 , linux-sunxi@googlegroups.com, Hugues Fruchet , Randy Li , Hans Verkuil , Ezequiel Garcia , Tomasz Figa , Alexandre Courbot , Philipp Zabel , Laurent Pinchart , Sakari Ailus Subject: [PATCH v6 6/8] ARM: dts: sun7i-a20: Add Video Engine and reserved memory nodes Date: Wed, 25 Jul 2018 12:02:54 +0200 Message-Id: <20180725100256.22833-7-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180725100256.22833-1-paul.kocialkowski@bootlin.com> References: <20180725100256.22833-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