Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp610946imm; Wed, 25 Jul 2018 03:05:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfrz9FKL6UqLizhGIpd6FxWN0nluIvc5/IiaLoIknal09RzqEOxJZZXqnT0oXW5gHkXwQkJ X-Received: by 2002:a17:902:7c8e:: with SMTP id y14-v6mr19927604pll.265.1532513152787; Wed, 25 Jul 2018 03:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532513152; cv=none; d=google.com; s=arc-20160816; b=DUpvrtyrCVJhuO9IcOxo5OW2ZPMXTU4yz3FYC8/asNdz63Zub7TttbOuszDcdzYpt4 GwYw0iudtsAdCdW4YUkqO75YDhe1cMTahj7oX38/+nSqlOZBnfuVNES7rVTKWvE4I5vM Mf+95YNNUtvffj/XfQt6JpkXokgpejyrJFUUlaR7ZCHKIppQ20J8Bt2XW/tHl1XOAcO4 ZP+uPAK2D7SVAgDqXh7JZ8NUxkyGViOD+S2lqh3EzJrhWdKeiNO4PHWMNiEzdOZ3UJv0 vywsh9XiZS0STugF81VPTbrbaZFul92jU4rkzw+qYXusXHd1M+ggfu/sqkwXMjhD+caJ hr8w== 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=cDSgvFxv/IY+tUmobay8RS++O/WFKscXUyHSsZPu3JgdK3jtJhe2+nj2vdjrcAyHB0 7guZurjp4WIvYvbrSTLc9qnzpHMtN3NdfPjwzBWLEUfuGJ5gR41jH+Enro0tO7G+VHzb MNVNdZBiNAy4X6xYXD/44HKX/neb7ninmKZFkOs4WPR3JBYzmFDqnCLUg3K8osrzVabT 9vTtWXTqe3NJ6mBnOhGQwsnKvwtS1PnJgiqQBRg+w52eilOA7SC92kH24PEIJDPHRhSx KE49BxfwLLWYlIuL+jMj/btu4XnzFtjdfLX+Ccv1L6XRitrCZZb9rbFMUZHkWjgEaAD4 OzfA== 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 i6-v6si13635182pgt.352.2018.07.25.03.05.37; Wed, 25 Jul 2018 03:05:52 -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 S1728975AbeGYLPm (ORCPT + 99 others); Wed, 25 Jul 2018 07:15:42 -0400 Received: from mail.bootlin.com ([62.4.15.54]:57840 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728703AbeGYLPl (ORCPT ); Wed, 25 Jul 2018 07:15:41 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 20BC5209BC; 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 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 A5007207B3; Wed, 25 Jul 2018 12:04:22 +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 5/8] ARM: dts: sun5i: Add Video Engine and reserved memory nodes Date: Wed, 25 Jul 2018 12:02:53 +0200 Message-Id: <20180725100256.22833-6-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 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