Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1107213imm; Thu, 6 Sep 2018 15:43:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaxjFEd86hS0YUjLqzlHeJORUmlrmnPYUg2oeACisxrTlwrbesUicizGpKRrkpAycQ8PJTl X-Received: by 2002:a63:344b:: with SMTP id b72-v6mr5196191pga.184.1536273822895; Thu, 06 Sep 2018 15:43:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536273822; cv=none; d=google.com; s=arc-20160816; b=toVzvMPQSSTUGD8yJ3OAYFEj9rr/qekyl1yDZvoGYfGPop0JaPqzUXkLL22QPH7R1/ dG6VNB3rn2y7f/499vImdjDr/e6mAXO4gGufBflrXNymi2RoGOLlsn1qLr1dNUrhBfWF PkXjxWcng0L2z8Fcf+pNOAqgx1ugLxcfu3HLZFcFgYvzdaXCHa+YsCELaD/FT+hARMgg X94ql3xhtWKDQrydrfLjQ5cqpeksnNghZOwMupVNP+wIKgBiknasdywxuz/oTNeDDb5Y 9eoslbgG2n1HyvRd2putJQrSkBWSvPZGYRU+xiKZcbsE0ST3zpvPQp6WSeHiD3jJtAwj bOtA== 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; bh=DetRyCp/iNiwlwX4q/jlBTqn4q5DV7vpKKHvYd2Rmjo=; b=Imn7cQKJSAbNnNDpEjRR3KNC/6z0b88SyFqoSxV7IBLPnhWO3KYZ0kzuzD/1Xspjib Bp+Uo3yE8I+I9bvDA6rY4gtubOCdxr1m2JwJOKrwZ49vIVSlqlq7FHPAWU6/U2RpOl55 ZRpla5pNxsGTUPCpqQ6viY9kmlc0kWZyKHCRqe5xiDaZd51lyhM7Zrz9r4YLsre4lwN/ qwqZWi1njqpJEUa8p0mRgG7Rgo5318dyl2nHd1AKE+MLx4f5ABQeQXYgMWbrxStzQCod vdMRUklVLCFS5YWfZpzzpeUGdc5kwrIIFVaRFG7+95X/xp9SPmyRtUQlZFzQRF0T7AbH LU0Q== 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 h8-v6si6784272pli.14.2018.09.06.15.43.27; Thu, 06 Sep 2018 15:43:42 -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 S1728854AbeIGDOq (ORCPT + 99 others); Thu, 6 Sep 2018 23:14:46 -0400 Received: from leonov.paulk.fr ([185.233.101.22]:56782 "EHLO leonov.paulk.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726086AbeIGDOq (ORCPT ); Thu, 6 Sep 2018 23:14:46 -0400 Received: from gagarine.paulk.fr (gagarine [192.168.1.127]) by leonov.paulk.fr (Postfix) with ESMTPS id 77885BFEB9; Fri, 7 Sep 2018 00:37:05 +0200 (CEST) Received: by gagarine.paulk.fr (Postfix, from userid 114) id 514DCC0F67; Fri, 7 Sep 2018 00:37:04 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on gagarine.paulk.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 Received: from localhost.localdomain (collins [192.168.1.129]) by gagarine.paulk.fr (Postfix) with ESMTP id 8E638C0F61; Fri, 7 Sep 2018 00:25:13 +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, Randy Li , Hans Verkuil , Ezequiel Garcia , Tomasz Figa , Alexandre Courbot , Philipp Zabel , Laurent Pinchart , Sakari Ailus Subject: [PATCH v9 7/9] ARM: dts: sun7i-a20: Add Video Engine and reserved memory nodes Date: Fri, 7 Sep 2018 00:24:40 +0200 Message-Id: <20180906222442.14825-8-contact@paulk.fr> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180906222442.14825-1-contact@paulk.fr> References: <20180906222442.14825-1-contact@paulk.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paul Kocialkowski 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 Acked-by: Maxime Ripard --- 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 9c52712af241..02e40da9f028 100644 --- a/arch/arm/boot/dts/sun7i-a20.dtsi +++ b/arch/arm/boot/dts/sun7i-a20.dtsi @@ -174,6 +174,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 = , @@ -479,6 +494,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