Skip to content

Commit 36396d7

Browse files
ktaborowskiRobertGalatNordic
authored andcommitted
tests: use semtech from shields
Fix spi test, to get the right spi instance. Other minor fixes for ci. Signed-off-by: Krzysztof Taborowski <[email protected]>
1 parent e5ff442 commit 36396d7

File tree

7 files changed

+2
-256
lines changed

7 files changed

+2
-256
lines changed

tests/integration/spi/boards/nrf52840dk_nrf52840.overlay

Lines changed: 0 additions & 61 deletions
This file was deleted.

tests/integration/spi/boards/nrf5340dk_nrf5340_cpuapp.overlay

Lines changed: 0 additions & 40 deletions
This file was deleted.

tests/integration/spi/boards/nrf54l15dk_nrf54l10_cpuapp.overlay

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,6 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
/{
8-
semtech_sx1262_gpios{
9-
compatible = "gpio-keys";
10-
semtech_sx1262_reset_gpios: reset {
11-
gpios = <&gpio2 8 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>;
12-
label = "semtech_sx1262 Reset";
13-
};
14-
semtech_sx1262_busy_gpios: busy {
15-
gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH)>;
16-
label = "semtech_sx1262 Busy";
17-
};
18-
semtech_sx1262_antenna_enable_gpios: antena_enable {
19-
gpios = <&gpio2 10 (GPIO_ACTIVE_HIGH)>;
20-
label = "semtech_sx1262 Antena Enable";
21-
};
22-
semtech_sx1262_dio1_gpios: dio1 {
23-
gpios = <&gpio1 11 (GPIO_ACTIVE_HIGH|GPIO_PULL_DOWN)>;
24-
label = "semtech_sx1262 DIO1";
25-
};
26-
};
27-
};
28-
29-
sid_semtech: &spi30 {
30-
compatible = "nordic,nrf-spim";
31-
status = "okay";
32-
cs-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
33-
pinctrl-0 = <&spi30_default_alt>;
34-
pinctrl-1 = <&spi30_sleep_alt>;
35-
pinctrl-names = "default", "sleep";
36-
clock-frequency = <DT_FREQ_M(8)>;
37-
};
38-
397
&cpuapp_rram {
408
reg = <0x0 DT_SIZE_K(1524)>;
419
};
@@ -45,25 +13,6 @@ sid_semtech: &spi30 {
4513
ranges = <0x0 0x20000000 0x40000>;
4614
};
4715

48-
&pinctrl {
49-
spi30_default_alt: spi30_default_alt {
50-
group1 {
51-
psels = <NRF_PSEL(SPIM_SCK, 0, 3)>,
52-
<NRF_PSEL(SPIM_MISO, 0, 2)>,
53-
<NRF_PSEL(SPIM_MOSI, 0, 1)>;
54-
};
55-
};
56-
57-
spi30_sleep_alt: spi30_sleep_alt {
58-
group1 {
59-
psels = <NRF_PSEL(SPIM_SCK, 0, 3)>,
60-
<NRF_PSEL(SPIM_MISO, 0, 2)>,
61-
<NRF_PSEL(SPIM_MOSI, 0, 1)>;
62-
low-power-enable;
63-
};
64-
};
65-
};
66-
6716
// TODO: re-enable HWFC once it's fixed
6817
&uart20 {
6918
/delete-property/ hw-flow-control;

tests/integration/spi/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,6 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
/{
8-
semtech_sx1262_gpios{
9-
compatible = "gpio-keys";
10-
semtech_sx1262_reset_gpios: reset {
11-
gpios = <&gpio2 8 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>;
12-
label = "semtech_sx1262 Reset";
13-
};
14-
semtech_sx1262_busy_gpios: busy {
15-
gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH)>;
16-
label = "semtech_sx1262 Busy";
17-
};
18-
semtech_sx1262_antenna_enable_gpios: antena_enable {
19-
gpios = <&gpio2 10 (GPIO_ACTIVE_HIGH)>;
20-
label = "semtech_sx1262 Antena Enable";
21-
};
22-
semtech_sx1262_dio1_gpios: dio1 {
23-
gpios = <&gpio1 11 (GPIO_ACTIVE_HIGH|GPIO_PULL_DOWN)>;
24-
label = "semtech_sx1262 DIO1";
25-
};
26-
};
27-
};
28-
29-
sid_semtech: &spi30 {
30-
compatible = "nordic,nrf-spim";
31-
status = "okay";
32-
cs-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
33-
pinctrl-0 = <&spi30_default_alt>;
34-
pinctrl-1 = <&spi30_sleep_alt>;
35-
pinctrl-names = "default", "sleep";
36-
clock-frequency = <DT_FREQ_M(8)>;
37-
};
38-
397
&cpuapp_rram {
408
reg = <0x0 DT_SIZE_K(1524)>;
419
};
@@ -45,25 +13,6 @@ sid_semtech: &spi30 {
4513
ranges = <0x0 0x20000000 0x40000>;
4614
};
4715

