From patchwork Tue Apr 12 23:55:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 65662 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp2204097qge; Tue, 12 Apr 2016 16:56:46 -0700 (PDT) X-Received: by 10.66.118.70 with SMTP id kk6mr8661184pab.74.1460505406200; Tue, 12 Apr 2016 16:56:46 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yo8si4895646pac.27.2016.04.12.16.56.45; Tue, 12 Apr 2016 16:56:46 -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; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; 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; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965777AbcDLX4n (ORCPT + 7 others); Tue, 12 Apr 2016 19:56:43 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:35566 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965560AbcDLX4m (ORCPT ); Tue, 12 Apr 2016 19:56:42 -0400 Received: by mail-pa0-f47.google.com with SMTP id fs9so3574121pac.2 for ; Tue, 12 Apr 2016 16:56:42 -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=f8jPZTCTHZTt0Kk08ncfh4b856f5ykQ7Sm5KgbwiJARli4oHloYUNm0ZHSNKbYMMJH SZHNk03/7CJfqLlLOnhlQvUj+OTMoTZ2uM7GVoSKzBoM9JBtyYAmOuhcJqCeot9wx0vo 2oflacCdMPih2nTsbAtk6IcMVkAym1ynhyI90= 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=T0uJ5NV9LGz6U2kZAYTUPoLnfSzeFPgWKXBqDkK59HEJs8lejcls+lh0fWKD3O84L6 ueEDrUU6yKWRk1qhVyrUvsoowMyo2iGgTBfmigHsAYdhAMQkrcLl7vo8CKFpfC05+Pip nyxnX3SAxKZxQ8TpklTQnWZFmIqp5Nsj6hvJ9bLKzYWgMXMzys+sSLgAuCuiuYskSzCV NCOG7yk3jbGbzrNB7kk6cVSIFeire5CPS+rUkofukqIXA9e/C3bTdiwypjDrA5+c9lTm tHhl9hqUWoMMbKMZrseqIplAP40y5Chi6vJZ8LYJTkEJHQY5Nqfb0rzwcyaR3a/Q7pNI +QOg== X-Gm-Message-State: AOPr4FWUoigu3NnzgdUdy6v0my6C1N1ChZNyhLCQxjw/iNnLb0bYM7vNnPrECKhvTaXFVXXT X-Received: by 10.66.90.226 with SMTP id bz2mr8616590pab.31.1460505401533; Tue, 12 Apr 2016 16:56:41 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.226]) by smtp.gmail.com with ESMTPSA id i1sm46165795pfj.17.2016.04.12.16.56.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Apr 2016 16:56:40 -0700 (PDT) From: Guodong Xu To: xuwei5@hisilicon.com, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, catalin.marinas@arm.com, will.deacon@arm.com, haojian.zhuang@linaro.org, linus.walleij@linaro.org, tony@atomide.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Leo Yan Subject: [PATCH v4 01/16] arm64: dts: Reserve memory regions for hi6220 Date: Wed, 13 Apr 2016 07:55:37 +0800 Message-Id: <1460505352-13157-2-git-send-email-guodong.xu@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1460505352-13157-1-git-send-email-guodong.xu@linaro.org> References: <1460505352-13157-1-git-send-email-guodong.xu@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 -- 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 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>; }; };