[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240117060654.109424-1-huaqian.li@siemens.com>
Date: Wed, 17 Jan 2024 14:06:56 +0800
From: huaqian.li@...mens.com
To: nm@...com,
vigneshr@...com,
kristo@...nel.org,
robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org,
conor+dt@...nel.org
Cc: linux-arm-kernel@...ts.infradead.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
jan.kiszka@...mens.com,
baocheng.su@...mens.com,
Li Hua Qian <huaqian.li@...mens.com>
Subject: [PATCH] arm64: dts: ti: Add reserved memory for watchdog
From: Li Hua Qian <huaqian.li@...mens.com>
This patch adds a reserved memory for the TI AM65X platform watchdog
to reserve the specific info, triggering the watchdog reset in last
boot, to know if the board reboot is due to a watchdog reset.
Signed-off-by: Li Hua Qian <huaqian.li@...mens.com>
---
The driver and binding have hit the master, which could be found in the
following link.
- watchdog:rit_wdt: Add support for WDIOF_CARDRESET
- dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=29057cc5bddc785ea0a11534d7ad2546fa0872d3
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi
index 61a634afaa4f..88321799d468 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi
@@ -75,6 +75,12 @@ rtos_ipc_memory_region: ipc-memories@...00000 {
alignment = <0x1000>;
no-map;
};
+
+ /* To reserve the power-on(PON) reason for watchdog reset */
+ wdt_reset_memory_region: wdt-memory@...00000 {
+ reg = <0x00 0xa2200000 0x00 0x1000>;
+ no-map;
+ };
};
leds {
@@ -1427,6 +1433,10 @@ &mcu_r5fss0_core1 {
mboxes = <&mailbox0_cluster1>, <&mbox_mcu_r5fss0_core1>;
};
+&mcu_rti1 {
+ memory-region = <&wdt_reset_memory_region>;
+};
+
&icssg0_mdio {
status = "okay";
pinctrl-names = "default";
--
2.34.1
Powered by blists - more mailing lists