From patchwork Mon Aug 8 23:03:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 73483 Delivered-To: patches@linaro.org Received: by 10.140.29.52 with SMTP id a49csp200863qga; Mon, 8 Aug 2016 16:03:58 -0700 (PDT) X-Received: by 10.98.41.195 with SMTP id p186mr163291447pfp.81.1470697435699; Mon, 08 Aug 2016 16:03:55 -0700 (PDT) Return-Path: Received: from mail-pf0-x22c.google.com (mail-pf0-x22c.google.com. [2607:f8b0:400e:c00::22c]) by mx.google.com with ESMTPS id fc9si18340939pac.103.2016.08.08.16.03.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Aug 2016 16:03:55 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::22c as permitted sender) client-ip=2607:f8b0:400e:c00::22c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::22c as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pf0-x22c.google.com with SMTP id p64so123506494pfb.1 for ; Mon, 08 Aug 2016 16:03:55 -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=3vkDOaomConF4+Ki4URt4TLl8Zcnqfn+xBZz5IgidGw=; b=hAm/SS3BBCWLz+WxeVqvcXIpl05M/9i9LZ5Ej3hA6/geCtfX7rCHaPbptrgRTZHPR6 h54aZfUzrGSfXq7RdDs02qk+7dK7+4g771h1vr+OgcEgaioqPL9Levt1jnxy5MtcMPT7 W/BUramDyktN1kUtnDlMBooBDlUt+w3jF8Hgk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3vkDOaomConF4+Ki4URt4TLl8Zcnqfn+xBZz5IgidGw=; b=IRJ0UH312aXGnXAHix0J2jAmVJG/4HDpOlgYmBBJLk3sri5R8w7Gfiyv9p697+kQXj 0sRcTty48Cnf3dXiPhTQcD4LMV23Gre88TDwysH4VJ/01OP8lixtiqJxgEbMsDuctfoN J51CN4Ce8y6rrY2yECOXqzAXifRg3sp5LytdaCfa7RLq6hkvDQRr17L4SJByNinA1OO5 eJvkOs3c4teGzOnT+NJmPh4F3r4FGPfsaqAZjVGiVx40GP2AdFlQ6QJxARL1BBpKBrxE 7+zDw4YE3CXkgHHEPP133Zpk4+XhX/sPIaV+EMCwnFepdm5QGcvFNiKH9pEwTx5/g83O k/gQ== X-Gm-Message-State: AEkooutumt8zO3TveOP+CMrfVtH1wuUND2CX9y7DC3oHFcF+64duTW8+z2NWs+tJqwxeFh3WOwg= X-Received: by 10.98.20.201 with SMTP id 192mr168260136pfu.144.1470697435447; Mon, 08 Aug 2016 16:03:55 -0700 (PDT) Return-Path: Received: from localhost.localdomain (c-73-67-244-238.hsd1.or.comcast.net. [73.67.244.238]) by smtp.gmail.com with ESMTPSA id ya6sm50704975pab.22.2016.08.08.16.03.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Aug 2016 16:03:54 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Kees Cook , Guodong Xu , Haojian Zhuang , Wei Xu , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [RFC][PATCH 4/4] arm64: dts: hikey: Add pstore support for HiKey Date: Mon, 8 Aug 2016 16:03:46 -0700 Message-Id: <1470697426-16426-4-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1470697426-16426-1-git-send-email-john.stultz@linaro.org> References: <1470697426-16426-1-git-send-email-john.stultz@linaro.org> This patch reserves some memory in the DTS and sets up a pstore device tree node to enable pstore support on HiKey. Cc: Kees Cook Cc: Guodong Xu Cc: Haojian Zhuang Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org Signed-off-by: John Stultz --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) -- 1.9.1 diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index b2683e4..9140306 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -32,6 +32,7 @@ * 0x05f0,1000 - 0x05f0,1fff: Reboot reason * 0x06df,f000 - 0x06df,ffff: Mailbox message data * 0x0740,f000 - 0x0740,ffff: MCU firmware section + * 0x21f0,0000 - 0x21ff,ffff: pstore/ramoops buffer * 0x3e00,0000 - 0x3fff,ffff: OP-TEE */ memory@0 { @@ -40,7 +41,21 @@ <0x00000000 0x05f00000 0x00000000 0x00001000>, <0x00000000 0x05f02000 0x00000000 0x00efd000>, <0x00000000 0x06e00000 0x00000000 0x0060f000>, - <0x00000000 0x07410000 0x00000000 0x36bf0000>; + <0x00000000 0x07410000 0x00000000 0x1aaf0000>, + <0x00000000 0x22000000 0x00000000 0x1c000000>; + }; + + pstore: pstore@0x21f00000 { + no-map; + reg = <0x0 0x21f00000 0x0 0x00100000>; /* pstore buffer */ + }; + + ramoops { + compatible = "ramoops"; + memory-region = <&pstore>; + record-size = <0x0 0x00020000>; + console-size = <0x0 0x00020000>; + ftrace-size = <0x0 0x00020000>; }; reboot-mode-syscon@5f01000 {