From 8851101c22087e2f7cbc48be3014d0c0bd2e21f0 Mon Sep 17 00:00:00 2001 From: Christopher Durand Date: Sat, 9 Apr 2022 23:21:15 +0200 Subject: [PATCH 1/3] [dfg] Remove all software IPs for STM32H7 dual core devices --- devices/stm32/stm32h7-45_55.xml | 5 ----- devices/stm32/stm32h7-47_57.xml | 5 ----- tools/generator/dfg/stm32/stm_device_tree.py | 3 ++- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/devices/stm32/stm32h7-45_55.xml b/devices/stm32/stm32h7-45_55.xml index 33bb351c..022c2dbd 100644 --- a/devices/stm32/stm32h7-45_55.xml +++ b/devices/stm32/stm32h7-45_55.xml @@ -330,10 +330,6 @@ - - - - @@ -341,7 +337,6 @@ - diff --git a/devices/stm32/stm32h7-47_57.xml b/devices/stm32/stm32h7-47_57.xml index 9f47206b..b94a2fa8 100644 --- a/devices/stm32/stm32h7-47_57.xml +++ b/devices/stm32/stm32h7-47_57.xml @@ -290,10 +290,6 @@ - - - - @@ -301,7 +297,6 @@ - diff --git a/tools/generator/dfg/stm32/stm_device_tree.py b/tools/generator/dfg/stm32/stm_device_tree.py index c82d11db..8ce6dcbd 100644 --- a/tools/generator/dfg/stm32/stm_device_tree.py +++ b/tools/generator/dfg/stm32/stm_device_tree.py @@ -150,7 +150,8 @@ def clean_up_version(version): software_ips = {"GFXSIMULATOR", "GRAPHICS", "FATFS", "TOUCHSENSING", "PDM2PCM", "MBEDTLS", "FREERTOS", "CORTEX_M", "NVIC", "USB_DEVICE", "USB_HOST", "LWIP", "LIBJPEG", "GUI_INTERFACE", "TRACER", - "FILEX", "LEVELX", "THREADX", "USBX", "LINKEDLIST", "NETXDUO"} + "FILEX", "LEVELX", "THREADX", "USBX", "LINKEDLIST", "NETXDUO", + "OPENAMP", "RESMGR_UTILITY"} if any(ip.get("Name").upper().startswith(p) for p in software_ips): continue From 40ca6ec64d2a01e3eecd174b97360a894fe1e73f Mon Sep 17 00:00:00 2001 From: Christopher Durand Date: Sun, 10 Apr 2022 00:32:39 +0200 Subject: [PATCH 2/3] [dfg] Fix CM4 core type for STM32H7 dual-core devices --- devices/stm32/stm32h7-45_55.xml | 2 +- devices/stm32/stm32h7-47_57.xml | 2 +- tools/generator/dfg/stm32/stm_device_tree.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/devices/stm32/stm32h7-45_55.xml b/devices/stm32/stm32h7-45_55.xml index 022c2dbd..f75e4aee 100644 --- a/devices/stm32/stm32h7-45_55.xml +++ b/devices/stm32/stm32h7-45_55.xml @@ -74,7 +74,7 @@ stm32h755zit7@m4 stm32h755zit7@m7 - + diff --git a/devices/stm32/stm32h7-47_57.xml b/devices/stm32/stm32h7-47_57.xml index b94a2fa8..e90f0460 100644 --- a/devices/stm32/stm32h7-47_57.xml +++ b/devices/stm32/stm32h7-47_57.xml @@ -32,7 +32,7 @@ stm32h757ziy6@m4 stm32h757ziy6@m7 - + diff --git a/tools/generator/dfg/stm32/stm_device_tree.py b/tools/generator/dfg/stm32/stm_device_tree.py index 8ce6dcbd..5561e202 100644 --- a/tools/generator/dfg/stm32/stm_device_tree.py +++ b/tools/generator/dfg/stm32/stm_device_tree.py @@ -76,7 +76,7 @@ def _properties_from_partname(partname): def _properties_from_id(comboDeviceName, device_file, did, core): if core.endswith("m4") or core.endswith("m7") or core.endswith("m33"): core += "f" - if did.family in ["h7"] or (did.family in ["f7"] and did.name not in ["45", "46", "56"]): + if (did.family in ["h7"] and "m7" in core) or (did.family in ["f7"] and did.name not in ["45", "46", "56"]): core += "d" if "@" in did.naming_schema: did.set("core", core[7:9]) From 1be87ebc889aaf759fb5e37c6d5e5486615b6c99 Mon Sep 17 00:00:00 2001 From: Christopher Durand Date: Sun, 11 Dec 2022 13:25:03 +0100 Subject: [PATCH 3/3] Update STM32H7 device files --- devices/stm32/stm32h7-23_33.xml | 3 +-- devices/stm32/stm32h7-25_35.xml | 3 +-- devices/stm32/stm32h7-30.xml | 3 +-- devices/stm32/stm32h7-42.xml | 2 +- devices/stm32/stm32h7-a3.xml | 3 +-- devices/stm32/stm32h7-b0.xml | 3 +-- devices/stm32/stm32h7-b3.xml | 3 +-- 7 files changed, 7 insertions(+), 13 deletions(-) diff --git a/devices/stm32/stm32h7-23_33.xml b/devices/stm32/stm32h7-23_33.xml index 9b268716..407dece6 100644 --- a/devices/stm32/stm32h7-23_33.xml +++ b/devices/stm32/stm32h7-23_33.xml @@ -573,8 +573,7 @@ - - + diff --git a/devices/stm32/stm32h7-25_35.xml b/devices/stm32/stm32h7-25_35.xml index 58f01574..a34ffd3a 100644 --- a/devices/stm32/stm32h7-25_35.xml +++ b/devices/stm32/stm32h7-25_35.xml @@ -614,8 +614,7 @@ - - + diff --git a/devices/stm32/stm32h7-30.xml b/devices/stm32/stm32h7-30.xml index 0ba9607a..794ec5a1 100644 --- a/devices/stm32/stm32h7-30.xml +++ b/devices/stm32/stm32h7-30.xml @@ -566,8 +566,7 @@ - - + diff --git a/devices/stm32/stm32h7-42.xml b/devices/stm32/stm32h7-42.xml index 1290e6ab..7b82f11f 100644 --- a/devices/stm32/stm32h7-42.xml +++ b/devices/stm32/stm32h7-42.xml @@ -2863,7 +2863,7 @@ - + diff --git a/devices/stm32/stm32h7-a3.xml b/devices/stm32/stm32h7-a3.xml index fd74b324..df08054b 100644 --- a/devices/stm32/stm32h7-a3.xml +++ b/devices/stm32/stm32h7-a3.xml @@ -591,8 +591,7 @@ - - + diff --git a/devices/stm32/stm32h7-b0.xml b/devices/stm32/stm32h7-b0.xml index 36b8269a..1bfa5642 100644 --- a/devices/stm32/stm32h7-b0.xml +++ b/devices/stm32/stm32h7-b0.xml @@ -564,8 +564,7 @@ - - + diff --git a/devices/stm32/stm32h7-b3.xml b/devices/stm32/stm32h7-b3.xml index b7847614..c88dfcf2 100644 --- a/devices/stm32/stm32h7-b3.xml +++ b/devices/stm32/stm32h7-b3.xml @@ -586,8 +586,7 @@ - - +