From patchwork Mon Aug 8 23:48:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 73496 Delivered-To: patches@linaro.org Received: by 10.140.29.52 with SMTP id a49csp213343qga; Mon, 8 Aug 2016 16:48:46 -0700 (PDT) X-Received: by 10.66.181.16 with SMTP id ds16mr167805891pac.102.1470700126667; Mon, 08 Aug 2016 16:48:46 -0700 (PDT) Return-Path: Received: from mail-pf0-x233.google.com (mail-pf0-x233.google.com. [2607:f8b0:400e:c00::233]) by mx.google.com with ESMTPS id h185si39329509pfe.82.2016.08.08.16.48.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Aug 2016 16:48:46 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::233 as permitted sender) client-ip=2607:f8b0:400e:c00::233; 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::233 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pf0-x233.google.com with SMTP id y134so123668939pfg.0 for ; Mon, 08 Aug 2016 16:48:46 -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=BjNbt7IaR3hdlz/D4JMKzw3B4asmvt4mAkqlbXL+IpM=; b=f/RJPHA+Ay44TkgBW9WIoAZ0HcdPy9EC/dV/3/f5pleVAY3wiA41N3xg8GhjwtEvlI YU11onqtwitvfRsQtK+jQLXcjx3rKDQwtSAen8TWaCyoyBznVrcyEXRcp0oH5EVa6EZ9 pxjgdyC8rM6A1hVmDhHo4hYxy19WcyGwtYC5Y= 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=BjNbt7IaR3hdlz/D4JMKzw3B4asmvt4mAkqlbXL+IpM=; b=TGOZP6Lb9joi1NsR0av5gv1yZFPhnAw8AEuOZIiHRff4ZdlvBZe2cgd/YNe2btli0K ZYfVIWOnWu2nhnMok73+oUnoKOwmuJ3PZPh3FW/KTFs4VZgNUTAUhfe+HelzFzIVryNi D8auSneXijxbTMXjVQoaBTnqEKnZdPQPJKDVljvj3Z9GVZWjMO3bXiAojVApSwO0RSST cQhOFowk8762ieJvtaSDlt/y+xtivtZAC/sZgjM8A0/IzK48ugUSs6hzE32J0qBUzISF dwl6yK0g+ljOrxuT7P/dbIp5R4xft7RQsz+eUl9WHOkbrDgQz/XJn7Wh8myv7Sw99jXL ONFA== X-Gm-Message-State: AEkoouvdDikCKuwz83wGxfslrCwxkD0hpNsbzi0PwT+ONCdwUGHSYCze3LcmxKnMYz/9RNGoRfo= X-Received: by 10.98.196.77 with SMTP id y74mr166173030pff.97.1470700126404; Mon, 08 Aug 2016 16:48:46 -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 f3sm50676361pff.26.2016.08.08.16.48.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Aug 2016 16:48:45 -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 v2] arm64: dts: hikey: Add pstore support for HiKey Date: Mon, 8 Aug 2016 16:48:40 -0700 Message-Id: <1470700120-26510-1-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: 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 --- v2: Quick rework to update to new ramoops format. 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 b2683e4..748d0dc 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>;