From patchwork Mon Aug 22 22:48:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 74475 Delivered-To: patches@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1800075qga; Mon, 22 Aug 2016 15:48:18 -0700 (PDT) X-Received: by 10.67.16.42 with SMTP id ft10mr46586561pad.133.1471906095891; Mon, 22 Aug 2016 15:48:15 -0700 (PDT) Return-Path: Received: from mail-pf0-x229.google.com (mail-pf0-x229.google.com. [2607:f8b0:400e:c00::229]) by mx.google.com with ESMTPS id m189si347200pfm.95.2016.08.22.15.48.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Aug 2016 15:48:15 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::229 as permitted sender) client-ip=2607:f8b0:400e:c00::229; 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::229 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pf0-x229.google.com with SMTP id h186so36497605pfg.3 for ; Mon, 22 Aug 2016 15:48:15 -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=0H/Pr+4rwjvCTxs6fBCf607gfOnL0K4LFfJTiLpll90=; b=U0tvSujzUA4Qz+19YIHSwJEDRBx/G8joFRwxHm7kcHWVO5t27q6WK0wwT4pny/sZ3a o72humzGobp3V+ymHZSKaNHIcieYwJFGbVfrXTFi4Be7ZZ5zhUn3StKjesnJt6ewhgn6 It+cc8L1/CinTo1Xx4BsAFp2r2NpO4ewUM2BY= 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=0H/Pr+4rwjvCTxs6fBCf607gfOnL0K4LFfJTiLpll90=; b=UUq+lo7sajlPlt9iYvdCLqxKUeI0S6Yxl6gLjmvP/ZgrADdHn94Vk399kcA6CVY1uu nl45/a6UUHQf036XD2eB4TwsRccOJRlv9rBJZDVGE7+a1udoX7ZY3GJwXnWVxaocOGB8 6TcHeT/UJBnCqvZZhJO9/PWOicj/KnYbzyT5YqQ3G8Qu3/vdaQMbta3ttvo+5E014BIl wiarzZgSeNPsggmxA+oDuiFeyOp8i2NNx93tq4jexQ2CS27XTZorAHNFWWRYPkhwJ1uf vOalh5oqYiwrB1fDpgbqXK1/HWiaW8b0ok8d3N7tQXlvTBvTz4A09f+G/miCrBjUWLjF KHAw== X-Gm-Message-State: AEkoouvutPavxqX7/20q7CaEGfZ0Vmdd2F9sZjAbrQTzM+DLxTekNMoedGpUzFaRWOyqZcpnC34= X-Received: by 10.98.104.71 with SMTP id d68mr47198294pfc.163.1471906095643; Mon, 22 Aug 2016 15:48:15 -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 uc1sm189946pac.24.2016.08.22.15.48.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Aug 2016 15:48:15 -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: [PATCH 4/4] arm64: dts: hikey: Add pstore support for HiKey Date: Mon, 22 Aug 2016 15:48:05 -0700 Message-Id: <1471906085-16682-4-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1471906085-16682-1-git-send-email-john.stultz@linaro.org> References: <1471906085-16682-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 Reviewed-by: Kees Cook Signed-off-by: John Stultz --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 19 ++++++++++++++++++- 1 file changed, 18 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 4492a15..9508f28 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,9 +41,25 @@ <0x00000000 0x05f00000 0x00000000 0x00001000>, <0x00000000 0x05f02000 0x00000000 0x00efd000>, <0x00000000 0x06e00000 0x00000000 0x0060f000>, - <0x00000000 0x07410000 0x00000000 0x36bf0000>; + <0x00000000 0x07410000 0x00000000 0x1aaf0000>, + <0x00000000 0x22000000 0x00000000 0x1c000000>; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ramoops@0x21f00000 { + compatible = "ramoops"; + reg = <0x0 0x21f00000 0x0 0x00100000>; + record-size = <0x00020000>; + console-size = <0x00020000>; + ftrace-size = <0x00020000>; + }; + }; + + reboot-mode-syscon@5f01000 { compatible = "syscon", "simple-mfd"; reg = <0x0 0x05f01000 0x0 0x00001000>;