Received: by 10.192.165.156 with SMTP id m28csp866476imm; Thu, 19 Apr 2018 08:50:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx48Zn403pa44HI8O6fnoEutksGe0Z7fVKjqjZ8wMbamarwlzuZ+1ehfOsa+5dPhRNuTonicB X-Received: by 10.98.58.24 with SMTP id h24mr6326332pfa.209.1524153000380; Thu, 19 Apr 2018 08:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524153000; cv=none; d=google.com; s=arc-20160816; b=YWA3v1Ow/iPoAdpj14iDtYWZMViwJbAXvUAKpi4ZHVKCFhGKcrDRtJAiAluqa+AuVb 37naNI1N/8uDgLhtDazHmlMXagRKDJ2nq0is/5TzI5mruFuVY0ucP99W06GaiMKcq4vM UOIwDAitg5A4deZmserxoqJ8UFv1NTTHC4bpIm+goG+lDWimzcv/fMyHWDM8AZq8XgBC M1aZKI0ySUEOUTp+Y1PoRaKvmk7yMBpxvnziKF5yribA6e4gvV3U0puuwro+d0Tr34n9 /OQXENUiRIpvBa119/voWS9BVnftMQaxFYAhTxqf28eBG/vUH9A5Gm9wGmtbrxjoRvFT 8T9w== 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=nmUYFifvMqsro3XtYdW731YpT4odION90mna3Wx+M6M=; b=cuSUw+SXlhTf9Q+gqHS2cNY4ZTyddaBzNZM6y/3sHrw+TWnm5lA21cAwqMYSpqZBNR ST5Rp4ch6tW6gYYf4TZve8vjgQvMin0r138QSkDW1yYiqfBmJyTr/1io5G5SEh3igUDq eso5nm+xeVwuuSB9b41qoSh7qHAVdlu4iAe78d0LblhL8zdPCyz+FqY3GnGUOV3xTuOd KhSaXM236yLQGCbNvuDsi2moo7dBvYUIinNFjQ84IU/aM52WKHs1AXmnWnKtzt+j41+6 lDwErV+EeSQO6s51R8fLNqUaK4/+cxN75j/hK91QA+CH7fVO54P7lZE5NhiTnZ/JXPpg MxCg== 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 i7-v6si3608137plt.95.2018.04.19.08.49.45; Thu, 19 Apr 2018 08:50:00 -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 S1753479AbeDSPrS (ORCPT + 99 others); Thu, 19 Apr 2018 11:47:18 -0400 Received: from mail.bootlin.com ([62.4.15.54]:42975 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753448AbeDSPq7 (ORCPT ); Thu, 19 Apr 2018 11:46:59 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 69F84208C0; 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 EEB7320894; 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 10/10] ARM: dts: sun8i-a33: Add Video Engine and reserved memory nodes Date: Thu, 19 Apr 2018 17:45:36 +0200 Message-Id: <20180419154536.17846-6-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 A33. 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/sun8i-a33.dtsi | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/arch/arm/boot/dts/sun8i-a33.dtsi index a21f2ed07a52..308b532aee1d 100644 --- a/arch/arm/boot/dts/sun8i-a33.dtsi +++ b/arch/arm/boot/dts/sun8i-a33.dtsi @@ -181,6 +181,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; + }; + }; + sound: sound { compatible = "simple-audio-card"; simple-audio-card,name = "sun8i-a33-audio"; @@ -204,6 +218,11 @@ }; soc@1c00000 { + syscon: system-controller@01c00000 { + compatible = "allwinner,sun8i-a33-syscon", "syscon"; + reg = <0x01c00000 0x1000>; + }; + tcon0: lcd-controller@1c0c000 { compatible = "allwinner,sun8i-a33-tcon"; reg = <0x01c0c000 0x1000>; @@ -240,6 +259,25 @@ }; }; + ve: video-engine@01c0e000 { + compatible = "allwinner,sun4i-a10-video-engine"; + memory-region = <&ve_memory>; + syscon = <&syscon>; + + clocks = <&ccu CLK_BUS_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_BUS_VE>; + + interrupts = ; + + reg = <0x01c0e000 0x1000>; + }; + crypto: crypto-engine@1c15000 { compatible = "allwinner,sun4i-a10-crypto"; reg = <0x01c15000 0x1000>; -- 2.16.3