From patchwork Mon Aug 14 09:50:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9898457 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 EAA70602D9 for ; Mon, 14 Aug 2017 09:54:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2CA3284E4 for ; Mon, 14 Aug 2017 09:54:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5D08284FF; Mon, 14 Aug 2017 09:54:12 +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=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW 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 54FBB284E4 for ; Mon, 14 Aug 2017 09:54:12 +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=snqKZ2zFgc3h0t8+B8xfTDcif5 ymFvE5Gw3IX6Hi4oZ/d5tOVqAU0pWyacmCa8V+VO0zoRKwbC3nUzB/mgpR2wt2kAVZbC0RWjT36aA CXHcr2Yunbsi6H1F4OAhCRKL99fhsP6tW7SOwpSN2YnwMyMu64ivX4H2D/zXs6b+08RrivBppvhi9 mM1hL9JcqEnmh4pECFP6ru/LIh7lprxiHpvm1MaXga24t61rA0cmW7A1onGE2zWJSfMTMoWD4HC9B 9A7/YbY5IEWQhpuREuSv3XU862Yf9UoBoe7kvkoLt7RME1emXfyMrmJdIZ57oNZUFqfLAk9nq/8rY JCt0NpxA==; 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 1dhC4S-0007xM-E2; Mon, 14 Aug 2017 09:54:04 +0000 Received: from mail-pg0-x232.google.com ([2607:f8b0:400e:c05::232]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dhC3L-0006zN-4d for linux-arm-kernel@lists.infradead.org; Mon, 14 Aug 2017 09:52:57 +0000 Received: by mail-pg0-x232.google.com with SMTP id u185so44064992pgb.1 for ; Mon, 14 Aug 2017 02:52:33 -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=Ys7+/vu8xqmcEAaVxGy9XuRYsHNypyvPmr4DdzvyguBp7cDTVFK/PF06BNPRi90L4u RRM+9kdJDpMg6e5wLY+BHJvx7vkozag8LY3REYSOUZsqeYJ2wHp5dEu1bYMe/Sumo692 yIhMoT96B7RKjJZeRy4agcYVBIsFZpSJJs5Dc= 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=td9puErygfFN0bJrE4TphjzCyPzpgwWpLmXcR8Tn0Di1ewabItwF70yt9oLNTn47EZ 9/Z2jDfyF5Gu8nLKjhNhaWVILBkDYur6LzWwT9om58F8fE6dsaTDNNfgqilmsJsoUwPg UXZ55E1ZCSHTYnKXHGfUT9xrcf6uvt8xxrSoSBYtxAJWIA8IfwDjjuL6IDXB91zl3Xab oo753IqF9IZiUfS+yez6NAWNGXURoX/6nIwokZI7daqIdTZObIpiYnSQUSMY1KqpDaFp WPFgJZ87c4gsQmMegas1GH5nAffVgD/8nrVt3PUduBRWT0ujBXH0jycxQ4B9Cq+6fnpc Lx9w== X-Gm-Message-State: AHYfb5jvMg8z3bvjM7gC56S4XPzACQL2Pf1ye0oqJBjAzCFdFOtNT1jV N5Pmbub8jXrebFB2 X-Received: by 10.84.217.76 with SMTP id e12mr27273813plj.399.1502704353126; Mon, 14 Aug 2017 02:52:33 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.41.135.45]) by smtp.gmail.com with ESMTPSA id e63sm3468674pfc.24.2017.08.14.02.52.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Aug 2017 02:52:32 -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 v3 06/10] arm64: dts: hikey960: Add pstore support Date: Mon, 14 Aug 2017 17:50:45 +0800 Message-Id: <20170814095049.27701-7-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170814095049.27701-1-guodong.xu@linaro.org> References: <20170814095049.27701-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170814_025255_336859_C05357F4 X-CRM114-Status: UNSURE ( 8.69 ) 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>;