-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf fromlist] tests: drivers: spi: spi_slave: Add nrf54h20dk
Add configuration for nrf54h20dk to the test. Upstream PR: zephyrproject-rtos/zephyr#71677 Signed-off-by: Krzysztof Chruściński <[email protected]>
- Loading branch information
1 parent
cd31de0
commit a49a583
Showing
5 changed files
with
111 additions
and
1 deletion.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
tests/drivers/spi/spi_slave/boards/nrf54h20dk_nrf54h20_common.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&pinctrl { | ||
spi130_default_alt: spi130_default_alt { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_SCK, 0, 0)>, | ||
<NRF_PSEL(SPIM_MISO, 0, 6)>, | ||
<NRF_PSEL(SPIM_MOSI, 0, 8)>; | ||
}; | ||
}; | ||
|
||
spi130_sleep_alt: spi130_sleep_alt { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_SCK, 0, 0)>, | ||
<NRF_PSEL(SPIM_MISO, 0, 6)>, | ||
<NRF_PSEL(SPIM_MOSI, 0, 8)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
|
||
spis131_default_alt: spis131_default_alt { | ||
group1 { | ||
psels = <NRF_PSEL(SPIS_SCK, 0, 1)>, | ||
<NRF_PSEL(SPIS_MISO, 0, 7)>, | ||
<NRF_PSEL(SPIS_MOSI, 0, 9)>, | ||
<NRF_PSEL(SPIS_CSN, 0, 11)>; | ||
}; | ||
}; | ||
|
||
spis131_sleep_alt: spis131_sleep_alt { | ||
group1 { | ||
psels = <NRF_PSEL(SPIS_SCK, 0, 1)>, | ||
<NRF_PSEL(SPIS_MISO, 0, 7)>, | ||
<NRF_PSEL(SPIS_MOSI, 0, 9)>, | ||
<NRF_PSEL(SPIS_CSN, 0, 11)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
|
||
}; | ||
|
||
&gpio0 { | ||
status = "okay"; | ||
}; | ||
|
||
&gpiote130 { | ||
status = "okay"; | ||
owned-channels = <7>; | ||
}; | ||
|
||
dut_spi: &spi130 { | ||
compatible = "nordic,nrf-spim"; | ||
status = "okay"; | ||
pinctrl-0 = <&spi130_default_alt>; | ||
pinctrl-1 = <&spi130_sleep_alt>; | ||
pinctrl-names = "default", "sleep"; | ||
overrun-character = <0x00>; | ||
cs-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; | ||
dut_spi_dt: test-spi-dev@0 { | ||
compatible = "vnd,spi-device"; | ||
reg = <0>; | ||
spi-max-frequency = <500000>; | ||
}; | ||
}; | ||
|
||
dut_spis: &spi131 { | ||
compatible = "nordic,nrf-spis"; | ||
status = "okay"; | ||
def-char = <0x00>; | ||
pinctrl-0 = <&spis131_default_alt>; | ||
pinctrl-1 = <&spis131_sleep_alt>; | ||
pinctrl-names = "default", "sleep"; | ||
/delete-property/rx-delay-supported; | ||
/delete-property/rx-delay; | ||
}; |
14 changes: 14 additions & 0 deletions
14
tests/drivers/spi/spi_slave/boards/nrf54h20dk_nrf54h20_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
#include "nrf54h20dk_nrf54h20_common.dtsi" | ||
|
||
&dut_spi { | ||
memory-regions = <&cpuapp_dma_region>; | ||
}; | ||
|
||
&dut_spis { | ||
memory-regions = <&cpuapp_dma_region>; | ||
}; |
14 changes: 14 additions & 0 deletions
14
tests/drivers/spi/spi_slave/boards/nrf54h20dk_nrf54h20_cpurad.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
#include "nrf54h20dk_nrf54h20_common.dtsi" | ||
|
||
&dut_spi { | ||
memory-regions = <&cpurad_dma_region>; | ||
}; | ||
|
||
&dut_spis { | ||
memory-regions = <&cpurad_dma_region>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters