Revert "Revert "Add STM32H573i-DK platform""

This reverts commit 822806ce807c071a6131d25cbc43490bae3e53b3.

Reason for revert: The original issue is fixed and positively tested.

Change-Id: If912f709f42af5af95d4e085f3e71348f55bcab3
diff --git a/lava_helper/jinja2_templates/stm32h573i_dk.jinja2 b/lava_helper/jinja2_templates/stm32h573i_dk.jinja2
new file mode 100644
index 0000000..c1aa3c4
--- /dev/null
+++ b/lava_helper/jinja2_templates/stm32h573i_dk.jinja2
@@ -0,0 +1,45 @@
+{#------------------------------------------------------------------------------
+# Copyright (c) 2020-2023, Arm Limited and Contributors. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-----------------------------------------------------------------------------#}
+{% extends 'jinja2_templates/base.jinja2' %}
+{% block actions %}
+actions:
+    - deploy:
+        timeout:
+          minutes: 12
+        to: flasher
+        images:
+          tarball:
+            url: {{ tarball_url }}
+
+    - boot:
+        method: minimal
+
+    - test:
+        monitors:
+        {%- for monitor in monitors %}
+        - name: "{{monitor.name}}"
+          start: "{{monitor.start}}"
+          end: "{{monitor.end}}"
+          pattern: "{{monitor.pattern}}"
+          fixupdict:
+              '{{monitor.fixup.pass}}': pass
+              '{{monitor.fixup.fail}}': fail
+              {%- if monitor.fixup.skip %}
+              '{{monitor.fixup.skip}}': skip
+              {%- endif %}
+        {% endfor %}
+{% endblock %}
+
+{% block metadata %}
+metadata:
+  build_no: {{ build_no }}
+  name: {{ name }}
+  platform: {{ platform }}
+  build_name: {{ build_name }}
+  device_type: {{ device_type }}
+  build_job_url: {{ build_job_url }}
+{% endblock %}
diff --git a/lava_helper/lava_helper_configs.py b/lava_helper/lava_helper_configs.py
index 678294e..7710200 100644
--- a/lava_helper/lava_helper_configs.py
+++ b/lava_helper/lava_helper_configs.py
@@ -285,6 +285,24 @@
     }
 }
 
+# STM32H5 STM32H573I-DK
+stm32h573i_dk = {
+    "templ": "stm32h573i_dk.jinja2",
+    "job_name": "stm32h573i_dk",
+    "device_type": "stm32h573i-dk",
+    "job_timeout": 5,
+    "action_timeout": 3,
+    "monitor_timeout": 3,
+    "poweroff_timeout": 2,
+    "platforms": {"stm/stm32h573i_dk": ""},
+    "binaries": {
+        "tarball": "spe/api_ns/bin/stm32h573i_dk-tfm.tar.bz2",
+    },
+    "monitors": {
+        'reg_tests': reg_tests_monitors,
+    }
+}
+
 # LPCxpresso55S69
 lpcxpresso55s69 = {
     "templ": "lpcxpresso55s69.jinja2",
@@ -335,6 +353,7 @@
     "musca_b1": musca_b1_bl2,
 # remove this platform trmporary to enable progress   "stm32l562e_dk": stm32l562e_dk,
     "b_u585i_iot02a": b_u585i_iot02a,
+    "stm32h573i_dk": stm32h573i_dk
 }
 
 # Configs without bl2