Skip to content

Commit e8ce359

Browse files
nordic-krchrlubos
authored andcommitted
[nrf fromlist] dts: nordic: Add nrf-tbm (trace buffer monitor) node
Add new binding and a node to nrf54h20. Update Kconfig and nrfx_config to include nrfx_tbm driver when node with that compatible is enabled. Upstream PR: zephyrproject-rtos/zephyr#72476 Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 3b6c6e0 commit e8ce359

File tree

5 files changed

+37
-0
lines changed

5 files changed

+37
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright (c) 2024 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: Nordic TBM (Trace Buffer Monitor)
5+
6+
compatible: "nordic,nrf-tbm"
7+
8+
include: base.yaml
9+
10+
properties:
11+
reg:
12+
required: true
13+
14+
interrupts:
15+
required: true

dts/common/nordic/nrf54h20.dtsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,19 @@
355355
};
356356
};
357357

358+
tdd_peripherals: peripheral@bf000000 {
359+
#address-cells = <1>;
360+
#size-cells = <1>;
361+
ranges = <0x0 0xbf000000 0x1000000>;
362+
363+
tbm: tbm@3000 {
364+
compatible = "nordic,nrf-tbm";
365+
reg = <0x3000 0x408>;
366+
status = "disabled";
367+
interrupts = <127 NRF_DEFAULT_IRQ_PRIORITY>;
368+
};
369+
};
370+
358371
global_peripherals: peripheral@5f000000 {
359372
#address-cells = <1>;
360373
#size-cells = <1>;

modules/hal_nordic/nrfx/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ zephyr_library_sources_ifdef(CONFIG_NRFX_SPI ${SRC_DIR}/nrfx_spi.c)
117117
zephyr_library_sources_ifdef(CONFIG_NRFX_SPIM ${SRC_DIR}/nrfx_spim.c)
118118
zephyr_library_sources_ifdef(CONFIG_NRFX_SPIS ${SRC_DIR}/nrfx_spis.c)
119119
zephyr_library_sources_ifdef(CONFIG_NRFX_SYSTICK ${SRC_DIR}/nrfx_systick.c)
120+
zephyr_library_sources_ifdef(CONFIG_NRFX_TBM ${SRC_DIR}/nrfx_tbm.c)
120121
zephyr_library_sources_ifdef(CONFIG_NRFX_TEMP ${SRC_DIR}/nrfx_temp.c)
121122
zephyr_library_sources_ifdef(CONFIG_NRFX_TIMER ${SRC_DIR}/nrfx_timer.c)
122123
zephyr_library_sources_ifdef(CONFIG_NRFX_TWI ${SRC_DIR}/nrfx_twi.c)

modules/hal_nordic/nrfx/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,10 @@ config NRFX_SYSTICK
523523
bool "SYSTICK driver"
524524
depends on CPU_CORTEX_M_HAS_SYSTICK
525525

526+
config NRFX_TBM
527+
bool "TBM driver"
528+
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_TBM))
529+
526530
config NRFX_TEMP
527531
bool "TEMP driver"
528532
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_TEMP))

modules/hal_nordic/nrfx/nrfx_config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,10 @@
505505
#define NRFX_SYSTICK_CONFIG_LOG_ENABLED 1
506506
#endif
507507

508+
#ifdef CONFIG_NRFX_TBM
509+
#define NRFX_TBM_ENABLED 1
510+
#endif
511+
508512
#ifdef CONFIG_NRFX_TEMP
509513
#define NRFX_TEMP_ENABLED 1
510514
#endif

0 commit comments

Comments
 (0)