From patchwork Thu Jan 21 10:53:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 60060 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3701456lbb; Thu, 21 Jan 2016 02:54:32 -0800 (PST) X-Received: by 10.67.6.195 with SMTP id cw3mr60051606pad.88.1453373671962; Thu, 21 Jan 2016 02:54:31 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rp7si1320651pab.99.2016.01.21.02.54.31; Thu, 21 Jan 2016 02:54:31 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759233AbcAUKyX (ORCPT + 6 others); Thu, 21 Jan 2016 05:54:23 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:34163 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759268AbcAUKyQ (ORCPT ); Thu, 21 Jan 2016 05:54:16 -0500 Received: by mail-pa0-f45.google.com with SMTP id uo6so22025704pac.1 for ; Thu, 21 Jan 2016 02:54:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=+C4fZBbFjPkTsxFEDcaM6xwwE1vXKEuM9QZM4KaiPA4=; b=AHKosLpfCg2X9vTg+ONFCjutYur3qlnQIVthGTm+DNYTKPmVwaxfE42KVBiOjnBVyb enWriBVewXTMycE4jYInMzMq7uUTbN5YZMUJm3kus6h3xnkV9XT93bRX5zp54foSAeNY lup+R+JNQGlrm4tSQlGiSbnZHLFVXu9Qp2Z1Y= 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=+C4fZBbFjPkTsxFEDcaM6xwwE1vXKEuM9QZM4KaiPA4=; b=DNrZY9yyaKOBrgWW4Li/sAFiU5QMf7yRYtIVU0KwMyi3A16dbuJNFFtlZx9Z6OKVdk hZSJ3GAuCzN43Xkqg6BHDuzcb/qnC/vfTi9F3vztziI950UKtSK561MbIc/QF2h1FLHJ Z0rGZFWWGNJij/H7QxZ4plCvvx5omhlYbMs8bNd50weG4AeWIAruBR4t0j+bsO0DLNyP zIV6fKW2j/IofsCXGfRmuLIIM0H0nw9QZt5NVRTeN7/HP+VWB/orPnnPu/EtHwgSqTn+ yAPEyU2pRMcBarZ4Ob/VrDHyRZChpD3rTclzm5nmkCAkqoPKAaJdGVBxsAwvOdTAJL0y INNg== X-Gm-Message-State: ALoCoQmmonKXs4zV1Zbn4RswPJh+AJAoFDJyfNOpufHrzF3VAtWnnWLhof6mvdYJklH5UJTvLohP+cYjZv/BDe9lyvzHjsPLGA== X-Received: by 10.66.161.227 with SMTP id xv3mr60112172pab.117.1453373655878; Thu, 21 Jan 2016 02:54:15 -0800 (PST) Received: from localhost.localdomain (v17.blockcn.net. [192.241.236.26]) by smtp.gmail.com with ESMTPSA id f16sm1773544pff.18.2016.01.21.02.54.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Jan 2016 02:54:14 -0800 (PST) From: Leo Yan To: Catalin Marinas , Will Deacon , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Greg Kroah-Hartman , Leo Yan , Yiping Xu , Yu Dongbin , Haojian Zhuang , Chen Feng , Tyler Baker , Bintian Wang , Sudeep Holla , Wei Xu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 RESEND 1/4] arm64: dts: Reserve memory regions for hi6220 Date: Thu, 21 Jan 2016 18:53:47 +0800 Message-Id: <1453373630-4693-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1453373630-4693-1-git-send-email-leo.yan@linaro.org> References: <1453373630-4693-1-git-send-email-leo.yan@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index 8d43a0f..1997e4d 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,8 +24,19 @@ 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>; }; };