arm64: dts: ti: Add reserved memory for watchdog
authorLi Hua Qian <huaqian.li@siemens.com>
Wed, 17 Jan 2024 06:06:56 +0000 (14:06 +0800)
committerVignesh Raghavendra <vigneshr@ti.com>
Sat, 17 Feb 2024 11:27:38 +0000 (16:57 +0530)
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@siemens.com>
Link: https://lore.kernel.org/r/20240117060654.109424-1-huaqian.li@siemens.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi

index bb6b6db12bce9bb8f0be42d3931629821128e0d2..ef34b851e178a726561b38399bb51b0c1e0aeb54 100644 (file)
                        alignment = <0x1000>;
                        no-map;
                };
+
+               /* To reserve the power-on(PON) reason for watchdog reset */
+               wdt_reset_memory_region: wdt-memory@a2200000 {
+                       reg = <0x00 0xa2200000 0x00 0x1000>;
+                       no-map;
+               };
        };
 
        leds {
        mboxes = <&mailbox0_cluster1 &mbox_mcu_r5fss0_core1>;
 };
 
+&mcu_rti1 {
+       memory-region = <&wdt_reset_memory_region>;
+};
+
 &icssg0_mdio {
        status = "okay";
        pinctrl-names = "default";