]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Watchdog: Support WDIOF_CARDRESET on TI AM65x platform
authorLi Hua Qian <huaqian.li@siemens.com>
Tue, 29 Aug 2023 03:46:21 +0000 (11:46 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 8 Sep 2023 14:07:12 +0000 (10:07 -0400)
To have the WDIOF_CARDRESET support for the TI AM65x platform watchdog,
this patch reserves some memories, which indicate if the current boot due
to a watchdog reset.

Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
arch/arm/dts/k3-am65-iot2050-common.dtsi

index 65da226847f45b594e9c7c251b298fee5933406b..b6135b849f1ac22ad263550069600a067a763794 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 0x00001000>;
+                       no-map;
+               };
        };
 
        leds {
        mboxes = <&mailbox0_cluster1 &mbox_mcu_r5fss0_core1>;
 };
 
+&mcu_rti1 {
+       memory-region = <&wdt_reset_memory_region>;
+
+};
+
 &icssg0_mdio {
        status = "disabled";
 };