Skip to content
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

Tddconf flexible etrbuffer #2218

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20-memory_map.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,6 @@
};
};

etr_buf_ram0x_region: memory@2f0be000 {
compatible = "nordic,owned-memory";
reg = <0x2f0be000 DT_SIZE_K(4)>;
status = "disabled";
nordic,access = <NRF_OWNER_ID_APPLICATION NRF_PERM_RWS>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x2f0be000 0x1000>;

/* TODO In future move this region to cpuapp_ram0x_region. */
etr_buffer: memory@0 {
reg = <0x0 DT_SIZE_K(4)>;
};
};

cpuapp_cpurad_ram0x_region: memory@2f0bf000 {
compatible = "nordic,owned-memory";
reg = <0x2f0bf000 DT_SIZE_K(4)>;
Expand Down
4 changes: 0 additions & 4 deletions boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpuapp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@
status = "okay";
};

&etr_buf_ram0x_region {
status = "okay";
};

&ram21_region {
status = "okay";
};
Expand Down
4 changes: 4 additions & 0 deletions dts/bindings/arm/nordic,nrf-tddconf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ properties:
- 1
- 2
- 3

etrbuffer:
description: phandle to the memory region used for the ETR buffer
type: phandle
19 changes: 19 additions & 0 deletions snippets/nordic-log-stm-dict/boards/nrf54h20_cpuapp.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@
* SPDX-License-Identifier: Apache-2.0
*/

/ {

Check warning on line 6 in snippets/nordic-log-stm-dict/boards/nrf54h20_cpuapp.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

snippets/nordic-log-stm-dict/boards/nrf54h20_cpuapp.overlay:6 please, no spaces at the start of a line
reserved-memory {
etr_buf_ram0x_region: memory@2f0be000 {
compatible = "nordic,owned-memory";
reg = <0x2f0be000 DT_SIZE_K(4)>;
status = "okay";
nordic,access = <NRF_OWNER_ID_APPLICATION NRF_PERM_RWS>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x2f0be000 0x1000>;

etr_buffer: memory@0 {
reg = <0x0 DT_SIZE_K(4)>;
};
};
};
};

&tbm {
status = "okay";
};
Expand All @@ -12,4 +30,5 @@
etrsources = <(NRF_TDDCONF_SOURCE_STMMAINCORE | NRF_TDDCONF_SOURCE_STMPPR |
NRF_TDDCONF_SOURCE_STMFLPR)>;
portconfig = <0>;
etrbuffer = <&etr_buffer>;
};
20 changes: 20 additions & 0 deletions snippets/nordic-log-stm/boards/nrf54h20_cpuapp.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@
* SPDX-License-Identifier: Apache-2.0
*/

/ {

Check warning on line 6 in snippets/nordic-log-stm/boards/nrf54h20_cpuapp.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

snippets/nordic-log-stm/boards/nrf54h20_cpuapp.overlay:6 please, no spaces at the start of a line
reserved-memory {
etr_buf_ram0x_region: memory@2f0be000 {
compatible = "nordic,owned-memory";
reg = <0x2f0be000 DT_SIZE_K(4)>;
status = "okay";
nordic,access = <NRF_OWNER_ID_APPLICATION NRF_PERM_RWS>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x2f0be000 0x1000>;

etr_buffer: memory@0 {
reg = <0x0 DT_SIZE_K(4)>;
};
};
};
};


&tbm {
status = "okay";
};
Expand All @@ -12,4 +31,5 @@
etrsources = <(NRF_TDDCONF_SOURCE_STMMAINCORE | NRF_TDDCONF_SOURCE_STMPPR |
NRF_TDDCONF_SOURCE_STMFLPR)>;
portconfig = <0>;
etrbuffer = <&etr_buffer>;
};
Loading