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: 109761 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1716179qge; Wed, 9 Aug 2017 19:27:13 -0700 (PDT) X-Received: by 10.98.133.211 with SMTP id m80mr10264296pfk.164.1502332033099; Wed, 09 Aug 2017 19:27:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502332033; cv=none; d=google.com; s=arc-20160816; b=shVdtVROeAq0Ex6PJfwZ5hRssfkMiHsGivPehPQ5ZUq2lpfCBE5ijN/alv+sgDuRGu suyNBVYuGmenex2GMJo3SgdN2x4QTPfYENPaSHq+l33LEmZ1fayZAZynPcTaAr3BsXfg dH89sUYHJYc9ZKAwlD4qiTKkRbI+2jClAWfcRGiJvDUbkMiO6EJs/ap/byI6mTmAF+xJ jIZDmvK36hNP7miYpds3vV8lN6l4wQ5OCOsIejdK18PFyyM0WgxOQfKRi7k59p24Aq04 8emJw9boP68+pw1E389BDbYadtXwJNbJJda5UqKBam8pLDo24pllKA7JhCR7BPJFVGCV 6FBQ== 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=QEQfewElvbK7VEM7n3LKKDVF8CRgso5tKa+CBh2ITZJmi32c4BUSYnE0x50qejS225 Jd6YoWnRbMSvjjZLbkZeH+1nlV7QJhyjzfTzjoYYVIO0gTbSi/iafjJ/PGLWa0MW8tiM uGrUGupZA3RTYfKZibuS+h5FVo29SMktp1MckCJts14RfCZOGMHtzYENcFVhQZ/6kTvJ fnlvNJQK/w4VryPuAvMZRNW93BTfyNK30gFOQkvjzJRUHub4gcW7tb1FSSn2E/qiXsxz 6EHMojEh6igQzKMFE8qb7S8nBuv07y7TUrApDa33b2oPkEvBFSTmhU8YVBIlPbc07EgZ 1Stg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZbFOdlwb; 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 n187si3253256pga.798.2017.08.09.19.27.12; Wed, 09 Aug 2017 19:27:13 -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.s=google header.b=ZbFOdlwb; 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 S1752651AbdHJC1L (ORCPT + 25 others); Wed, 9 Aug 2017 22:27:11 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:33751 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752623AbdHJC1I (ORCPT ); Wed, 9 Aug 2017 22:27:08 -0400 Received: by mail-pf0-f180.google.com with SMTP id h68so35263371pfk.0 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=YLjVV8avl5IrrtT3wwxIfOy/Oq0RC3QceFqkErD/H2YV1StSfYtWd4oT/86KJtEYEe atF7KRrW6TgLUIJXhBrM6lG1VdyKPB4cxpI+yEzQzkUyVUt3nRBa14ZrP3lGRJPpRrMk TVS+l8wJdbjaF1IhFPsqiL7x7MNDhCzOvjpbDKumBi5T3hiGGjpxa/dH5eFmGjaAUzCT BkjA5gYoXaKSGjTUxIi8kzv+B8gnaPzGMS8+4Wj5aAczjlyXj4bBbZa+JOrGrWnaQCIt +Fc5rhXJ4kOPCYj8J+GOROgILtxAnfhHhMn8NYBroOtNjODBfCwycc7UCOkOeWszZGSa jn+w== X-Gm-Message-State: AHYfb5hPq+WQtE/5ZhzrpWuUHLcjjkX7WdMSzyxWxlg/Mo74EOwCwv+X Dca1nToN0l5giEiy 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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guodong Xu , John Stultz 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> 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>;