Skip to content

Commit a7c12e2

Browse files
committed
[nrf fromlist] tests: drivers: uart: uart_elementary: Run test on nRF54L* FLPR
Add overlays required to run the test on: - nrf54l09pdk/nrf54l09/cpuflpr, - nrf54l20pdk/nrf54l20/cpuflpr. Upstream PR #: 87124 Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
1 parent 2e24820 commit a7c12e2

File tree

4 files changed

+169
-1
lines changed

4 files changed

+169
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
&pinctrl {
4+
uart21_default: uart21_default {
5+
group1 {
6+
psels = <NRF_PSEL(UART_TX, 1, 10)>,
7+
<NRF_PSEL(UART_RX, 1, 11)>,
8+
<NRF_PSEL(UART_RTS, 1, 8)>,
9+
<NRF_PSEL(UART_CTS, 1, 9)>;
10+
};
11+
};
12+
13+
uart21_sleep: uart21_sleep {
14+
group1 {
15+
psels = <NRF_PSEL(UART_TX, 1, 10)>,
16+
<NRF_PSEL(UART_RX, 1, 11)>,
17+
<NRF_PSEL(UART_RTS, 1, 8)>,
18+
<NRF_PSEL(UART_CTS, 1, 9)>;
19+
low-power-enable;
20+
};
21+
};
22+
};
23+
24+
dut: &uart21 {
25+
status = "okay";
26+
current-speed = <115200>;
27+
pinctrl-0 = <&uart21_default>;
28+
pinctrl-1 = <&uart21_sleep>;
29+
pinctrl-names = "default", "sleep";
30+
hw-flow-control;
31+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
/ {
4+
chosen {
5+
zephyr,console = &uart30;
6+
zephyr,shell-uart = &uart30;
7+
};
8+
};
9+
10+
&pinctrl {
11+
uart20_default: uart20_default {
12+
group1 {
13+
psels = <NRF_PSEL(UART_TX, 1, 15)>,
14+
<NRF_PSEL(UART_RX, 1, 8)>;
15+
bias-pull-up;
16+
};
17+
};
18+
19+
uart20_sleep: uart20_sleep {
20+
group1 {
21+
psels = <NRF_PSEL(UART_TX, 1, 15)>,
22+
<NRF_PSEL(UART_RX, 1, 8)>;
23+
low-power-enable;
24+
};
25+
};
26+
27+
uart21_default: uart21_default {
28+
group1 {
29+
psels = <NRF_PSEL(UART_TX, 1, 9)>,
30+
<NRF_PSEL(UART_RX, 1, 14)>;
31+
bias-pull-up;
32+
};
33+
};
34+
35+
uart21_sleep: uart21_sleep {
36+
group1 {
37+
psels = <NRF_PSEL(UART_TX, 1, 9)>,
38+
<NRF_PSEL(UART_RX, 1, 14)>;
39+
low-power-enable;
40+
};
41+
};
42+
43+
uart30_default: uart30_default {
44+
group1 {
45+
psels = <NRF_PSEL(UART_TX, 0, 0)>;
46+
};
47+
group2 {
48+
psels = <NRF_PSEL(UART_RX, 0, 1)>;
49+
bias-pull-up;
50+
};
51+
};
52+
53+
uart30_sleep: uart30_sleep {
54+
group1 {
55+
psels = <NRF_PSEL(UART_TX, 0, 0)>,
56+
<NRF_PSEL(UART_RX, 0, 1)>;
57+
low-power-enable;
58+
};
59+
};
60+
};
61+
62+
63+
&uart30 {
64+
status = "okay";
65+
current-speed = <115200>;
66+
pinctrl-0 = <&uart30_default>;
67+
pinctrl-1 = <&uart30_sleep>;
68+
pinctrl-names = "default", "sleep";
69+
};
70+
71+
dut: &uart20 {
72+
status = "okay";
73+
current-speed = <115200>;
74+
pinctrl-0 = <&uart20_default>;
75+
pinctrl-1 = <&uart20_sleep>;
76+
pinctrl-names = "default", "sleep";
77+
};
78+
79+
dut_aux: &uart21 {
80+
status = "okay";
81+
current-speed = <115200>;
82+
pinctrl-0 = <&uart21_default>;
83+
pinctrl-1 = <&uart21_sleep>;
84+
pinctrl-names = "default", "sleep";
85+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
&pinctrl {
4+
uart21_default: uart21_default {
5+
group1 {
6+
psels = <NRF_PSEL(UART_TX, 1, 10)>,
7+
<NRF_PSEL(UART_RX, 1, 11)>,
8+
<NRF_PSEL(UART_RTS, 1, 8)>,
9+
<NRF_PSEL(UART_CTS, 1, 9)>;
10+
};
11+
};
12+
13+
uart21_sleep: uart21_sleep {
14+
group1 {
15+
psels = <NRF_PSEL(UART_TX, 1, 10)>,
16+
<NRF_PSEL(UART_RX, 1, 11)>,
17+
<NRF_PSEL(UART_RTS, 1, 8)>,
18+
<NRF_PSEL(UART_CTS, 1, 9)>;
19+
low-power-enable;
20+
};
21+
};
22+
};
23+
24+
dut: &uart21 {
25+
status = "okay";
26+
current-speed = <115200>;
27+
pinctrl-0 = <&uart21_default>;
28+
pinctrl-1 = <&uart21_sleep>;
29+
pinctrl-names = "default", "sleep";
30+
hw-flow-control;
31+
};

tests/drivers/uart/uart_elementary/testcase.yaml

+22-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ tests:
1212
platform_allow:
1313
- nrf54h20dk/nrf54h20/cpuapp
1414
- nrf54l09pdk/nrf54l09/cpuapp
15+
- nrf54l09pdk/nrf54l09/cpuflpr
1516
- nrf54l15dk/nrf54l15/cpuapp
16-
- nrf54l20pdk/nrf54l20/cpuapp
1717
- nrf54l15dk/nrf54l15/cpuflpr
18+
- nrf54l20pdk/nrf54l20/cpuapp
19+
- nrf54l20pdk/nrf54l20/cpuflpr
1820
- nrf5340dk/nrf5340/cpuapp
1921
- esp32_devkitc_wrover/esp32/procpu
2022
- esp8684_devkitm
@@ -69,14 +71,33 @@ tests:
6971
filter: CONFIG_SERIAL_SUPPORT_INTERRUPT
7072
platform_allow:
7173
- nrf54l15dk/nrf54l15/cpuflpr
74+
- nrf54l20pdk/nrf54l20/cpuflpr
7275
extra_args: DTC_OVERLAY_FILE="boards/nrf54l15dk_nrf54l15_cpuflpr_dual_uart.overlay"
7376
extra_configs:
7477
- CONFIG_DUAL_UART_TEST=y
7578
drivers.uart.uart_elementary_dual_setup_mismatch_nrf54l_cpuflpr:
7679
filter: CONFIG_SERIAL_SUPPORT_INTERRUPT
7780
platform_allow:
7881
- nrf54l15dk/nrf54l15/cpuflpr
82+
- nrf54l20pdk/nrf54l20/cpuflpr
7983
extra_args: DTC_OVERLAY_FILE="boards/nrf54l15dk_nrf54l15_cpuflpr_dual_uart.overlay"
8084
extra_configs:
8185
- CONFIG_DUAL_UART_TEST=y
8286
- CONFIG_SETUP_MISMATCH_TEST=y
87+
drivers.uart.uart_elementary_dual_nrf54l09:
88+
filter: CONFIG_SERIAL_SUPPORT_INTERRUPT
89+
platform_allow:
90+
- nrf54l09pdk/nrf54l09/cpuapp
91+
- nrf54l09pdk/nrf54l09/cpuflpr
92+
extra_args: DTC_OVERLAY_FILE="boards/nrf54l09pdk_nrf54l09_dual_uart.overlay"
93+
extra_configs:
94+
- CONFIG_DUAL_UART_TEST=y
95+
drivers.uart.uart_elementary_dual_setup_mismatch_nrf54l09:
96+
filter: CONFIG_SERIAL_SUPPORT_INTERRUPT
97+
platform_allow:
98+
- nrf54l09pdk/nrf54l09/cpuapp
99+
- nrf54l09pdk/nrf54l09/cpuflpr
100+
extra_args: DTC_OVERLAY_FILE="boards/nrf54l09pdk_nrf54l09_dual_uart.overlay"
101+
extra_configs:
102+
- CONFIG_DUAL_UART_TEST=y
103+
- CONFIG_SETUP_MISMATCH_TEST=y

0 commit comments

Comments
 (0)