From patchwork Mon Jun 18 14:58:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowski X-Patchwork-Id: 10471959 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 627576032A for ; Mon, 18 Jun 2018 15:12:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5154E28B7B for ; Mon, 18 Jun 2018 15:12:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45B6328B83; Mon, 18 Jun 2018 15:12:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BE56F28B7B for ; Mon, 18 Jun 2018 15:12:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=u+79zugSONdwjWSiySWn3lSyW7Fj9V/w4VVPX3N5h2Y=; b=jVDoeAYOtQSu9+EK890p5/tSKT CsfM2YDrEnwbyc4kg9OWJFTqDHF3hGEyfbTvnNCs8aOEz9L6P+VY61TO97CK2de5XLR1rPo6aObD0 jD9ERM4LVG7rt7YUV18V7uTNUgIxu1nwl9VEIBr4mJLXZ1Nkz5tSHyszXQr+qaidy4Be8kYzVgPrl cLfJ+hgZHQwesLqCIY/EC0wDdLYgvSvTr/iz4J+QFuD+4MVS6119tXbR7AqbhWq/7dj1U2pPcssKr Im57lMmrqfZ8IxViIKGXYf4EKONRBXqFo5sdwMz3kE2XaZeqMbvhXr1Ikdr03f9SueXJl1J1QoA9I dwESH6/Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUvpK-0003iS-HN; Mon, 18 Jun 2018 15:12:18 +0000 Received: from mail.bootlin.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUve7-0003p3-Uw for linux-arm-kernel@lists.infradead.org; Mon, 18 Jun 2018 15:01:27 +0000 Received: by mail.bootlin.com (Postfix, from userid 110) id 3093120850; Mon, 18 Jun 2018 17:00:36 +0200 (CEST) Received: from localhost.localdomain (AAubervilliers-681-1-50-153.w90-88.abo.wanadoo.fr [90.88.168.153]) by mail.bootlin.com (Postfix) with ESMTPSA id E299820DCC; Mon, 18 Jun 2018 17:00:23 +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 Subject: [PATCH v4 19/19] ARM: dts: sun8i-a33: Add Video Engine and reserved memory nodes Date: Mon, 18 Jun 2018 16:58:43 +0200 Message-Id: <20180618145843.14631-20-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180618145843.14631-1-paul.kocialkowski@bootlin.com> References: <20180618145843.14631-1-paul.kocialkowski@bootlin.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180618_080044_330737_15685AC3 X-CRM114-Status: GOOD ( 14.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Thomas Petazzoni , Tom Saeger , Maxime Ripard , Linus Walleij , Stanimir Varbanov , Hans Verkuil , Andrzej Hajda , linux-sunxi@googlegroups.com, Sylwester Nawrocki , Ricardo Ribalda Delgado , Marco Franchi , Marek Szyprowski , Todor Tomov , Andy Shevchenko , Jonathan Corbet , Chen-Yu Tsai , Jacob Chen , Sami Tolvanen , Steve Longerbeam , Icenowy Zheng , Philipp Zabel , Arnd Bergmann , Smitha T Murthy , Randy Li , Hans de Goede , Rob Herring , Hugues Fruchet , Mauro Carvalho Chehab , Alexandre Courbot , Greg Kroah-Hartman , Randy Dunlap , Tomasz Figa , Paul Kocialkowski , Jacopo Mondi , Sakari Ailus , Andrew Morton , Ramesh Shanmugasundaram , "David S . Miller" MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/arch/arm/boot/dts/sun8i-a33.dtsi index 97a976b3b1ef..c5c108a11285 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"; @@ -262,6 +277,20 @@ }; }; + vpu: 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>;