devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: pinephone: Add pstore support for PinePhone A64
@ 2023-07-24 21:34 Andrey Skvortsov
  2023-07-27 14:57 ` Andre Przywara
  2023-08-21 16:08 ` Pavel Machek
  0 siblings, 2 replies; 9+ messages in thread
From: Andrey Skvortsov @ 2023-07-24 21:34 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Kees Cook, Tony Luck,
	Guilherme G. Piccoli, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-hardening, Jarrah Gosbell, Arnaud Ferraris
  Cc: Andrey Skvortsov

This patch reserves some memory in the DTS and sets up a
pstore device tree node to enable pstore support.

Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>

Gbp-Pq: Topic pinephone
Gbp-Pq: Name 0161-arm64-dts-pinephone-Add-pstore-support-for-PinePhone.patch
---
 .../boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
index 87847116ab6d..84f9410b0b70 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
@@ -19,6 +19,22 @@ aliases {
 		serial0 = &uart0;
 	};
 
+	reserved-memory {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		pstore_mem: ramoops@61000000 {
+			compatible = "ramoops";
+			reg = <0x61000000 0x100000>;
+			record-size = <0x20000>;
+			console-size = <0x20000>;
+			ftrace-size = <0x20000>;
+			pmsg-size = <0x20000>;
+			ecc-size = <16>;
+		};
+	};
+
 	backlight: backlight {
 		compatible = "pwm-backlight";
 		pwms = <&r_pwm 0 50000 PWM_POLARITY_INVERTED>;
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-08-25 10:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-24 21:34 [PATCH] arm64: dts: pinephone: Add pstore support for PinePhone A64 Andrey Skvortsov
2023-07-27 14:57 ` Andre Przywara
2023-07-28 20:25   ` Andrey Skvortsov
2023-08-21 16:08 ` Pavel Machek
2023-08-22  9:23   ` [PATCH v2] " Andrey Skvortsov
2023-08-23 19:36     ` Jernej Škrabec
2023-08-24 13:50       ` Andre Przywara
2023-08-25 10:36         ` Andrey Skvortsov
2023-08-22  9:26   ` [PATCH] " Andrey Skvortsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).