Skip to content

Commit f652d81

Browse files
kl-cruznordicjm
authored andcommitted
[nrf fromtree] tests: samples: Extend support for nRF54LM20A
Extends support and adds new overlays. Signed-off-by: Karol Lasończyk <[email protected]> Signed-off-by: Bjarki Arge Andreasen <[email protected]> Signed-off-by: Sebastian Głąb <[email protected]> (cherry picked from commit 061036f)
1 parent ef6f8c8 commit f652d81

File tree

78 files changed

+1184
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1184
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/ {
2+
cpuapp_sram@2007ec00 {
3+
compatible = "zephyr,memory-region", "mmio-sram";
4+
reg = <0x2007ec00 DT_SIZE_K(4)>;
5+
zephyr,memory-region = "RetainedMem";
6+
status = "okay";
7+
8+
retainedmem0: retainedmem {
9+
compatible = "zephyr,retained-ram";
10+
status = "okay";
11+
};
12+
};
13+
14+
aliases {
15+
retainedmemdevice = &retainedmem0;
16+
};
17+
};
18+
19+
&cpuapp_sram {
20+
/* Shrink SRAM size to avoid overlap with retained memory region:
21+
* 511 - 4 = 507KB = 0x7ec00
22+
*/
23+
reg = <0x20000000 DT_SIZE_K(507)>;
24+
ranges = <0x0 0x20000000 0x7ec00>;
25+
};

samples/boards/nordic/system_off/sample.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ tests:
1515
- nrf54l15dk/nrf54l10/cpuapp
1616
- nrf54l15dk/nrf54l15/cpuapp
1717
- nrf54l20pdk/nrf54l20/cpuapp
18+
- nrf54lm20dk/nrf54lm20a/cpuapp
1819
harness: console
1920
harness_config:
2021
type: multi_line
@@ -34,6 +35,7 @@ tests:
3435
- nrf54l15dk/nrf54l10/cpuapp
3536
- nrf54l15dk/nrf54l15/cpuapp
3637
- nrf54l20pdk/nrf54l20/cpuapp
38+
- nrf54lm20dk/nrf54lm20a/cpuapp
3739
extra_configs:
3840
- CONFIG_APP_USE_RETAINED_MEM=y
3941
harness: console
@@ -53,6 +55,7 @@ tests:
5355
- nrf54l15dk/nrf54l10/cpuapp
5456
- nrf54l15dk/nrf54l15/cpuapp
5557
- nrf54l20pdk/nrf54l20/cpuapp
58+
- nrf54lm20dk/nrf54lm20a/cpuapp
5659
extra_configs:
5760
- CONFIG_GRTC_WAKEUP_ENABLE=y
5861
- CONFIG_GPIO_WAKEUP_ENABLE=n
@@ -77,6 +80,7 @@ tests:
7780
- nrf54l15dk/nrf54l10/cpuapp
7881
- nrf54l15dk/nrf54l15/cpuapp
7982
- nrf54l20pdk/nrf54l20/cpuapp
83+
- nrf54lm20dk/nrf54lm20a/cpuapp
8084
extra_configs:
8185
- CONFIG_APP_USE_RETAINED_MEM=y
8286
- CONFIG_GRTC_WAKEUP_ENABLE=y
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&pinctrl {
8+
pdm20_default_alt: pdm20_default_alt {
9+
group1 {
10+
psels = <NRF_PSEL(PDM_CLK, 1, 23)>,
11+
<NRF_PSEL(PDM_DIN, 1, 24)>;
12+
};
13+
};
14+
};
15+
16+
dmic_dev: &pdm20 {
17+
status = "okay";
18+
pinctrl-0 = <&pdm20_default_alt>;
19+
pinctrl-names = "default";
20+
clock-source = "PCLK32M";
21+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/ {
2+
chosen {
3+
counter = &timer24;
4+
};
5+
};
6+
7+
&timer24 {
8+
status = "okay";
9+
};

samples/drivers/mbox/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP OR
2727
CONFIG_BOARD_NRF54L09PDK_NRF54L09_CPUAPP OR
2828
CONFIG_BOARD_NRF54L15DK_NRF54L15_CPUAPP OR
2929
CONFIG_BOARD_NRF54L20PDK_NRF54L20_CPUAPP OR
30+
CONFIG_BOARD_NRF54LM20DK_NRF54LM20A_CPUAPP OR
3031
CONFIG_BOARD_STM32H747I_DISCO_STM32H747XX_M7 OR
3132
CONFIG_BOARD_BL54L15_DVK_NRF54L15_CPUAPP OR
3233
CONFIG_BOARD_BL54L15U_DVK_NRF54L15_CPUAPP)