48-
&pinctrl {
49-
spi30_default_alt: spi30_default_alt {
50-
group1 {
51-
psels = <NRF_PSEL(SPIM_SCK, 0, 3)>,
52-
<NRF_PSEL(SPIM_MISO, 0, 2)>,
53-
<NRF_PSEL(SPIM_MOSI, 0, 1)>;
54-
};
55-
};
56-
57-
spi30_sleep_alt: spi30_sleep_alt {
58-
group1 {
59-
psels = <NRF_PSEL(SPIM_SCK, 0, 3)>,
60-
<NRF_PSEL(SPIM_MISO, 0, 2)>,
61-
<NRF_PSEL(SPIM_MOSI, 0, 1)>;
62-
low-power-enable;
63-
};
64-
};
65-
};
66-
6716
// TODO: re-enable HWFC once it's fixed
6817
&uart20 {
6918
/delete-property/ hw-flow-control;

tests/integration/spi/boards/nrf54l15dk_nrf54l15_cpuapp_ns.overlay

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,6 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
/{
8-
semtech_sx1262_gpios{
9-
compatible = "gpio-keys";
10-
semtech_sx1262_reset_gpios: reset {
11-
gpios = <&gpio2 8 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>;
12-
label = "semtech_sx1262 Reset";
13-
};
14-
semtech_sx1262_busy_gpios: busy {
15-
gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH)>;
16-
label = "semtech_sx1262 Busy";
17-
};
18-
semtech_sx1262_antenna_enable_gpios: antena_enable {
19-
gpios = <&gpio2 10 (GPIO_ACTIVE_HIGH)>;
20-
label = "semtech_sx1262 Antena Enable";
21-
};
22-
semtech_sx1262_dio1_gpios: dio1 {
23-
gpios = <&gpio1 11 (GPIO_ACTIVE_HIGH|GPIO_PULL_DOWN)>;
24-
label = "semtech_sx1262 DIO1";
25-
};
26-
};
27-
};
28-
29-
sid_semtech: &spi30 {
30-
compatible = "nordic,nrf-spim";
31-
status = "okay";
32-
cs-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
33-
pinctrl-0 = <&spi30_default_alt>;
34-
pinctrl-1 = <&spi30_sleep_alt>;
35-
pinctrl-names = "default", "sleep";
36-
clock-frequency = <DT_FREQ_M(8)>;
37-
};
38-
397
&cpuapp_rram {
408
reg = <0x0 DT_SIZE_K(1524)>;
419
};
@@ -45,25 +13,6 @@ sid_semtech: &spi30 {
4513
ranges = <0x0 0x20000000 0x40000>;
4614
};
4715

48-
&pinctrl {
49-
spi30_default_alt: spi30_default_alt {
50-
group1 {
51-
psels = <NRF_PSEL(SPIM_SCK, 0, 3)>,
52-
<NRF_PSEL(SPIM_MISO, 0, 2)>,
53-
<NRF_PSEL(SPIM_MOSI, 0, 1)>;
54-
};
55-
};
56-
57-
spi30_sleep_alt: spi30_sleep_alt {
58-
group1 {
59-
psels = <NRF_PSEL(SPIM_SCK, 0, 3)>,
60-
<NRF_PSEL(SPIM_MISO, 0, 2)>,
61-
<NRF_PSEL(SPIM_MOSI, 0, 1)>;
62-
low-power-enable;
63-
};
64-
};
65-
};
66-
6716
// TODO: re-enable HWFC once it's fixed
6817
&uart20 {
6918
/delete-property/ hw-flow-control;

tests/integration/spi/src/main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717
#include <sid_pal_serial_bus_ifc.h>
1818
#include <sid_pal_serial_bus_spi_config.h>
1919

20-
#if defined(CONFIG_SOC_POSIX)
2120
#define NULL_STRUCT_INITIALIZER { 0 }
2221
#define INVALID_DT_GPIO NULL_STRUCT_INITIALIZER
23-
#endif /* CONFIG_SOC_POSIX */
2422

2523
ZTEST(spi_bus, test_init_spi)
2624
{

tests/integration/spi/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ tests:
1212
- nrf54l15dk/nrf54l15/cpuapp
1313
- nrf54l15dk/nrf54l15/cpuapp/ns
1414
- nrf54l15dk/nrf54l10/cpuapp
15+
extra_args:
16+
- SHIELD="simple_arduino_adapter;semtech_sx1262mb2cas"

0 commit comments

Comments
 (0)