Skip to content

Commit e314eb6

Browse files
nordic-seglcfriedt
authored andcommitted
samples: drivers: spi_bitbang: Enable sample on nrf54* targets
Add overlays required to run the sample on - nrf54h20dk/nrf54h20/cpuapp, - nrf54l15dk/nrf54l15/cpuapp, - nrf54lm20dk/nrf54lm20a/cpuapp. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 537b1ef commit e314eb6

File tree

4 files changed

+77
-1
lines changed

4 files changed

+77
-1
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/*
8+
* Test requires loopback between P0.06 and P0.07.
9+
* No other driver on SPI_CLK and SPI_CS.
10+
*/
11+
12+
/ {
13+
spibb0: spibb0 {
14+
compatible = "zephyr,spi-bitbang";
15+
status="okay";
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
clk-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
19+
mosi-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
20+
miso-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
21+
cs-gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
22+
};
23+
};
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/*
8+
* Test requires loopback between P1.10 and P1.11
9+
* No other driver on SPI_CLK and SPI_CS.
10+
*/
11+
12+
/ {
13+
spibb0: spibb0 {
14+
compatible = "zephyr,spi-bitbang";
15+
status="okay";
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
clk-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
19+
mosi-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
20+
miso-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
21+
cs-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
22+
};
23+
};
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/*
8+
* Test requires loopback between P1.13 and P1.14
9+
* No other driver on SPI_CLK and SPI_CS.
10+
*/
11+
12+
/ {
13+
spibb0: spibb0 {
14+
compatible = "zephyr,spi-bitbang";
15+
status="okay";
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
clk-gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
19+
mosi-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
20+
miso-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
21+
cs-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
22+
};
23+
};

samples/drivers/spi_bitbang/sample.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ tests:
66
- drivers
77
- spi
88
- gpio
9-
platform_allow: nrf52840dk/nrf52840
9+
platform_allow:
10+
- nrf52840dk/nrf52840
11+
- nrf54h20dk/nrf54h20/cpuapp
12+
- nrf54l15dk/nrf54l15/cpuapp
13+
- nrf54lm20dk/nrf54lm20a/cpuapp
14+
integration_platforms:
15+
- nrf52840dk/nrf52840
16+
- nrf54l15dk/nrf54l15/cpuapp
1017
depends_on: gpio
1118
harness: console
1219
harness_config:

0 commit comments

Comments
 (0)