Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp611186imm; Wed, 25 Jul 2018 03:06:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeYWA5OJMB64NTzF79qpOfsE9ndfeNXzUBwHyfxA54tSQcb+dsYw650nENl2lg2ZirbwaUa X-Received: by 2002:a65:660a:: with SMTP id w10-v6mr19486414pgv.366.1532513170505; Wed, 25 Jul 2018 03:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532513170; cv=none; d=google.com; s=arc-20160816; b=m09AQvkVYyEecBVsAPtjj4sO+OgN5iKo9HYUOdlekqJJuplH4G4UsFVluZHzHafxPP O3p1Uu71UCRL+fzhhFCLNP8zkp594bFOU8zaHkw25YcU7i0qlIzymgPTzA1Mo2eng9GJ +408atjQfCdFLP3aNUHhtYjzwDRpnIiGFO558rz70WoJLHS8C63TwpVG0GO8RacxKemz aBH/pGcz9eyM23An9QTsWvAN0XDjf2NA6sM0usV3nsLDKj+jmoJiMlL4GObXJCrXWKwp KvXVrIX5K3ggR8hAbuxn5mw8MFdr2WtaP9xJ0hrWifyTh8Dne91PCF6Y2LalceXgPsGO /s5Q== 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=oohSQICjHRK49CkPZYKsi3cSaVJhuOsLVAA3/k4QH08=; b=IcTc6XaWD9BDDowpc/ny348uT8TkiFjRTRLKZjMpIKV0sj902LSUvcHYQNuHtFmJH3 X4Ysm07JR7aCX7JHgoT6ab8eiASujnyMjLiM3ti2M/NXIPL3YRID4CV3wcduPhzwVHFO h+3mpJq5PKhPCt1bI0UsClQR0kvrvNZcfeKMa4DQLJ9mqDwZUBv8ICrx8SyLXUZ0dl1e xeXax/hx3aUl+yeBxUeubxsxc3JdNxHmGsD9Dra4U2IR/pP1klpAFBcjsY+LKleZrFPr uyZDYzFsKRzSoub9MCYF+FgeqDtvCPJgd13CiDVOBPWuhJGsXxrc3McwrKJVE/T5yyHk Gm5Q== 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 v8-v6si12667975pff.248.2018.07.25.03.05.55; Wed, 25 Jul 2018 03:06:10 -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 S1729021AbeGYLPx (ORCPT + 99 others); Wed, 25 Jul 2018 07:15:53 -0400 Received: from mail.bootlin.com ([62.4.15.54]:57873 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728925AbeGYLPm (ORCPT ); Wed, 25 Jul 2018 07:15:42 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 86EFC209B9; 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 EC15620893; 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 8/8] ARM: dts: sun8i-h3: Add Video Engine and reserved memory nodes Date: Wed, 25 Jul 2018 12:02:56 +0200 Message-Id: <20180725100256.22833-9-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 H3. Up to 96 MiB of memory are dedicated to the CMA pool. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/sun8i-h3.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index c93f6be40533..c1375e72bb12 100644 --- a/arch/arm/boot/dts/sun8i-h3.dtsi +++ b/arch/arm/boot/dts/sun8i-h3.dtsi @@ -110,6 +110,20 @@ ; }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + cma_pool: cma@4a000000 { + compatible = "shared-dma-pool"; + size = <0x6000000>; + alloc-ranges = <0x4a000000 0x6000000>; + reusable; + linux,cma-default; + }; + }; + soc { system-control@1c00000 { compatible = "allwinner,sun8i-h3-system-control", @@ -134,6 +148,17 @@ }; }; + video-codec@01c0e000 { + compatible = "allwinner,sun8i-h3-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>; + }; + mali: gpu@1c40000 { compatible = "allwinner,sun8i-h3-mali", "arm,mali-400"; reg = <0x01c40000 0x10000>; -- 2.18.0