Skip to content

Commit 68a48ec

Browse files
nordic-seglnordicjm
authored andcommitted
[nrf fromtree] samples: drivers: spi_bitbang: Enable sample on nrf54h20 PPR core
Add overlay required to run the sample on nrf54h20dk/nrf54h20/cpuppr. Signed-off-by: Sebastian Głąb <[email protected]> (cherry picked from commit 745fd00)
1 parent ac29721 commit 68a48ec

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
};
24+
25+
&gpio0 {
26+
status = "okay";
27+
};
28+
29+
&gpiote130 {
30+
status = "okay";
31+
owned-channels = <7>;
32+
};

samples/drivers/spi_bitbang/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ tests:
99
platform_allow:
1010
- nrf52840dk/nrf52840
1111
- nrf54h20dk/nrf54h20/cpuapp
12+
- nrf54h20dk/nrf54h20/cpuppr
1213
- nrf54l15dk/nrf54l15/cpuapp
1314
- nrf54lm20dk/nrf54lm20a/cpuapp
1415
integration_platforms:

0 commit comments

Comments
 (0)