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 <sebastian.glab@nordicsemi.no>
This commit is contained in:
parent
537b1ef4e7
commit
e314eb649a
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) 2025 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/*
|
||||
* Test requires loopback between P0.06 and P0.07.
|
||||
* No other driver on SPI_CLK and SPI_CS.
|
||||
*/
|
||||
|
||||
/ {
|
||||
spibb0: spibb0 {
|
||||
compatible = "zephyr,spi-bitbang";
|
||||
status="okay";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
clk-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
|
||||
mosi-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
|
||||
miso-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
|
||||
cs-gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) 2025 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/*
|
||||
* Test requires loopback between P1.10 and P1.11
|
||||
* No other driver on SPI_CLK and SPI_CS.
|
||||
*/
|
||||
|
||||
/ {
|
||||
spibb0: spibb0 {
|
||||
compatible = "zephyr,spi-bitbang";
|
||||
status="okay";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
clk-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
|
||||
mosi-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
|
||||
miso-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
|
||||
cs-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) 2025 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/*
|
||||
* Test requires loopback between P1.13 and P1.14
|
||||
* No other driver on SPI_CLK and SPI_CS.
|
||||
*/
|
||||
|
||||
/ {
|
||||
spibb0: spibb0 {
|
||||
compatible = "zephyr,spi-bitbang";
|
||||
status="okay";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
clk-gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
|
||||
mosi-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
|
||||
miso-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
|
||||
cs-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
@ -6,7 +6,14 @@ tests:
|
||||
- drivers
|
||||
- spi
|
||||
- gpio
|
||||
platform_allow: nrf52840dk/nrf52840
|
||||
platform_allow:
|
||||
- nrf52840dk/nrf52840
|
||||
- nrf54h20dk/nrf54h20/cpuapp
|
||||
- nrf54l15dk/nrf54l15/cpuapp
|
||||
- nrf54lm20dk/nrf54lm20a/cpuapp
|
||||
integration_platforms:
|
||||
- nrf52840dk/nrf52840
|
||||
- nrf54l15dk/nrf54l15/cpuapp
|
||||
depends_on: gpio
|
||||
harness: console
|
||||
harness_config:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user