From patchwork Tue Oct 13 00:58: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: 54818 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 80ACF23001 for ; Tue, 13 Oct 2015 00:59:16 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf2053980wic.3 for ; Mon, 12 Oct 2015 17:59:15 -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=ykQzAMkYSrIUKZj3zsk+FHPTVJoj+8OzwFvHtmkEZK8=; b=BO9GZaKdbFJqlcxjBqIK6Y3k2op11WVSTmR4zn7HXChtt7WpQ226FyHrX6xtZBaoEH acWYDAS2zZaRBC0XawQ48sYZoa0adRFkDGFFSrjymKg9DGwQ/Q2hpgBJhBQKRZesEUlt GxLaAhfiGCRzvHamizk3O6q+zKEDNP69b45UQgLVPU9hflXhq/KRsXdJuCdF97HbaPSA aPVn9L2Y2O2lg++BrFAQ41Ye0DzEXizrdihz7lZ7k4M6zsfu7jArirpCpEdg8wHW9RSa sAZWab8i5CJfebinfSNakiXylERhIu2OokiFOT06ssoZMozEi0L2mCiqg3VugqZUgIMh agBg== X-Gm-Message-State: ALoCoQmmJlbsszN2iAmzcHfW0VQqmIt8D4oevFFnM7l6iFcjdRbezH5ZWIJJNAl1tR+dwggJAfwf X-Received: by 10.180.184.164 with SMTP id ev4mr3523811wic.3.1444697955838; Mon, 12 Oct 2015 17:59:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.218.208 with SMTP id r199ls605744lfg.2.gmail; Mon, 12 Oct 2015 17:59:15 -0700 (PDT) X-Received: by 10.112.12.3 with SMTP id u3mr11411298lbb.30.1444697955677; Mon, 12 Oct 2015 17:59:15 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id dt9si309095lbc.37.2015.10.12.17.59.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Oct 2015 17:59:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbwr8 with SMTP id r8so2406087lbw.2 for ; Mon, 12 Oct 2015 17:59:15 -0700 (PDT) X-Received: by 10.25.153.145 with SMTP id b139mr7445637lfe.117.1444697955524; Mon, 12 Oct 2015 17:59:15 -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 w3csp1828580lbq; Mon, 12 Oct 2015 17:59:14 -0700 (PDT) X-Received: by 10.50.13.33 with SMTP id e1mr14897213igc.72.1444697954391; Mon, 12 Oct 2015 17:59:14 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si10460056igr.35.2015.10.12.17.59.14; Mon, 12 Oct 2015 17:59:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 S932110AbbJMA7E (ORCPT + 7 others); Mon, 12 Oct 2015 20:59:04 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:36382 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932067AbbJMA6t (ORCPT ); Mon, 12 Oct 2015 20:58:49 -0400 Received: by wicgb1 with SMTP id gb1so168150942wic.1 for ; Mon, 12 Oct 2015 17:58:48 -0700 (PDT) X-Received: by 10.194.79.196 with SMTP id l4mr36346833wjx.93.1444697928168; Mon, 12 Oct 2015 17:58:48 -0700 (PDT) Received: from localhost.localdomain ([78.110.169.123]) by smtp.gmail.com with ESMTPSA id bv2sm364608wjc.11.2015.10.12.17.58.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Oct 2015 17:58:47 -0700 (PDT) From: Leo Yan To: Catalin Marinas , Will Deacon , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Leo Yan , Haojian Zhuang , Wei Xu , Bintian Wang , Yiping Xu , Sudeep Holla , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 1/4] arm64: dts: Reserve memory regions for hi6220 Date: Tue, 13 Oct 2015 08:58:13 +0800 Message-Id: <1444697896-4323-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444697896-4323-1-git-send-email-leo.yan@linaro.org> References: <1444697896-4323-1-git-send-email-leo.yan@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.178 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>; }; };