forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: nrf: enable twister tests for nrf54l20pdk
Enabled the following tests on nrf54l20 - i2c_slave - clock_control_api - nrf_clock_calibration - nrf_lf_clock_start - onoff - retained_mem/api - uart_elementary - uart_errors - uart_mix_fifo_poll - uart_pm - watchdog - fcb Signed-off-by: Rafał Kuźnia <[email protected]>
- Loading branch information
Showing
22 changed files
with
295 additions
and
2 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
tests/boards/nrf/i2c/i2c_slave/boards/nrf54l20pdk_nrf54l20_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 @@ | ||
CONFIG_NRFX_TWIS22=y |
60 changes: 60 additions & 0 deletions
60
tests/boards/nrf/i2c/i2c_slave/boards/nrf54l20pdk_nrf54l20_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,60 @@ | ||
/ { | ||
aliases { | ||
i2c-slave = &i2c22; | ||
}; | ||
}; | ||
|
||
&pinctrl { | ||
i2c21_default_alt: i2c21_default_alt { | ||
group1 { | ||
psels = <NRF_PSEL(TWIM_SDA, 1, 8)>, | ||
<NRF_PSEL(TWIM_SCL, 1, 14)>; | ||
}; | ||
}; | ||
|
||
i2c21_sleep_alt: i2c21_sleep_alt { | ||
group1 { | ||
psels = <NRF_PSEL(TWIM_SDA, 1, 8)>, | ||
<NRF_PSEL(TWIM_SCL, 1, 14)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
|
||
i2c22_default_alt: i2c22_default_alt { | ||
group1 { | ||
/* Temporary workaround as it is currently not possible | ||
* to configure pins for TWIS with pinctrl. | ||
*/ | ||
psels = <NRF_PSEL(TWIM_SDA, 1, 9)>, | ||
<NRF_PSEL(TWIM_SCL, 1, 15)>; | ||
bias-pull-up; | ||
}; | ||
}; | ||
|
||
i2c22_sleep_alt: i2c22_sleep_alt { | ||
group1 { | ||
psels = <NRF_PSEL(TWIM_SDA, 1, 9)>, | ||
<NRF_PSEL(TWIM_SCL, 1, 15)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
&i2c21 { | ||
compatible = "nordic,nrf-twim"; | ||
status = "okay"; | ||
pinctrl-0 = <&i2c21_default_alt>; | ||
pinctrl-1 = <&i2c21_sleep_alt>; | ||
pinctrl-names = "default", "sleep"; | ||
sensor: sensor@54 { | ||
reg = <0x54>; | ||
}; | ||
}; | ||
|
||
&i2c22 { | ||
compatible = "nordic,nrf-twis"; | ||
status = "okay"; | ||
pinctrl-0 = <&i2c22_default_alt>; | ||
pinctrl-1 = <&i2c22_sleep_alt>; | ||
pinctrl-names = "default", "sleep"; | ||
}; |
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
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
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
1 change: 1 addition & 0 deletions
1
tests/drivers/retained_mem/api/boards/nrf54l20pdk_nrf54l20_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 @@ | ||
CONFIG_POWEROFF=y |
22 changes: 22 additions & 0 deletions
22
tests/drivers/retained_mem/api/boards/nrf54l20pdk_nrf54l20_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,22 @@ | ||
/ { | ||
cpuapp_sram@2002e000 { | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x2002e000 DT_SIZE_K(4)>; | ||
zephyr,memory-region = "RetainedMem"; | ||
status = "okay"; | ||
|
||
retainedmem0: retainedmem { | ||
compatible = "zephyr,retained-ram"; | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
aliases { | ||
retainedmemtestdevice = &retainedmem0; | ||
}; | ||
}; | ||
|
||
&cpuapp_sram { | ||
reg = <0x20000000 DT_SIZE_K(184)>; | ||
ranges = <0x0 0x20000000 0x2e000>; | ||
}; |
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
31 changes: 31 additions & 0 deletions
31
tests/drivers/uart/uart_elementary/boards/nrf54l20pdk_nrf54l20_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,31 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
|
||
&pinctrl { | ||
uart21_default: uart21_default { | ||
group1 { | ||
psels = <NRF_PSEL(UART_TX, 1, 10)>, | ||
<NRF_PSEL(UART_RX, 1, 11)>, | ||
<NRF_PSEL(UART_RTS, 1, 8)>, | ||
<NRF_PSEL(UART_CTS, 1, 9)>; | ||
}; | ||
}; | ||
|
||
uart21_sleep: uart21_sleep { | ||
group1 { | ||
psels = <NRF_PSEL(UART_TX, 1, 10)>, | ||
<NRF_PSEL(UART_RX, 1, 11)>, | ||
<NRF_PSEL(UART_RTS, 1, 8)>, | ||
<NRF_PSEL(UART_CTS, 1, 9)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
dut: &uart21 { | ||
status = "okay"; | ||
current-speed = <115200>; | ||
pinctrl-0 = <&uart21_default>; | ||
pinctrl-1 = <&uart21_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
hw-flow-control; | ||
}; |
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
54 changes: 54 additions & 0 deletions
54
tests/drivers/uart/uart_errors/boards/nrf54l20pdk_nrf54l20_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,54 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
|
||
&pinctrl { | ||
uart21_default: uart21_default { | ||
group1 { | ||
psels = <NRF_PSEL(UART_RX, 1, 8)>, | ||
<NRF_PSEL(UART_RTS, 1, 10)>; | ||
}; | ||
}; | ||
|
||
uart21_sleep: uart21_sleep { | ||
group1 { | ||
psels = <NRF_PSEL(UART_RX, 1, 8)>, | ||
<NRF_PSEL(UART_RTS, 1, 10)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
|
||
uart22_default: uart22_default { | ||
group1 { | ||
psels = | ||
<NRF_PSEL(UART_CTS, 1, 11)>; | ||
bias-pull-up; | ||
}; | ||
group2 { | ||
psels = <NRF_PSEL(UART_TX, 1, 9)>; | ||
}; | ||
}; | ||
|
||
uart22_sleep: uart22_sleep { | ||
group1 { | ||
psels = <NRF_PSEL(UART_TX, 1, 9)>, | ||
<NRF_PSEL(UART_CTS, 1, 11)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
dut: &uart21 { | ||
status = "okay"; | ||
current-speed = <115200>; | ||
pinctrl-0 = <&uart21_default>; | ||
pinctrl-1 = <&uart21_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
}; | ||
|
||
dut_aux: &uart22 { | ||
status = "okay"; | ||
current-speed = <115200>; | ||
pinctrl-0 = <&uart22_default>; | ||
pinctrl-1 = <&uart22_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
disable-rx; | ||
}; |
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
44 changes: 44 additions & 0 deletions
44
tests/drivers/uart/uart_mix_fifo_poll/boards/nrf54l20pdk_nrf54l20_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,44 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&pinctrl { | ||
uart21_default: uart21_default { | ||
group1 { | ||
psels = <NRF_PSEL(UART_TX, 1, 10)>, | ||
<NRF_PSEL(UART_RX, 1, 11)>, | ||
<NRF_PSEL(UART_RTS, 1, 8)>, | ||
<NRF_PSEL(UART_CTS, 1, 9)>; | ||
}; | ||
}; | ||
|
||
uart21_sleep: uart21_sleep { | ||
group1 { | ||
psels = <NRF_PSEL(UART_TX, 1, 10)>, | ||
<NRF_PSEL(UART_RX, 1, 11)>, | ||
<NRF_PSEL(UART_RTS, 1, 8)>, | ||
<NRF_PSEL(UART_CTS, 1, 9)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
dut: &uart21 { | ||
status = "okay"; | ||
current-speed = <115200>; | ||
pinctrl-0 = <&uart21_default>; | ||
pinctrl-1 = <&uart21_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
hw-flow-control; | ||
}; | ||
|
||
counter_dev: &timer00 { | ||
status = "okay"; | ||
max-frequency = <DT_FREQ_M(64)>; | ||
}; | ||
|
||
&grtc { | ||
interrupts = <228 2>; | ||
}; |
Oops, something went wrong.