From patchwork Mon Aug 7 08:13:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9884699 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 8F491602CC for ; Mon, 7 Aug 2017 08:26:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7DD2A2859A for ; Mon, 7 Aug 2017 08:26:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 72C5F285D3; Mon, 7 Aug 2017 08:26:32 +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 131E82859A for ; Mon, 7 Aug 2017 08:26:31 +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=YM/of7YoPAzFgj8WOaj1KPn7+d Vh6ERexZ8T5oER4ANulKU3rjc+zHR0vTR+RMR6f5Pi7tj9plqsLqtSwExe/iqTh0eSjwF8MqijIMd 8Z1QvA2a4Q+HgfVNQKzVJdnNQsaHjZfP8lEEtfbb5h6IBmKde3+gJ/nCJe4I5iXTpvJun7d6Wwvtv sKW23/QTG+2QyVfyw8Aeo2gERhuzdsKJC4Old5nU3ak3q4bMb6COTkAusO7fpUYqmFJmk9U3yBhh2 /k9qHZeaKQzmsgZT0JHikawqpeRbo9eJiLaXPdybz5aGe27EXLwc3Kyv6q0xgfuUwFr0mEL17Mis2 LAjtq+ZA==; 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 1dedMl-0008MZ-EZ; Mon, 07 Aug 2017 08:26:23 +0000 Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dedBN-0000As-EK for linux-arm-kernel@lists.infradead.org; Mon, 07 Aug 2017 08:15:01 +0000 Received: by mail-pf0-x235.google.com with SMTP id h68so17173526pfk.0 for ; Mon, 07 Aug 2017 01:14:17 -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=POmq3uDdAuX19aT+ns8W4Y1b1A6VUupQcZ7/5i+/LcaLwWs92bMYTJdZJzxypVzfEU foYpyyLXFFpBLVQUsJkUwR4u/gNfTsDzHhoicJPeSgtHWcg0EBUjYELVUs6ye8d+ge53 c+C/zVgWFo2ZpnPzu5HZVbqsehENiLwJwvuXs= 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=Y77zsKjO44dBcs/BnZCOwCmTklvq1d8d2ACwnYZdAKfZjpPJEdPhBX7rDFDdO6e1rU QEe5MHMqQdKoAHzNlfhGeRbRL/FMl5BWlOnGkQZl37r60LAgmet1LUUxqy93ueXryl6b yWrqLS99yXfwv3/GPXT+P92foqZjZg2zjRxGmzo8r9DoIFtQLuJ0tzoUdQfCetv/t9uw +qH6fKUMe/eCJ8a6JktnVxL+DjFPooKRXfKVJmruAl5jfJyKHfBcAl5XKQEBk31wt2x3 w4leYUd2vo0baRMZG/0nK7VvS40WRWRmbK6Lkn2l1oQ7af0s1fgxY/R6G2ZgL87IFvE8 ruAg== X-Gm-Message-State: AIVw1138DWq3ztYiXeonm2ueEMqfiW6/0CthhUoG136/DpnnrTeqpxi0 C67B5zGrfZWi10w/ X-Received: by 10.99.97.209 with SMTP id v200mr10817849pgb.346.1502093656591; Mon, 07 Aug 2017 01:14:16 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.229]) by smtp.gmail.com with ESMTPSA id x25sm13597521pfk.80.2017.08.07.01.14.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Aug 2017 01:14:16 -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 6/7] arm64: dts: hikey960: Add pstore support Date: Mon, 7 Aug 2017 16:13:24 +0800 Message-Id: <20170807081325.11406-7-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170807081325.11406-1-guodong.xu@linaro.org> References: <20170807081325.11406-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170807_011438_617010_956FD0D1 X-CRM114-Status: UNSURE ( 8.74 ) 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>;