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: 7380271 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7C63C9F37F for ; Tue, 13 Oct 2015 01:02:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A477920986 for ; Tue, 13 Oct 2015 01:02:47 +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 CE45E20982 for ; Tue, 13 Oct 2015 01:02:46 +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 1Zlnvs-00057K-Go; Tue, 13 Oct 2015 00:59:12 +0000 Received: from mail-wi0-f169.google.com ([209.85.212.169]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zlnvq-00054e-A3 for linux-arm-kernel@lists.infradead.org; Tue, 13 Oct 2015 00:59:11 +0000 Received: by wicge5 with SMTP id ge5so36680734wic.0 for ; Mon, 12 Oct 2015 17:58:48 -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=kZSOsddxK/Lt0m1Kxo7XrLGAqIPawtmeJHkC8AyZFu6ODs1b83x8VlzYHtWQfap74M bZJr8CXcWKJsQiDqXFgUAHuHQH7U3K2I2poc/+PSEh2KZNzO3afcaQOWm1ejPmQtZJ51 ktPqVNVLNc5tJXn4taD7lg4wOgNs+HCGizT9Vtjjnenrkiv7WabhugNjQ/tpwfNEW5eg lv8NTgPx4pYK4UvhlV221cz0qqVBa4ei1kicbqyGVICKrbjteGAYz85zDAdIEB8lJd0s SyDvppSu5sfcAOWH0VN+uArDUfYwcH8FpoYErMSQH1o4U02S3sQWX0rMbAVWRb8CXsrl himw== X-Gm-Message-State: ALoCoQkEhwn607jVK+X9VxhpFtc5xe5ckAQ+61MqcDtB4C4bLmzfhtSNgw/SwyI+KTY3j1b6QiN6 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151012_175910_515775_DCBED24E X-CRM114-Status: GOOD ( 13.64 ) 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>; }; };