From patchwork Mon Aug 3 01:13:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 51818 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id 8534F229FD for ; Mon, 3 Aug 2015 01:14:40 +0000 (UTC) Received: by lbbnr7 with SMTP id nr7sf36807288lbb.2 for ; Sun, 02 Aug 2015 18:14:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=IPiuhqnblfQyvZ/oCDMoju9iwMbhdmmimi0+X904v0g=; b=d3U0sMZTqZudHhQIrNbdkEvDF5BuQMwiPo5Z00XtEo+r4ULnPYmEml9Vm907yibyCX vB0+3VyRfF6/mXKyWxvcm+JPpYDiYa4VnMtQv+CG0C8Qjl1el+FHzZFAyG59zNhBiXxF zr95BHl8czn50rVG/VHvryvIlOSFTnR5QzonAWZwiFsyKAk+fxtKShzqYcPdVZWx9lI1 dYpPNkef5EpGIptGjgyVkvNiVcuDGZFFNSTQsrDkgD1m88TCaI2c0lKBRGYor0eOKAii Z94qOE+kFLMVm7gKqqprHoWAKPZFvFjSHmUqKWFObefWwwYqOOqaS7IbvZmZVb6M5jO+ KwPg== X-Gm-Message-State: ALoCoQlX+wydT1ybNkKZ9CMj/oWIT7NwlA37ngHpKmZAtM0DB66Eu8nwlU1mgR7N2wOe8EwSqDwc X-Received: by 10.112.139.65 with SMTP id qw1mr4771805lbb.24.1438564479519; Sun, 02 Aug 2015 18:14:39 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.39 with SMTP id j7ls547582lam.21.gmail; Sun, 02 Aug 2015 18:14:39 -0700 (PDT) X-Received: by 10.152.28.105 with SMTP id a9mr14622608lah.9.1438564479025; Sun, 02 Aug 2015 18:14:39 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id jc5si10620585lbc.127.2015.08.02.18.14.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Aug 2015 18:14:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by labsr2 with SMTP id sr2so1256833lab.2 for ; Sun, 02 Aug 2015 18:14:38 -0700 (PDT) X-Received: by 10.112.166.106 with SMTP id zf10mr14348040lbb.36.1438564478807; Sun, 02 Aug 2015 18:14:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp1596933lba; Sun, 2 Aug 2015 18:14:37 -0700 (PDT) X-Received: by 10.66.62.229 with SMTP id b5mr29951831pas.81.1438564476170; Sun, 02 Aug 2015 18:14:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dq1si23612618pdb.69.2015.08.02.18.14.34; Sun, 02 Aug 2015 18:14:36 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752405AbbHCBO2 (ORCPT + 28 others); Sun, 2 Aug 2015 21:14:28 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:33965 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752313AbbHCBOX (ORCPT ); Sun, 2 Aug 2015 21:14:23 -0400 Received: by pdbbo16 with SMTP id bo16so9312043pdb.1 for ; Sun, 02 Aug 2015 18:14:22 -0700 (PDT) X-Received: by 10.70.48.68 with SMTP id j4mr30421859pdn.111.1438564462248; Sun, 02 Aug 2015 18:14:22 -0700 (PDT) Received: from localhost.localdomain ([180.150.157.4]) by smtp.gmail.com with ESMTPSA id he7sm5839938pbc.63.2015.08.02.18.14.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 02 Aug 2015 18:14:21 -0700 (PDT) From: Leo Yan To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Jassi Brar , Wei Xu , Bintian Wang , Haojian Zhuang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guodong Xu , Jian Zhang , Zhenwei Wang , Haoju Mo , Dan Zhao , kongfei@hisilicon.com, Guangyue Zeng Cc: Leo Yan Subject: [RFC PATCH 3/3] arm64: dts: add Hi6220 mailbox node Date: Mon, 3 Aug 2015 09:13:10 +0800 Message-Id: <1438564390-28111-4-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438564390-28111-1-git-send-email-leo.yan@linaro.org> References: <1438564390-28111-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: leo.yan@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , On Hi6220, below memory regions in DDR have specific purpose: - 0x05e0,0000 - 0x05ef,ffff: For MCU firmware using at runtime; - 0x0740,f000 - 0x0740,ffff: For MCU firmware's section; - 0x06df,f000 - 0x06df,ffff: For mailbox message data. This patch reserves these memory regions and add device node for mailbox in dts. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 20 +++++++++++++++++--- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 8 ++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index e36a539..1715f9d 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" / { @@ -28,4 +25,21 @@ device_type = "memory"; reg = <0x0 0x0 0x0 0x40000000>; }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + mcu-buf@05e00000 { + no-map; + reg = <0x0 0x0740f000 0x0 0x00001000>, /* MCU firmware section */ + <0x0 0x05e00000 0x0 0x00100000>; /* MCU firmware buffer */ + }; + + mbox-buf@06dff000 { + no-map; + reg = <0x0 0x06dff000 0x0 0x00001000>; /* Mailbox message buf */ + }; + }; }; diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 3f03380..b42a9b7 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -167,5 +167,13 @@ clocks = <&ao_ctrl 36>, <&ao_ctrl 36>; clock-names = "uartclk", "apb_pclk"; }; + + mailbox: mailbox { + #mbox-cells = <1>; + compatible = "hisilicon,hi6220-mbox"; + reg = <0x0 0xf7510000 0x0 0x1000>, /* IPC_S */ + <0x0 0x06dff800 0x0 0x0800>; /* Mailbox buffer */ + interrupts = ; + }; }; };