arm64: dts: apq8016-sbc: Add ramoops
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 1 Feb 2017 10:24:24 +0000 (02:24 -0800)
committerAndy Gross <andy.gross@linaro.org>
Wed, 29 Mar 2017 18:41:47 +0000 (13:41 -0500)
Declare a ramoops memory segment to aid debugging for those without UART
access. Verified to carry console log when holding volume down for 15
seconds.

No memory region for ramoops-like support was found downstream, so the
arbitrarily picked region is the last MB of System RAM.

Cc: John Stultz <john.stultz@linaro.org>
Cc: Mart Raudsepp <leio@gentoo.org>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi

index eac5389..a17f5b9 100644 (file)
                stdout-path = "serial0";
        };
 
+       reserved-memory {
+               ramoops@bff00000{
+                       compatible = "ramoops";
+                       reg = <0x0 0xbff00000 0x0 0x100000>;
+
+                       record-size = <0x20000>;
+                       console-size = <0x20000>;
+                       ftrace-size = <0x20000>;
+               };
+       };
+
        soc {
                dma@7884000 {
                        status = "okay";