Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp611672imm; Wed, 25 Jul 2018 03:06:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd88Vn8MLjGC2kRHfUMClnqv+tOgPNUz5fcKmt5Qi2Wq6EB6AxJ+3exjL8+KlUWyTVe8xd6 X-Received: by 2002:a65:630e:: with SMTP id g14-v6mr20122008pgv.153.1532513202217; Wed, 25 Jul 2018 03:06:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532513202; cv=none; d=google.com; s=arc-20160816; b=dyd8HCarolAl180q1y2o/+tHHHNCNSE8kJia5Pp8xaTqEu4T6kzKMekazEZiLNwePg E3PZ8Fbxp44FHj1mxGzXYuv/saXKbcfdpRh1iwRl02hdmQDr8aDGXVMWCefz+mJ3+k6B L3soKjP+IojpwTYnPsfPePps+AdJAWK4EsyShPVAkp7mWie8izKWbtY4qJVXLWoGrT81 BDh+Nutjy8HoNExLfwd2zBqtydLZOXV8l5HCHp1Qy3884zwnSt8PNjPMurOaHggLJwxA sJL49DlFTNg+ZOXUwLTetdTk3dJ+Z0rRwMQHq5jOIBBA/BRcC0fich5pSzZZnhJLSdyg LkoA== 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=4Yai3zdpYiMjEGsVYz+DRmVt+CL0GVXasfTxg9ZxodE=; b=O1muH2uSASEQek+T8in1UKd8LGsl8VQgdyQPh0SoCYAeRGcpT9lGStucoU/Yxlk4IX DQcX+T7+XXCgdx2YMOhw2q27avNBp39HKFK5MfSlTw65wEvZouNmpDc34nPxZwqEJ1dj S+/m/MXf7G4wR05S+qJzDbs9vg0XhsK9b6CFWbQfluUaYJl8KrUlBUqX/T8rw3/zhMIT Y4s6DaOUyj9kdtyeboHYrA96FSjUCFShlwEd8hXYK5IH/R6HDBrhpSHRpRhuZBf4Kwz2 lrNBSggXCZKee6NZauEnygXfnhT3IxG/zOpYRvEKxiP3CLXtXt0K9DK4UQWikJOn5InO ztmA== 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 d24-v6si14312730pfb.262.2018.07.25.03.06.27; Wed, 25 Jul 2018 03:06: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 S1728995AbeGYLPx (ORCPT + 99 others); Wed, 25 Jul 2018 07:15:53 -0400 Received: from mail.bootlin.com ([62.4.15.54]:57897 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728926AbeGYLPm (ORCPT ); Wed, 25 Jul 2018 07:15:42 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 88EF720876; 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 80EBF20884; 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 7/8] ARM: dts: sun8i-a33: Add Video Engine and reserved memory nodes Date: Wed, 25 Jul 2018 12:02:55 +0200 Message-Id: <20180725100256.22833-8-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 A33. 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/sun8i-a33.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/arch/arm/boot/dts/sun8i-a33.dtsi index 8d278ee001e9..a212fbee14bc 100644 --- a/arch/arm/boot/dts/sun8i-a33.dtsi +++ b/arch/arm/boot/dts/sun8i-a33.dtsi @@ -181,6 +181,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; + }; + }; + sound: sound { compatible = "simple-audio-card"; simple-audio-card,name = "sun8i-a33-audio"; @@ -245,6 +260,17 @@ }; }; + video-codec@01c0e000 { + compatible = "allwinner,sun8i-a33-video-engine"; + reg = <0x01c0e000 0x1000>; + clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>, + <&ccu CLK_DRAM_VE>; + clock-names = "ahb", "mod", "ram"; + resets = <&ccu RST_BUS_VE>; + interrupts = ; + allwinner,sram = <&ve_sram 1>; + }; + crypto: crypto-engine@1c15000 { compatible = "allwinner,sun4i-a10-crypto"; reg = <0x01c15000 0x1000>; -- 2.18.0