samples/drivers/mbox/Kconfig.sysbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ config REMOTE_BOARD
2121
default "nrf54l09pdk/nrf54l09/cpuflpr" if $(BOARD) = "nrf54l09pdk"
2222
default "nrf54l15dk/nrf54l15/cpuflpr" if $(BOARD) = "nrf54l15dk"
2323
default "nrf54l20pdk/nrf54l20/cpuflpr" if $(BOARD) = "nrf54l20pdk"
24+
default "nrf54lm20dk/nrf54lm20a/cpuflpr" if $(BOARD) = "nrf54lm20dk"
2425
default "ophelia4ev/cpuflpr" if $(BOARD) = "ophelia4ev"
2526
default "stm32h747i_disco/stm32h747xx/m4" if $(BOARD) = "stm32h747i_disco"
2627
default "esp32_devkitc/esp32/appcpu" if "$(BOARD)${BOARD_QUALIFIERS}" = "esp32_devkitc/esp32/procpu"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2025 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
mbox-consumer {
8+
compatible = "vnd,mbox-consumer";
9+
mboxes = <&cpuapp_vevif_rx 20>, <&cpuapp_vevif_tx 21>;
10+
mbox-names = "rx", "tx";
11+
};
12+
};
13+
14+
&cpuapp_vevif_rx {
15+
status = "okay";
16+
};
17+
18+
&cpuapp_vevif_tx {
19+
status = "okay";
20+
};

samples/drivers/mbox/remote/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUNET OR
2727
CONFIG_BOARD_NRF54L09PDK_NRF54L09_CPUFLPR OR
2828
CONFIG_BOARD_NRF54L15DK_NRF54L15_CPUFLPR OR
2929
CONFIG_BOARD_NRF54L20PDK_NRF54L20_CPUFLPR OR
30+
CONFIG_BOARD_NRF54LM20DK_NRF54LM20A_CPUFLPR OR
3031
CONFIG_BOARD_STM32H747I_DISCO_STM32H747XX_M4 OR
3132
CONFIG_BOARD_BL54L15_DVK_NRF54L15_CPUFLPR OR
3233
CONFIG_BOARD_BL54L15U_DVK_NRF54L15_CPUFLPR)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright 2025 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
mbox-consumer {
8+
compatible = "vnd,mbox-consumer";
9+
mboxes = <&cpuflpr_vevif_rx 21>, <&cpuflpr_vevif_tx 20>;
10+
mbox-names = "rx", "tx";
11+
};
12+
};
13+
14+
&cpuflpr_vevif_rx {
15+
status = "okay";
16+
};
17+
18+
&cpuflpr_vevif_tx {
19+
status = "okay";
20+
};
21+
22+
&uart30 {
23+
/delete-property/ hw-flow-control;
24+
};

samples/drivers/mbox/sample.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ tests:
1313
- nrf54l09pdk/nrf54l09/cpuapp
1414
- nrf54l15dk/nrf54l15/cpuapp
1515
- nrf54l20pdk/nrf54l20/cpuapp
16+
- nrf54lm20dk/nrf54lm20a/cpuapp
1617
integration_platforms:
1718
- nrf5340bsim/nrf5340/cpuapp
1819
harness: console
@@ -81,6 +82,7 @@ tests:
8182
- nrf54l09pdk/nrf54l09/cpuapp
8283
- nrf54l15dk/nrf54l15/cpuapp
8384
- nrf54l20pdk/nrf54l20/cpuapp
85+
- nrf54lm20dk/nrf54lm20a/cpuapp
8486
integration_platforms:
8587
- nrf54l15dk/nrf54l15/cpuapp
8688
extra_args: mbox_SNIPPET=nordic-flpr
@@ -98,6 +100,7 @@ tests:
98100
- nrf54l09pdk/nrf54l09/cpuapp
99101
- nrf54l15dk/nrf54l15/cpuapp
100102
- nrf54l20pdk/nrf54l20/cpuapp
103+
- nrf54lm20dk/nrf54lm20a/cpuapp
101104
integration_platforms:
102105
- nrf54l15dk/nrf54l15/cpuapp
103106
extra_args:
@@ -118,6 +121,7 @@ tests:
118121
- nrf54l09pdk/nrf54l09/cpuapp
119122
- nrf54l15dk/nrf54l15/cpuapp
120123
- nrf54l20pdk/nrf54l20/cpuapp
124+
- nrf54lm20dk/nrf54lm20a/cpuapp
121125
integration_platforms:
122126
- nrf54l15dk/nrf54l15/cpuapp
123127
extra_args:

0 commit comments

Comments
 (0)