Skip to content

Commit 8c08c5a

Browse files
committed
soc: sercomm: Add support for TPM530M
Added support for Sercomm TPM530M. Signed-off-by: Tommi Kangas <[email protected]>
1 parent fbe765a commit 8c08c5a

File tree

9 files changed

+130
-1
lines changed

9 files changed

+130
-1
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,7 @@
748748
# SoC
749749
/soc/nordic/ @nrfconnect/ncs-code-owners
750750
/soc/nordic/nrf71/ @nrfconnect/ncs-code-owners @rob-robinson-14 @Hi-Im-David
751+
/soc/sercomm/ @nrfconnect/ncs-code-owners @tokangas
751752

752753
# These snippet entries must be below other snippet entries (excluding doc), do not move
753754
/snippets/ @nrfconnect/ncs-co-build-system

dts/arm/sercomm/tpm530m.dtsi

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include <mem.h>
8+
#include <nordic/nrf91.dtsi>
9+
10+
&flash0 {
11+
reg = <0x00000000 DT_SIZE_K(1024)>;
12+
};
13+
14+
&sram0 {
15+
reg = <0x20000000 DT_SIZE_K(256)>;
16+
};
17+
18+
/ {
19+
soc {
20+
compatible = "sercomm,tpm530m", "nordic,nrf9120",
21+
"nordic,nrf91", "simple-bus";
22+
};
23+
};

dts/arm/sercomm/tpm530mns.dtsi

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include <mem.h>
8+
#include <nordic/nrf91ns.dtsi>
9+
10+
&flash0 {
11+
reg = <0x00000000 DT_SIZE_K(1024)>;
12+
};
13+
14+
&sram0 {
15+
reg = <0x20000000 DT_SIZE_K(256)>;
16+
};
17+
18+
/ {
19+
soc {
20+
compatible = "sercomm,tpm530m", "nordic,nrf9120",
21+
"nordic,nrf91", "simple-bus";
22+
};
23+
};

dts/bindings/vendor-prefixes.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
pixart PixArt Imaging Inc.
21
caf Common Application Framework
2+
pixart PixArt Imaging Inc.
3+
sercomm Sercomm Corporation

soc/sercomm/nrf91/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
2+
3+
add_subdirectory(${ZEPHYR_BASE}/soc/nordic soc_family)

soc/sercomm/nrf91/Kconfig.defconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Sercomm modules with Nordic Semiconductor nRF91 SoC
2+
3+
# Copyright (c) 2025 Nordic Semiconductor ASA
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
6+
if SOC_SERIES_NRF91X
7+
8+
rsource "Kconfig.defconfig.tpm530m"
9+
10+
source "soc/nordic/nrf91/Kconfig.defconfig"
11+
12+
endif # SOC_SERIES_NRF91X
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Sercomm TPM530M module
2+
3+
# Copyright (c) 2025 Nordic Semiconductor ASA
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
6+
if SOC_TPM530M
7+
8+
config NUM_IRQS
9+
default 65
10+
11+
endif # SOC_TPM530M

soc/sercomm/nrf91/Kconfig.soc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Sercomm modules with Nordic Semiconductor nRF91 SoC
2+
3+
# Copyright (c) 2025 Nordic Semiconductor ASA
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
6+
config SOC_TPM530M
7+
bool
8+
select SOC_NRF9120
9+
10+
config SOC
11+
default "tpm530m" if SOC_TPM530M
12+
13+
source "soc/nordic/nrf91/Kconfig.soc"

soc/sercomm/nrf91/soc.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
family:
2+
- name: nordic_nrf
3+
series:
4+
- name: nrf91
5+
socs:
6+
- name: tpm530m
7+
8+
# Recovery/erase is only needed once per core. Prevent resetting the cores whilst flashing
9+
# multiple images until all images for each core have been flashed, this allows security
10+
# bits to be set during programming without them interfering with additional flashing
11+
# operations.
12+
runners:
13+
run_once:
14+
'--recover':
15+
- runners:
16+
- nrfjprog
17+
- nrfutil
18+
run: first
19+
groups:
20+
- qualifiers:
21+
- tpm530m
22+
- tpm530m/ns
23+
'--erase':
24+
- runners:
25+
- nrfjprog
26+
- jlink
27+
- nrfutil
28+
run: first
29+
groups:
30+
- qualifiers:
31+
- tpm530m
32+
- tpm530m/ns
33+
'--reset':
34+
- runners:
35+
- nrfjprog
36+
- jlink
37+
- nrfutil
38+
run: last
39+
groups:
40+
- qualifiers:
41+
- tpm530m
42+
- tpm530m/ns

0 commit comments

Comments
 (0)