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: 54682 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 7082722FF4 for ; Fri, 9 Oct 2015 04:38:55 +0000 (UTC) Received: by lbos8 with SMTP id s8sf32506420lbo.2 for ; Thu, 08 Oct 2015 21:38:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:subject:date :message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=pNx8QzOzmrefukwNFxcAfUYtMY+FisT3jKfVthMy4Jc=; b=U+v0AumInfFbBNGS4wnqevHf2x5a1Fgoze7eXfdMbXgDkO2U1Jfgbi8l0GOIdenyuF RA0TiAc1xb5TjG5jqbC8PVixgHV40KEvDEkBstIt9q3wTM7ABwld6X/vCGy8bFX3BURo FVQ1gpKMuOmF/Ewnf+kF+1ZJUZVKvlAc+V7dsd5bNmEL9ykKxNtkZmfk3CtN168LrVn9 gEhgA3krVIfwJfZ0eNMytc6SZ4sFi2E8Vk2XwV692dmZXg1j5Fuk5Wgdaunahaxjq9oC FPtitgwirDiV6LNYIHPwFwB8v4y+7GuuLh73tPNsEU+ptDxpk6mrz9Xe9SzEqrNpHwVr 8rxA== X-Gm-Message-State: ALoCoQmOiVm+Uig5BQ/ul2Vj4qLaR4pWUwhK2ICSzvFE2pFg7EQP5XQ8WRDg/i2imkYWyHVp4cSJ X-Received: by 10.112.198.33 with SMTP id iz1mr2104446lbc.8.1444365534440; Thu, 08 Oct 2015 21:38:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.166.82 with SMTP id p79ls262603lfe.99.gmail; Thu, 08 Oct 2015 21:38:54 -0700 (PDT) X-Received: by 10.25.15.156 with SMTP id 28mr3667277lfp.14.1444365534275; Thu, 08 Oct 2015 21:38:54 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id 29si32411283lfq.18.2015.10.08.21.38.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Oct 2015 21:38:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbwr8 with SMTP id r8so67802739lbw.2 for ; Thu, 08 Oct 2015 21:38:54 -0700 (PDT) X-Received: by 10.112.156.167 with SMTP id wf7mr5481002lbb.88.1444365534100; Thu, 08 Oct 2015 21:38:54 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp943520lbq; Thu, 8 Oct 2015 21:38:52 -0700 (PDT) X-Received: by 10.66.230.169 with SMTP id sz9mr12640073pac.136.1444365532743; Thu, 08 Oct 2015 21:38:52 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vq2si71808800pbc.220.2015.10.08.21.38.52; Thu, 08 Oct 2015 21:38:52 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932819AbbJIEiu (ORCPT + 30 others); Fri, 9 Oct 2015 00:38:50 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:33522 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932418AbbJIEis (ORCPT ); Fri, 9 Oct 2015 00:38:48 -0400 Received: by wiclk2 with SMTP id lk2so54120033wic.0 for ; Thu, 08 Oct 2015 21:38:47 -0700 (PDT) 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: leo.yan@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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>; }; };