From patchwork Sat Apr 2 09:29:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 8731021 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1988FC0553 for ; Sat, 2 Apr 2016 09:35:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2FEEF2038E for ; Sat, 2 Apr 2016 09:35:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4AA3C20383 for ; Sat, 2 Apr 2016 09:35:05 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1amHtH-0000vQ-Kx; Sat, 02 Apr 2016 09:30:47 +0000 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1amHtE-0000q1-C8 for linux-arm-kernel@lists.infradead.org; Sat, 02 Apr 2016 09:30:45 +0000 Received: by mail-pf0-x22b.google.com with SMTP id 184so8523095pff.0 for ; Sat, 02 Apr 2016 02:30:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XG01+iLkJ2rUXuIGRQHO1I9RRgQ/BjBZYS3yKuUaE+g=; b=eyO6CcT+P29BynBheKxieInZtW0nOBXa17IF9gZwOFs8i3ZjZM3zyu52VDexEU6OEQ 33l0JfH478rd1og7VMfvIZPluVF04yg5BsBoCBIeoesNS7ESoW7U+FGd1VsWp1+AtPM6 1dEx9fycKycI3q5EbILXmrzKjg+TaQlXMb/R4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XG01+iLkJ2rUXuIGRQHO1I9RRgQ/BjBZYS3yKuUaE+g=; b=X7sqXF2KoFuZ/wbKhkOcpoCdhF9aAOvndaDHtkgihYdqU4ChLalBR+uQ5HD6IJL3Cq 72TLmXWfKqYXlR4S7jS1tLTURqPSUB0SjzwpIP+Lo43bu4unZC0KwPFYUtV+FVmP8/Xi ebvrH5h+bmwz9d4qD/ZN0MKyTGoJq+uR5LQOmniL5dqpIxqOm3dxTxKRrFVaanboQ0i8 nuYYYJrsktA0dusyJkESx0IAxcTI/1Ug9S5z+8ePl2iS+iAoAm1lPpQShisaktaH/sn4 X15KSRUaLPoaCRgKJ9Z49gHz+9hrm9bvRaZsGbow0OaN2L74qwT9Oei5Gidp4BVuu71w an9g== X-Gm-Message-State: AD7BkJJmpemwchWkVsUOy3zzMEVDfHmfrfMAMJCbNxmOjlnNAGohQNYviyMyyGOvCXtXBWc8 X-Received: by 10.98.33.91 with SMTP id h88mr4892262pfh.54.1459589423614; Sat, 02 Apr 2016 02:30:23 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.92]) by smtp.gmail.com with ESMTPSA id i9sm25425804pfi.95.2016.04.02.02.30.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 02 Apr 2016 02:30:22 -0700 (PDT) From: Guodong Xu To: xuwei5@hisilicon.com, mark.rutland@arm.com, robh@kernel.org, grant.likely@secretlab.ca, linus.walleij@linaro.org, arnd.bergmann@linaro.org Subject: [PATCH v2 01/16] arm64: dts: Reserve memory regions for hi6220 Date: Sat, 2 Apr 2016 17:29:28 +0800 Message-Id: <1459589383-16914-2-git-send-email-guodong.xu@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459589383-16914-1-git-send-email-guodong.xu@linaro.org> References: <1459589383-16914-1-git-send-email-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160402_023044_537307_EBF5F813 X-CRM114-Status: GOOD ( 11.02 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, kong.kongxinwei@hisilicon.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Leo Yan MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Leo Yan On Hi6220, below memory regions in DDR have specific purpose: 0x05e0,0000 - 0x05ef,ffff: For MCU firmware using at runtime; 0x06df,f000 - 0x06df,ffff: For mailbox message data; 0x0740,f000 - 0x0740,ffff: For MCU firmware's section; 0x3e00,0000 - 0x3fff,ffff: For OP-TEE. This patch reserves these memory regions in DT. Signed-off-by: Leo Yan Signed-off-by: Wei Xu --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index 8185251..17bd793 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -7,9 +7,6 @@ /dts-v1/; -/*Reserved 1MB memory for MCU*/ -/memreserve/ 0x05e00000 0x00100000; - #include "hi6220.dtsi" / { @@ -27,9 +24,20 @@ stdout-path = "serial3:115200n8"; }; + /* + * Reserve below regions from memory node: + * + * 0x05e0,0000 - 0x05ef,ffff: MCU firmware runtime using + * 0x06df,f000 - 0x06df,ffff: Mailbox message data + * 0x0740,f000 - 0x0740,ffff: MCU firmware section + * 0x3e00,0000 - 0x3fff,ffff: OP-TEE + */ memory@0 { device_type = "memory"; - reg = <0x0 0x0 0x0 0x40000000>; + reg = <0x00000000 0x00000000 0x00000000 0x05e00000>, + <0x00000000 0x05f00000 0x00000000 0x00eff000>, + <0x00000000 0x06e00000 0x00000000 0x0060f000>, + <0x00000000 0x07410000 0x00000000 0x36bf0000>; }; };