-
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 <[email protected]> (cherry picked from commit 07ee796) Signed-off-by: Sebastian Głąb <[email protected]>
- Loading branch information
1 parent
3c085e8
commit 202c38b
Showing
28 changed files
with
457 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"; | ||
}; |
34 changes: 34 additions & 0 deletions
34
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,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"; | ||
}; |
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 |
34 changes: 34 additions & 0 deletions
34
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,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"; | ||
}; |
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
Oops, something went wrong.