From patchwork Fri Oct 9 04:36:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 7359251 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 DF2ADBEEA4 for ; Fri, 9 Oct 2015 04:42:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 13CBE207F3 for ; Fri, 9 Oct 2015 04:42:36 +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 7D42B20808 for ; Fri, 9 Oct 2015 04:42:33 +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 1ZkPT9-0006Fw-Ad; Fri, 09 Oct 2015 04:39:47 +0000 Received: from mail-wi0-f171.google.com ([209.85.212.171]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZkPSX-00065L-8M for linux-arm-kernel@lists.infradead.org; Fri, 09 Oct 2015 04:39:09 +0000 Received: by wicfx3 with SMTP id fx3so53959485wic.1 for ; Thu, 08 Oct 2015 21:38:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=odKDYZ3uJwFzRj4OMLqL12HlKvShoKOmFpquBXhHWt8=; b=mm1DvfE7spfUN5bv2PZXodZ9NVwfaaCqC2/OO2D/AkvcL4gETtcEwUArV1/D5yct1i AwHCB0lloMqoqUD82Tg6lIRIsnTofuDkUkxAoE9EKRtQ68OsgBAxxIOoBX4JjKWJ4hqQ 3Ci5jfETwdv4CfX2va9r09RLoRG+lK2pvyzoru4DKMT28u5m8jLuSGMgC9C+bQ/2D/Le 1C87kXAr4kF4re94vvGjZY62//CW0PhwpZcqF16z8JKEDZeM0ozjOg5bw7a9y5QrbK2y f7H/W18C1jnln+UASHIJL3/NY0GPs/tMnDFZQFIdbA80M4YzAz0Fsr6pwdCEy5EN8ow4 Fsyw== X-Gm-Message-State: ALoCoQnbXgO68TBRjXYEdqOOQC1VU/0DzTJxu7KNAJ0TiqFbD57E4lNrgHIta54DBe5RNa410k1H X-Received: by 10.194.175.232 with SMTP id cd8mr12800696wjc.45.1444365527388; Thu, 08 Oct 2015 21:38:47 -0700 (PDT) Received: from localhost.localdomain ([78.110.172.67]) by smtp.gmail.com with ESMTPSA id bv2sm49982225wjc.11.2015.10.08.21.38.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Oct 2015 21:38:46 -0700 (PDT) From: Leo Yan To: Catalin Marinas , Will Deacon , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Bintian Wang , Leo Yan , Haojian Zhuang , Wei Xu , Yiping Xu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Brown , Tyler Baker Subject: [PATCH 1/4] arm64: dts: Reserve memory regions for hi6220 Date: Fri, 9 Oct 2015 12:36:13 +0800 Message-Id: <1444365376-10728-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444365376-10728-1-git-send-email-leo.yan@linaro.org> References: <1444365376-10728-1-git-send-email-leo.yan@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151008_213909_455699_D392361E X-CRM114-Status: GOOD ( 13.59 ) X-Spam-Score: -2.6 (--) 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: , 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=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, 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 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 --- 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 e36a539..e3f4cb3 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" / { @@ -24,8 +21,19 @@ stdout-path = "serial0: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>; }; };