From patchwork Sat Apr 2 09:29:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 64915 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp250271lbc; Sat, 2 Apr 2016 02:30:45 -0700 (PDT) X-Received: by 10.66.55.70 with SMTP id q6mr36736217pap.126.1459589445499; Sat, 02 Apr 2016 02:30:45 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 77si26679584pfq.237.2016.04.02.02.30.45; Sat, 02 Apr 2016 02:30:45 -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 S1753001AbcDBJa1 (ORCPT + 29 others); Sat, 2 Apr 2016 05:30:27 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:33118 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752465AbcDBJaY (ORCPT ); Sat, 2 Apr 2016 05:30:24 -0400 Received: by mail-pf0-f177.google.com with SMTP id 184so8523093pff.0 for ; Sat, 02 Apr 2016 02:30:24 -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=XG01+iLkJ2rUXuIGRQHO1I9RRgQ/BjBZYS3yKuUaE+g=; b=eyO6CcT+P29BynBheKxieInZtW0nOBXa17IF9gZwOFs8i3ZjZM3zyu52VDexEU6OEQ 33l0JfH478rd1og7VMfvIZPluVF04yg5BsBoCBIeoesNS7ESoW7U+FGd1VsWp1+AtPM6 1dEx9fycKycI3q5EbILXmrzKjg+TaQlXMb/R4= 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=XG01+iLkJ2rUXuIGRQHO1I9RRgQ/BjBZYS3yKuUaE+g=; b=aLq23plkDp1cn3XH9QwSMGS+jUJ41Gjp9nHLSSCeZ+/jmymSRPoBJkM9m+KQD2VGgo Y3OAD+RhOGlibsyurWjlh6w8slVNIaEeqJa7fmJJ5noESgurYqzVxVf3tzdkq0Lu4gwd KVsqY4QPRr/64isG0AzoH1uO086d3Rikin3J3HpSGpk7fOzvFYQhelIzXWQc5gx/3Vfw FFo9bNkh6ArSJ7ZLJcjQ90VWN+qU96dP7u46ODYp4Otp12iNUyUE8sd6PrmRT80j3aFU /KicsNDVJKZFkC4Jw8g0lyTKrr10jxuQ1j9Hpg/J2LovolLPMMx0pJ6J1U2YaqJXSASI ggWQ== X-Gm-Message-State: AD7BkJL3aOzZCyWCfURGHTCQc0zcgMggb6uatxSpTrbGntkz5YPxx0fSaW71nCi9Y7yxLKfm X-Received: by 10.98.33.91 with SMTP id h88mr4892262pfh.54.1459589423614; Sat, 02 Apr 2016 02:30:23 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.92]) by smtp.gmail.com with ESMTPSA id i9sm25425804pfi.95.2016.04.02.02.30.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 02 Apr 2016 02:30:22 -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 v2 01/16] arm64: dts: Reserve memory regions for hi6220 Date: Sat, 2 Apr 2016 17:29:28 +0800 Message-Id: <1459589383-16914-2-git-send-email-guodong.xu@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459589383-16914-1-git-send-email-guodong.xu@linaro.org> References: <1459589383-16914-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 Signed-off-by: Wei Xu --- 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>; }; };