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: 109515 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1308411qge; Mon, 7 Aug 2017 01:14:27 -0700 (PDT) X-Received: by 10.84.216.84 with SMTP id f20mr13091394plj.311.1502093667057; Mon, 07 Aug 2017 01:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502093667; cv=none; d=google.com; s=arc-20160816; b=qTXHwHpUNTS1XJj1QaIVzGBVVQLDX4OkkA8jd9v/NBM7B7TyINqfho95oxfELLHi/D oY5QJwb2h6PpbF8m8lYX2LpYVxkJ1nJZMufsvWjYzr2Ofumg6qzaL5hkCo+ybwzFBDIZ Tcx47LTXjONgOnWUzh6ZYwebcISUb68OFKPiRrlg2wH+/4RJb0lPCdSDCvTtgTbHlhee UMFbrxE0HPW1SvoXVdMzsJqZYnPwf+WbVVqtlMnPjMm3hh9YbZaZDZR7a250PVemigor CZHPdAmfQmS83RhQfi7esmaKDQ4n1z7AEYpv3G249I5dIChcbE7EmWuTJ6l1gyBfDjWw L3xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=0p32t2rEJNcki7qqS9LxDJb86SxhFm8dQpqqyYidYmg=; b=BE9QhbshYod2ZbBnvfEzUxhYXyjgJateOg27tQFj9lyvzO9lsC15YtyC+xjKIFhi6w fkZqxZNzSKjB6ocBeORIEuv2Gku1bunE4Qa24Wl7BW+h5VzGWAMm9JPsaagoKp9675xG 15AgYPgMWN3H3TgOJdB/11BRZSpOfJPrbCXuwmKDsMQBlZpwzSwiaKT36ojop7THnRA1 GN5Ak2xHJ3f8YZStQJCeSv14DQOlmLaEpVZruDA1NX/uDdeUAATDet+nsL0CNMEBfRKe 3QwFN7YP7VqNYNoQ9S/zDvrnAOVlz4MFtZJQyxzcHdFNIy0FIsRHggNjAaWv9WPjUhMr 7/sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=POmq3uDd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x69si4390931pfj.283.2017.08.07.01.14.26; Mon, 07 Aug 2017 01:14:27 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.b=POmq3uDd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752638AbdHGIOW (ORCPT + 25 others); Mon, 7 Aug 2017 04:14:22 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:35801 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752417AbdHGIOR (ORCPT ); Mon, 7 Aug 2017 04:14:17 -0400 Received: by mail-pf0-f178.google.com with SMTP id t86so31045591pfe.2 for ; Mon, 07 Aug 2017 01:14:16 -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=rDZ/0PdUYRKonLOgpXLA+u+hJC/fi+ayU+MiXB062tNJzga6I1JSQvTrZbu+6Uaf0R Up5T7dBQ1/WvyG28PCbXraoiBoQJoZAZ2Q45BuA3043s0AuDiPHaKZQC7us3eg2wW86j WiHX9914NO++B0VZIRHVqebD6zXCq1RBCxWArv8lzgxK+b1MVd4MNDKXJQWXDcp0IUHs CvxPbuSbyZ0EAnpX/xxaglSSJDjHcFhn+9engV6N5OYVQAWIx+TXo9btLxQPs1TwtEtb wi5JZMmP4Pcoa6w8YfRs5aTd3B7VK7l657WPPTtk4w0Q/04ya42AQXDsiTeh5RWtzK9t QfVA== X-Gm-Message-State: AIVw113b06jkim7QW4IqYlGX2y2n9zyYAIC8HdYls2YXhJ31ubbIbffK 5egZLffH8vu1Z5Sj 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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guodong Xu , John Stultz 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.10.2 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>;