From patchwork Thu Aug 10 02:26:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9892563 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5B0E060350 for ; Thu, 10 Aug 2017 02:30:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 443CC28462 for ; Thu, 10 Aug 2017 02:30:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 428C7289E2; Thu, 10 Aug 2017 02:30:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BF401289E2 for ; Thu, 10 Aug 2017 02:30:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=s0dw4ROOs5b69i1eKqGyUj4JLxcKoKoIuXkctQyvy2M=; b=sOfjO0FS8MsyH2lZUEhmVUaInG RBF2Mk3ETF51z0PxLZPTqKZl/yre++2IpnfmcJIV+QrGDcHBG6Lsm/P+wSFCntRJgiJ2icIfLdpoA xu3VeuFfBKJKX97tHk20+umiTOQoGfRrdYThCp73Q9AnvPCcSb40QXZiWqOCGPluOMP70tHfuUqGM vrHcYpKYGEi8rxL6qm2uRlal/zpF41/nG7yfb1WnUctiR/p3+LIVjhpZTrocPx0TM6Yqk2b3f48kn ecP+J+S18NwF9W55qmKbb16JE9wumFQNQV+yzI38DGCzW/imfvlNLG3YeaizJQCPFzh61i7fJ9fUm nsuoISLA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dfdE0-0003wj-8B; Thu, 10 Aug 2017 02:29:28 +0000 Received: from mail-pf0-x22f.google.com ([2607:f8b0:400e:c00::22f]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dfdC4-00028A-TX for linux-arm-kernel@lists.infradead.org; Thu, 10 Aug 2017 02:27:37 +0000 Received: by mail-pf0-x22f.google.com with SMTP id c28so35209532pfe.3 for ; Wed, 09 Aug 2017 19:27:08 -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=0p32t2rEJNcki7qqS9LxDJb86SxhFm8dQpqqyYidYmg=; b=ZbFOdlwb8d/3/qPiAZzJL0HBmVviHBBd03iYxBy0uRShht0Som6FwnDOO7F4ROTHGf 0DRpPkG/PJdmz0h9qKcDoPj2MvCGSKbJR8juhNas1UdjH1lGD3i8Cc2uOMdXCMs4LQTu lNy0u6FrzGZsFVDNpFj2W8rwZ2WuBETIKBT5Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0p32t2rEJNcki7qqS9LxDJb86SxhFm8dQpqqyYidYmg=; b=Yok9udA7O6yh/N9IV1qXdjGBM6jAClk3u1jij14COBEue1hEkqjaCY698ivlPk8CjC VE5wLqlRL4M8sKYHtJoakH97Fp533D45j7E1zgwNyB7Er08Nx9BExbUTSc92fVJTMLpN OcwFh9RIrzzIQbQWGKJhT+Vsg3Qz+a7KUuVK2nwzgRverk6JXTJL+tSBhTNOxcYDYkK2 +B467IlVsq/Mle47cvTKdnGmsV410UAdoGaWNdaqndRQKQZjb/96WcsnhdqtI1zxC4hc IpaxSUwghjlR8kb14yMhKcCffuYISLTuPv6sf61izcsRk/visJKGI9q1pE6u8pjVStMc 9XkQ== X-Gm-Message-State: AHYfb5j2pHNTiEsfy3hTssSsf8bNxZUBOQQ9wNF9U7cpQuoSciRtgxRA Gy1H3LjTnkUbFooH X-Received: by 10.84.224.135 with SMTP id s7mr11429222plj.238.1502332027670; Wed, 09 Aug 2017 19:27:07 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.41.135.55]) by smtp.gmail.com with ESMTPSA id s11sm7789166pgr.53.2017.08.09.19.27.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 19:27:07 -0700 (PDT) From: Guodong Xu To: xuwei5@hisilicon.com, robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, keescook@chromium.org, anton@enomsg.org, ccross@android.com, tony.luck@intel.com Subject: [PATCH v2 6/9] arm64: dts: hikey960: Add pstore support Date: Thu, 10 Aug 2017 10:26:12 +0800 Message-Id: <20170810022615.19204-7-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170810022615.19204-1-guodong.xu@linaro.org> References: <20170810022615.19204-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170809_192729_603944_94F49B21 X-CRM114-Status: UNSURE ( 9.14 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Guodong Xu , John Stultz , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch reserves some memory in the DTS and sets up a pstore device tree node to enable pstore support on HiKey960. Cc: John Stultz Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index ce5e874..7770ec7 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -39,6 +39,20 @@ reg = <0x0 0x0 0x0 0x0>; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ramoops@32000000 { + compatible = "ramoops"; + reg = <0x0 0x32000000 0x0 0x00100000>; + record-size = <0x00020000>; + console-size = <0x00020000>; + ftrace-size = <0x00020000>; + }; + }; + reboot-mode-syscon@32100000 { compatible = "syscon", "simple-mfd"; reg = <0x0 0x32100000 0x0 0x00001000>;