]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
iot2050: Enable watchdog support, but do not auto-start it
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 18 Sep 2021 06:17:56 +0000 (08:17 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 3 Oct 2021 18:40:56 +0000 (14:40 -0400)
This allows to use the watchdog in custom scripts but does not enforce
that the OS has to support it as well.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
arch/arm/dts/k3-am65-iot2050-boot-image.dtsi
configs/iot2050_defconfig
tools/binman/missing-blob-help

index 1e02cece6c7a5cfdb583331d5a40fe966d429a05..69479d7b18e16c124cca72ced485231cb7b882a0 100644 (file)
                                                filename = "arch/arm/dts/k3-am6548-iot2050-advanced-pg2.dtb";
                                        };
                                };
+
+#ifdef CONFIG_WDT_K3_RTI_FW_FILE
+                               k3-rti-wdt-firmware {
+                                       type = "firmware";
+                                       load = <0x82000000>;
+                                       arch = "arm";
+                                       compression = "none";
+                                       blob-ext {
+                                               filename = CONFIG_WDT_K3_RTI_FW_FILE;
+                                               missing-msg = "k3-rti-wdt-firmware";
+                                       };
+                               };
+#endif
                        };
 
                        configurations {
                                        description = "iot2050-basic";
                                        firmware = "u-boot";
                                        fdt = "fdt-iot2050-basic";
+#ifdef CONFIG_WDT_K3_RTI_FW_FILE
+                                       loadables = "k3-rti-wdt-firmware";
+#endif
                                };
 
                                conf-iot2050-basic-pg2 {
                                        description = "iot2050-basic-pg2";
                                        firmware = "u-boot";
                                        fdt = "fdt-iot2050-basic-pg2";
+#ifdef CONFIG_WDT_K3_RTI_FW_FILE
+                                       loadables = "k3-rti-wdt-firmware";
+#endif
                                };
 
                                conf-iot2050-advanced {
                                        description = "iot2050-advanced";
                                        firmware = "u-boot";
                                        fdt = "fdt-iot2050-advanced";
+#ifdef CONFIG_WDT_K3_RTI_FW_FILE
+                                       loadables = "k3-rti-wdt-firmware";
+#endif
                                };
 
                                conf-iot2050-advanced-pg2 {
                                        description = "iot2050-advanced-pg2";
                                        firmware = "u-boot";
                                        fdt = "fdt-iot2050-advanced-pg2";
+#ifdef CONFIG_WDT_K3_RTI_FW_FILE
+                                       loadables = "k3-rti-wdt-firmware";
+#endif
                                };
                        };
                };
index b5c5fd7ac181f136b5d97a873b5d045bcdca878d..72ee5c83f11b74fdc50f3bb79530fc82407e9486 100644 (file)
@@ -50,6 +50,7 @@ CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
 CONFIG_CMD_REMOTEPROC=y
 CONFIG_CMD_USB=y
+CONFIG_CMD_WDT=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_TIME=y
 # CONFIG_ISO_PARTITION is not set
@@ -127,4 +128,9 @@ CONFIG_USB_XHCI_DWC3=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GENERIC=y
 CONFIG_USB_KEYBOARD=y
+# CONFIG_WATCHDOG is not set
+# CONFIG_WATCHDOG_AUTOSTART is not set
+CONFIG_WDT=y
+CONFIG_WDT_K3_RTI=y
+CONFIG_WDT_K3_RTI_LOAD_FW=y
 CONFIG_OF_LIBFDT_OVERLAY=y
index f7bc80ea83092a7b6d591b4b285556a09a00fea5..dc2d9c98111a972af0235e434217dd99ee128391 100644 (file)
@@ -17,3 +17,8 @@ board/sunxi/README.sunxi64
 scp-sunxi:
 SCP firmware is required for system suspend, but is otherwise optional.
 Please read the section on SCP firmware in board/sunxi/README.sunxi64
+
+k3-rti-wdt-firmware:
+If CONFIG_WDT_K3_RTI_LOAD_FW is enabled, a firmware image is needed for
+the R5F core(s) to trigger the system reset. One possible source is
+https://github.com/siemens/k3-rti-wdt.