Skip to content

Add support for TI's MSPM0L series #90809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
2 changes: 1 addition & 1 deletion soc/ti/mspm0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "SoC Linker Script")

add_subdirectory(${SOC_SERIES})
add_subdirectory(common)

if(CONFIG_SOC_FAMILY_TI_MSPM0)
string(TOUPPER ${CONFIG_SOC} SDK_SOC_SELECT)
Expand Down
17 changes: 17 additions & 0 deletions soc/ti/mspm0/mspm0l/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# TI MSPM0L

# Copyright (c) 2025 Texas Instruments
# Copyright (c) 2025 Linumiz GmbH
# SPDX-License-Identifier: Apache-2.0

config SOC_SERIES_MSPM0L
select ARM
select CPU_CORTEX_M0PLUS
select CPU_CORTEX_M_HAS_VTOR
select CPU_HAS_ARM_MPU
select CPU_CORTEX_M_HAS_SYSTICK
select BUILD_OUTPUT_BIN
select BUILD_OUTPUT_HEX
select HAS_MSPM0_SDK
select CLOCK_CONTROL
select SOC_EARLY_INIT_HOOK
20 changes: 20 additions & 0 deletions soc/ti/mspm0/mspm0l/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# TI MSPM0L series

# Copyright (c) 2025 Texas Instruments
# Copyright (c) 2025 Linumiz GmbH
# SPDX-License-Identifier: Apache-2.0

DT_CHOSEN_Z_FLASH := zephyr,flash

config FLASH_SIZE
default $(dt_chosen_reg_size_int,$(DT_CHOSEN_Z_FLASH),0,K)

config FLASH_BASE_ADDRESS
default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_FLASH))
Comment on lines +7 to +13
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move into if part below


if SOC_SERIES_MSPM0L

config NUM_IRQS
default 32

endif # SOC_SERIES_MSPM0L
89 changes: 89 additions & 0 deletions soc/ti/mspm0/mspm0l/Kconfig.soc
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Copyright (c) 2024 Texas Instruments
# Copyright (c) 2025 Linumiz GmbH
# SPDX-License-Identifier: Apache-2.0

config SOC_SERIES_MSPM0L
bool
select SOC_FAMILY_TI_MSPM0
help
Enable support for TI MSPM0L series SoCs

config SOC_MSPM0L1105
bool
select SOC_SERIES_MSPM0L

config SOC_MSPM0L1106
bool
select SOC_SERIES_MSPM0L

config SOC_MSPM0L1117
bool
select SOC_SERIES_MSPM0L

config SOC_MSPM0L1227
bool
select SOC_SERIES_MSPM0L

config SOC_MSPM0L1228
bool
select SOC_SERIES_MSPM0L

config SOC_MSPM0L1303
bool
select SOC_SERIES_MSPM0L

config SOC_MSPM0L1304
bool
select SOC_SERIES_MSPM0L

config SOC_MSPM0L1305
bool
select SOC_SERIES_MSPM0L

config SOC_MSPM0L1306
bool
select SOC_SERIES_MSPM0L

config SOC_MSPM0L1343
bool
select SOC_SERIES_MSPM0L

config SOC_MSPM0L1344
bool
select SOC_SERIES_MSPM0L

config SOC_MSPM0L1345
bool
select SOC_SERIES_MSPM0L

config SOC_MSPM0L1346
bool
select SOC_SERIES_MSPM0L

config SOC_MSPM0L2227
bool
select SOC_SERIES_MSPM0L

config SOC_MSPM0L2228
bool
select SOC_SERIES_MSPM0L

config SOC_SERIES
default "mspm0l" if SOC_SERIES_MSPM0L

config SOC
default "mspm0l1105" if SOC_MSPM0L1105
default "mspm0l1106" if SOC_MSPM0L1106
default "mspm0l1117" if SOC_MSPM0L1117
default "mspm0l1227" if SOC_MSPM0L1227
default "mspm0l1228" if SOC_MSPM0L1228
default "mspm0l1303" if SOC_MSPM0L1303
default "mspm0l1304" if SOC_MSPM0L1304
default "mspm0l1305" if SOC_MSPM0L1305
default "mspm0l1306" if SOC_MSPM0L1306
default "mspm0l1343" if SOC_MSPM0L1343
default "mspm0l1344" if SOC_MSPM0L1344
default "mspm0l1345" if SOC_MSPM0L1345
default "mspm0l1346" if SOC_MSPM0L1346
default "mspm0l2227" if SOC_MSPM0L2227
default "mspm0l2228" if SOC_MSPM0L2228
17 changes: 17 additions & 0 deletions soc/ti/mspm0/soc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,20 @@ family:
- name: mspm0g3506
- name: mspm0g3507
- name: mspm0g3519
- name: mspm0l
socs:
- name: mspm0l1105
- name: mspm0l1106
- name: mspm0l1117
- name: mspm0l1227
- name: mspm0l1228
- name: mspm0l1303
- name: mspm0l1304
- name: mspm0l1305
- name: mspm0l1306
- name: mspm0l1343
- name: mspm0l1344
- name: mspm0l1345
- name: mspm0l1346
- name: mspm0l2227
- name: mspm0l2228