Skip to content

Commit a8ad986

Browse files
committed
samples: usb: uac2_implicit: DT configuration
Reserve memory in RAM3x for TDM on FLPR. Disable can120 to use 9.4 and 9.5 for debugging. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 978f863 commit a8ad986

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

samples/subsys/usb/uac2_implicit_feedback/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,24 @@ i2s_rxtx: &tdm130 {
3131
status = "okay";
3232
};
3333

34+
/* Reduce app dma region to allow RAM3x space for FLPR (TDM). */
3435
&cpuapp_dma_region {
3536
status = "okay";
37+
reg = <0x2fc12000 3584>;
38+
};
39+
40+
/ {
41+
reserved-memory {
42+
cpuflpr_dma_region: memory@2fc12e00 {
43+
compatible = "nordic,owned-memory", "zephyr,memory-region";
44+
reg = <0x2fc12e00 512>;
45+
status = "okay";
46+
#memory-region-cells = <0>;
47+
nordic,access = <NRF_OWNER_ID_APPLICATION NRF_PERM_RW>;
48+
zephyr,memory-region = "DMA_RAM3x_FLPR";
49+
zephyr,memory-attr = <( DT_MEM_DMA )>;
50+
};
51+
};
3652
};
3753

3854
/* PPI channel 0 for TDM130 MAXCNT */
@@ -71,3 +87,8 @@ i2s_rxtx: &tdm130 {
7187
&timer131 {
7288
status = "okay";
7389
};
90+
91+
/* To allow use of 9.4 and 9.5 pins for debugging. */
92+
&can120 {
93+
status = "disabled";
94+
};
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1+
/* Reserve memory in RAM3x that can be used by TDM on FLPR. Current <128 bytes is needed. */
2+
&cpuapp_dma_region {
3+
status = "okay";
4+
reg = <0x2fc12000 3584>;
5+
};
16

7+
/ {
8+
reserved-memory {
9+
cpuflpr_dma_region: memory@2fc12e00 {
10+
compatible = "nordic,owned-memory", "zephyr,memory-region";
11+
reg = <0x2fc12e00 512>;
12+
status = "okay";
13+
#memory-region-cells = <0>;
14+
nordic,access = <NRF_OWNER_ID_APPLICATION NRF_PERM_RW>;
15+
zephyr,memory-region = "DMA_RAM3x_FLPR";
16+
zephyr,memory-attr = <( DT_MEM_DMA )>;
17+
};
18+
};
19+
};
20+
21+
&tdm130 {
22+
status = "reserved";
23+
memory-regions = <&cpuflpr_dma_region>;
24+
};

0 commit comments

Comments
 (0)