From patchwork Tue Apr 5 13:27:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 65072 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp466070lbc; Tue, 5 Apr 2016 06:30:02 -0700 (PDT) X-Received: by 10.66.231.100 with SMTP id tf4mr62365195pac.44.1459863002416; Tue, 05 Apr 2016 06:30:02 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si7826110pas.218.2016.04.05.06.30.02; Tue, 05 Apr 2016 06:30:02 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758911AbcDEN3r (ORCPT + 29 others); Tue, 5 Apr 2016 09:29:47 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:32887 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753149AbcDEN3p (ORCPT ); Tue, 5 Apr 2016 09:29:45 -0400 Received: by mail-pf0-f169.google.com with SMTP id 184so11041500pff.0 for ; Tue, 05 Apr 2016 06:29:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=H74ZkfUoFDQ5KRGdzzfduoTJsOC0YNfJngWu3O0muow=; b=g7+FGX19+66tT9NUsMlLqCTd9mQYnquk3llEeC5IXSCRjZbXqqH7JILOsH2lZjdbLT 5ZmyWClmX+PhqVo5Il5coNJM4OI+D18yqChzU+Sn3c2EeLP71JX7ZlmbWGS2hixNJCMN AOg52tKVdtC/A4PcGP9BCO9tTXxAPWpKD1pyQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=H74ZkfUoFDQ5KRGdzzfduoTJsOC0YNfJngWu3O0muow=; b=Ydy4/xP5AS7Ycdm0dbZBLvIoXTezCGou5c1chq+K4EEJ56KJ+vdoHXUsCMelbFpATv d3hd8Ztk4InZ9YW1MM9FOaN0R+aD5ZEYsIhcKhoZsKTnqq3gIvpSb1VTBbwdlu9roe51 h4KPB2iy5iL93Dgq/0Fb+ha76JSuYKLY3uq/7o9qa47z4BVHDpIXL8dw3CAXJa9Fi8Qz TsUw9tiK6YLnY//yPFKios1NuS3+QCwLKfICkHgAwqkW9W6ZDD8aKk/DJUbqLAvDr9Xc dWwcS3Xcb8IPcCQxFmTHxhNoo94hTGDUAba9vYAgTLVa1762c6vluywwKySglSP5ZYFs xlYg== X-Gm-Message-State: AD7BkJI8TbPcMVyXykRYf7JOWo3qznbKAYXYnBfIy4mJp3zL+pQAryowXTd44TZv+yW21XMk X-Received: by 10.98.34.200 with SMTP id p69mr29330439pfj.114.1459862984567; Tue, 05 Apr 2016 06:29:44 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.49]) by smtp.gmail.com with ESMTPSA id wh9sm8060481pab.8.2016.04.05.06.29.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Apr 2016 06:29:43 -0700 (PDT) From: Guodong Xu To: xuwei5@hisilicon.com, mark.rutland@arm.com, robh@kernel.org, grant.likely@secretlab.ca, linus.walleij@linaro.org, arnd.bergmann@linaro.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kong.kongxinwei@hisilicon.com, Leo Yan Subject: [PATCH v3 01/16] arm64: dts: Reserve memory regions for hi6220 Date: Tue, 5 Apr 2016 21:27:25 +0800 Message-Id: <1459862860-9775-2-git-send-email-guodong.xu@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459862860-9775-1-git-send-email-guodong.xu@linaro.org> References: <1459862860-9775-1-git-send-email-guodong.xu@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leo Yan 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 diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index 8185251..17bd793 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,9 +24,20 @@ 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>; }; };