-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf fromtree] 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 - uart_async_api - wdt_error_cases - wdt_basic_api - counter_basic_api - fcb - nrf/qdec Signed-off-by: Rafał Kuźnia <rafal.kuznia@nordicsemi.no> (cherry picked from commit 07ee796) Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
- Loading branch information
1 parent
791aa40
commit a669c1c
Showing
28 changed files
with
431 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
53 changes: 53 additions & 0 deletions
53
tests/boards/nrf/qdec/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,53 @@ | ||
/* | ||
* Copyright 2024 Nordic Semiconductor ASA | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
aliases { | ||
qdec0 = &qdec20; | ||
qenca = &phase_a; | ||
qencb = &phase_b; | ||
}; | ||
|
||
encoder-emulate { | ||
compatible = "gpio-leds"; | ||
phase_a: phase_a { | ||
gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; | ||
}; | ||
phase_b: phase_b { | ||
gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; | ||
}; | ||
}; | ||
}; | ||
|
||
&pinctrl { | ||
qdec_pinctrl: qdec_pinctrl { | ||
group1 { | ||
psels = <NRF_PSEL(QDEC_A, 1, 8)>, | ||
<NRF_PSEL(QDEC_B, 1, 10)>; | ||
}; | ||
}; | ||
|
||
qdec_sleep_pinctrl: qdec_sleep_pinctrl { | ||
group1 { | ||
psels = <NRF_PSEL(QDEC_A, 1, 8)>, | ||
<NRF_PSEL(QDEC_B, 1, 10)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
&gpio1 { | ||
status = "okay"; | ||
}; | ||
|
||
&qdec20 { | ||
status = "okay"; | ||
pinctrl-0 = <&qdec_pinctrl>; | ||
pinctrl-1 = <&qdec_sleep_pinctrl>; | ||
pinctrl-names = "default", "sleep"; | ||
steps = <127>; | ||
led-pre = <500>; | ||
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
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
34 changes: 34 additions & 0 deletions
34
tests/drivers/counter/counter_basic_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,34 @@ | ||
&timer00 { | ||
prescaler = <6>; | ||
status = "okay"; | ||
}; | ||
|
||
&timer10 { | ||
prescaler = <4>; | ||
status = "okay"; | ||
}; | ||
|
||
&timer20 { | ||
prescaler = <4>; | ||
status = "okay"; | ||
}; | ||
|
||
&timer21 { | ||
prescaler = <4>; | ||
status = "okay"; | ||
}; | ||
|
||
&timer22 { | ||
prescaler = <4>; | ||
status = "okay"; | ||
}; | ||
|
||
&timer23 { | ||
prescaler = <4>; | ||
status = "okay"; | ||
}; | ||
|
||
&timer24 { | ||
prescaler = <4>; | ||
status = "okay"; | ||
}; |
20 changes: 20 additions & 0 deletions
20
tests/drivers/pwm/pwm_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,20 @@ | ||
&pinctrl { | ||
pwm_default: pwm_default { | ||
group1 { | ||
psels = <NRF_PSEL(PWM_OUT0, 1, 0)>; | ||
}; | ||
}; | ||
pwm_sleep: pwm_sleep { | ||
group1 { | ||
psels = <NRF_PSEL(PWM_OUT0, 1, 0)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
&pwm20 { | ||
status = "okay"; | ||
pinctrl-0 = <&pwm_default>; | ||
pinctrl-1 = <&pwm_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
}; |
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
26 changes: 26 additions & 0 deletions
26
tests/drivers/uart/uart_async_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,26 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
|
||
&pinctrl { | ||
uart21_default_alt: uart21_default_alt { | ||
group1 { | ||
psels = <NRF_PSEL(UART_TX, 1, 10)>, | ||
<NRF_PSEL(UART_RX, 1, 11)>; | ||
}; | ||
}; | ||
|
||
uart21_sleep_alt: uart21_sleep_alt { | ||
group1 { | ||
psels = <NRF_PSEL(UART_TX, 1, 10)>, | ||
<NRF_PSEL(UART_RX, 1, 11)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
dut: &uart21 { | ||
status = "okay"; | ||
pinctrl-0 = <&uart21_default_alt>; | ||
pinctrl-1 = <&uart21_sleep_alt>; | ||
pinctrl-names = "default", "sleep"; | ||
current-speed = <115200>; | ||
}; |
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
Oops, something went wrong.