Received: by 10.192.165.156 with SMTP id m28csp936574imm; Thu, 19 Apr 2018 09:57:33 -0700 (PDT) X-Google-Smtp-Source: AIpwx48vryMOuM9prnJJCu9uTATDyOI/ESq1d7N5ZEuSHLnRKlCiEjjaBLSWbWnjAV+OPvJPHJA3 X-Received: by 2002:a17:902:6045:: with SMTP id a5-v6mr6784577plt.138.1524157053251; Thu, 19 Apr 2018 09:57:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524157053; cv=none; d=google.com; s=arc-20160816; b=VPxaUpR2mo0FzP/V6+Y2qe7e1tOtbTvkRnaLNndPo4vz+9QtamnRZylSCTiY0KpGmt H79TXEtdR4aPm37KZF8auzgIW2xiuuoJDePUw15KltLYvrlPALr24UoczhOflp4wpznn VM3vmInAMCP/qIovfoAQovm4MQOp32b49wDtu7qXik+jXHL59i/s6YJKqSE6GQ7+0VAj U/R/VmhbsocV+KHa8SBk3wotNxy5V5uwWQNT3YEMUEzGUWcYEXZvQPTe/utDqkslL8yg Nx3tLIYqSNhMLQbTUXjh4awC5y0X1txmtU7v1CJE5yelhp9MtWq5i8DeAJ9HB86e2KlT Z0rg== 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=fQc7zNFNqrjtOZ/XCFASNO61cNjzZX1c/TV7Vc+ZphI=; b=D0mBNP1KxXhYpaHT7P2tp3zG3EZMDZp4Ju8sLVtPRRcdUM33Rb0VKZbJLQsCBCDz8l yr4sJqtSnAUBfquyjST7Yfs1znovlPVAw86T+9m1gvT5KI+6xu8AtZAwAoFaoB085IFs 5O/ZQMu6dIyKu4KOJVf6gGZA3k0tksoxBzyeekRcSXrW61UzBgSEutNxKRZBIqZGhP2k C6vz+bk4giJcF63NkXFZ2vjwSwINbeL8NO2VX/ctSP6/abKJIZThaFGpixuVQYRtwwsd z/chWNuz/U2+emzx9wwvtYrTP7/kt6JxKJRorf1FROO/sYybqH6eXZSZBJzJ6ncMY3Xo jW+w== 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 u9-v6si3897755plz.10.2018.04.19.09.57.18; Thu, 19 Apr 2018 09:57:33 -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 S1753517AbeDSPsS (ORCPT + 99 others); Thu, 19 Apr 2018 11:48:18 -0400 Received: from mail.bootlin.com ([62.4.15.54]:42954 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752634AbeDSPq6 (ORCPT ); Thu, 19 Apr 2018 11:46:58 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 07E95208A8; Thu, 19 Apr 2018 17:46:57 +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 (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 8E4AF20146; Thu, 19 Apr 2018 17:46:56 +0200 (CEST) From: Paul Kocialkowski To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Cc: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Pawel Osciak , Marek Szyprowski , Kyungmin Park , Hans Verkuil , Sakari Ailus , Philipp Zabel , Arnd Bergmann , Alexandre Courbot , Tomasz Figa , Paul Kocialkowski Subject: [PATCH v2 09/10] ARM: dts: sun7i-a20: Add Video Engine and reserved memory nodes Date: Thu, 19 Apr 2018 17:45:35 +0200 Message-Id: <20180419154536.17846-5-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180419154124.17512-1-paul.kocialkowski@bootlin.com> References: <20180419154124.17512-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 Allwinner A20. Up to 96 MiB of memory are dedicated to the VPU. 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 | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index bd0cd3204273..cb6d82065dcf 100644 --- a/arch/arm/boot/dts/sun7i-a20.dtsi +++ b/arch/arm/boot/dts/sun7i-a20.dtsi @@ -163,6 +163,20 @@ 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. */ + ve_memory: cma@4a000000 { + compatible = "shared-dma-pool"; + reg = <0x4a000000 0x6000000>; + no-map; + linux,cma-default; + }; + }; + timer { compatible = "arm,armv7-timer"; interrupts = , @@ -451,6 +465,23 @@ }; }; + ve: video-engine@1c0e000 { + compatible = "allwinner,sun4i-a10-video-engine"; + reg = <0x01c0e000 0x1000>; + memory-region = <&ve_memory>; + + clocks = <&ccu CLK_AHB_VE>, <&ccu CLK_VE>, + <&ccu CLK_DRAM_VE>; + clock-names = "ahb", "mod", "ram"; + + assigned-clocks = <&ccu CLK_VE>; + assigned-clock-rates = <320000000>; + + resets = <&ccu RST_VE>; + + interrupts = ; + }; + mmc0: mmc@1c0f000 { compatible = "allwinner,sun7i-a20-mmc"; reg = <0x01c0f000 0x1000>; -- 2.16.3