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: 9294503 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 44DC4607F0 for ; Mon, 22 Aug 2016 22:50:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 333A928AD1 for ; Mon, 22 Aug 2016 22:50:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27D4228AD7; Mon, 22 Aug 2016 22:50:43 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BEDAB28AD1 for ; Mon, 22 Aug 2016 22:50:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bby23-0006dY-J9; Mon, 22 Aug 2016 22:49:27 +0000 Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bby1E-0006JW-TV for linux-arm-kernel@lists.infradead.org; Mon, 22 Aug 2016 22:48:38 +0000 Received: by mail-pf0-x22a.google.com with SMTP id h186so36497609pfg.3 for ; Mon, 22 Aug 2016 15:48: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=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=ibJ3JzOLoYRRyRb6607FnAqaRDErqTv30kez3Bc1EgGeD0df/ASo1Ss6l7YW/maaGr jvtaqMiOWZZdZJ7qlkHXPMMvul/vMuVq5opQHDG5CrqFU+kwTjouqOH3N6Kqsco1prRS Y6FP9Ce73gX0NZDcmdrGKfWjSWYSlvhNneTXFcmLrq2f/s+BkmCirkvxV756FnFRN6Eb V/Es4y7mnpGS47Ppsv4woOKg0Ea0POiDcSXMC6jE+slrKR2EGNbmJbSF5U5k6dvM6Ly6 1qDNzyB8PVLH/U6IrhOMvZRNHgcBpgBWofItefs7xUYK5+bYBMrPG66jyVz/vjLR9G3S NGug== X-Gm-Message-State: AEkoousgyfIWSryWxh3aGuXtMopw6ljs7X8Rfuv/HlEo2sxxdK5CzFC1RTeyy9ViRMcfluHe X-Received: by 10.98.104.71 with SMTP id d68mr47198294pfc.163.1471906095643; Mon, 22 Aug 2016 15:48:15 -0700 (PDT) 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160822_154837_146878_26484060 X-CRM114-Status: GOOD ( 13.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Kees Cook , Guodong Xu , Catalin Marinas , Will Deacon , Wei Xu , Rob Herring , John Stultz , Haojian Zhuang , 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 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(-) 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>;