-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: Add support for nRF54L05/L10 build targets in some samples
The prioritized samples to add L05 and L10 targets are: peripheral_lbs, peripheral_uart, peripheral_power_profiling, direct_test_mode and peripheral:radio_test. Move together with nRF54l-specific configuration. Ref. NCSDK-30668 Signed-off-by: Michał Grochala <[email protected]>
- Loading branch information
Showing
20 changed files
with
249 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
samples/bluetooth/direct_test_mode/boards/nrf54l15dk_nrf54l05_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# Disable the unsupported driver | ||
CONFIG_NRFX_TIMER0=n | ||
CONFIG_NRFX_TIMER1=n | ||
CONFIG_NRFX_TIMER2=n | ||
|
||
# Use necessary peripherals | ||
CONFIG_NRFX_TIMER20=y | ||
CONFIG_NRFX_TIMER10=y | ||
CONFIG_NRFX_GPPI=y |
39 changes: 39 additions & 0 deletions
39
samples/bluetooth/direct_test_mode/boards/nrf54l15dk_nrf54l05_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
ncs,dtm-uart = &uart20; | ||
}; | ||
}; | ||
|
||
&uart20 { | ||
status = "okay"; | ||
current-speed = <19200>; | ||
}; | ||
|
||
&radio { | ||
status = "okay"; | ||
/* This is a number of antennas that are available on antenna matrix | ||
* designed by Nordic. For more information see README.rst. | ||
*/ | ||
dfe-antenna-num = <12>; | ||
/* This is a setting that enables antenna 12 (in antenna matrix designed | ||
* by Nordic) for PDU. For more information see README.rst. | ||
*/ | ||
dfe-pdu-antenna = <0x0>; | ||
|
||
/* These are GPIO pin numbers that are provided to | ||
* Radio peripheral. The pins will be acquired by Radio to | ||
* drive antenna switching. | ||
* Pin numbers are selected to drive switches on antenna matrix | ||
* desinged by Nordic. For more information see README.rst. | ||
*/ | ||
dfegpio0-gpios = <&gpio0 4 0>; | ||
dfegpio1-gpios = <&gpio0 5 0>; | ||
dfegpio2-gpios = <&gpio0 6 0>; | ||
dfegpio3-gpios = <&gpio0 7 0>; | ||
}; |
15 changes: 15 additions & 0 deletions
15
samples/bluetooth/direct_test_mode/boards/nrf54l15dk_nrf54l10_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# Disable the unsupported driver | ||
CONFIG_NRFX_TIMER0=n | ||
CONFIG_NRFX_TIMER1=n | ||
CONFIG_NRFX_TIMER2=n | ||
|
||
# Use necessary peripherals | ||
CONFIG_NRFX_TIMER20=y | ||
CONFIG_NRFX_TIMER10=y | ||
CONFIG_NRFX_GPPI=y |
39 changes: 39 additions & 0 deletions
39
samples/bluetooth/direct_test_mode/boards/nrf54l15dk_nrf54l10_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
ncs,dtm-uart = &uart20; | ||
}; | ||
}; | ||
|
||
&uart20 { | ||
status = "okay"; | ||
current-speed = <19200>; | ||
}; | ||
|
||
&radio { | ||
status = "okay"; | ||
/* This is a number of antennas that are available on antenna matrix | ||
* designed by Nordic. For more information see README.rst. | ||
*/ | ||
dfe-antenna-num = <12>; | ||
/* This is a setting that enables antenna 12 (in antenna matrix designed | ||
* by Nordic) for PDU. For more information see README.rst. | ||
*/ | ||
dfe-pdu-antenna = <0x0>; | ||
|
||
/* These are GPIO pin numbers that are provided to | ||
* Radio peripheral. The pins will be acquired by Radio to | ||
* drive antenna switching. | ||
* Pin numbers are selected to drive switches on antenna matrix | ||
* desinged by Nordic. For more information see README.rst. | ||
*/ | ||
dfegpio0-gpios = <&gpio0 4 0>; | ||
dfegpio1-gpios = <&gpio0 5 0>; | ||
dfegpio2-gpios = <&gpio0 6 0>; | ||
dfegpio3-gpios = <&gpio0 7 0>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
samples/bluetooth/peripheral_power_profiling/boards/nrf54l15dk_nrf54l05_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
CONFIG_PM_DEVICE=y | ||
CONFIG_PM_DEVICE_RUNTIME=y |
19 changes: 19 additions & 0 deletions
19
samples/bluetooth/peripheral_power_profiling/boards/nrf54l15dk_nrf54l05_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
aliases { | ||
/delete-property/ sw2; | ||
/delete-property/ sw3; | ||
}; | ||
}; | ||
|
||
/delete-node/ &button2; | ||
/delete-node/ &button3; | ||
|
||
&uart20 { | ||
zephyr,pm-device-runtime-auto; | ||
}; |
8 changes: 8 additions & 0 deletions
8
samples/bluetooth/peripheral_power_profiling/boards/nrf54l15dk_nrf54l10_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
CONFIG_PM_DEVICE=y | ||
CONFIG_PM_DEVICE_RUNTIME=y |
19 changes: 19 additions & 0 deletions
19
samples/bluetooth/peripheral_power_profiling/boards/nrf54l15dk_nrf54l10_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
aliases { | ||
/delete-property/ sw2; | ||
/delete-property/ sw3; | ||
}; | ||
}; | ||
|
||
/delete-node/ &button2; | ||
/delete-node/ &button3; | ||
|
||
&uart20 { | ||
zephyr,pm-device-runtime-auto; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
samples/bluetooth/peripheral_uart/boards/nrf54l15dk_nrf54l05_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# Disable the unspupported UART0 driver | ||
CONFIG_NRFX_UARTE0=n |
11 changes: 11 additions & 0 deletions
11
samples/bluetooth/peripheral_uart/boards/nrf54l15dk_nrf54l05_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
nordic,nus-uart = &uart20; | ||
}; | ||
}; |
8 changes: 8 additions & 0 deletions
8
samples/bluetooth/peripheral_uart/boards/nrf54l15dk_nrf54l10_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# Disable the unspupported UART0 driver | ||
CONFIG_NRFX_UARTE0=n |
11 changes: 11 additions & 0 deletions
11
samples/bluetooth/peripheral_uart/boards/nrf54l15dk_nrf54l10_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
nordic,nus-uart = &uart20; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
samples/peripheral/radio_test/boards/nrf54l15dk_nrf54l05_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# Disable the unsupported driver | ||
CONFIG_NRFX_TIMER0=n | ||
|
||
# Enable the necessary drivers | ||
CONFIG_NRFX_TIMER10=y | ||
CONFIG_NRFX_GPPI=y |
12 changes: 12 additions & 0 deletions
12
samples/peripheral/radio_test/boards/nrf54l15dk_nrf54l10_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# Disable the unsupported driver | ||
CONFIG_NRFX_TIMER0=n | ||
|
||
# Enable the necessary drivers | ||
CONFIG_NRFX_TIMER10=y | ||
CONFIG_NRFX_GPPI=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters