-
Notifications
You must be signed in to change notification settings - Fork 645
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: nordic: add fast SPI to overlays
SPIM12x have more capabilities than SPIM13x, so it should be tested separately. Upstream PR: zephyrproject-rtos/zephyr#73545 Signed-off-by: Nikodem Kastelik <[email protected]>
- Loading branch information
1 parent
0b44283
commit 0741603
Showing
12 changed files
with
346 additions
and
22 deletions.
There are no files selected for viewing
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
75 changes: 75 additions & 0 deletions
75
tests/drivers/spi/spi_controller_peripheral/boards/nrf54h20dk_nrf54h20_cpuapp_fast.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,75 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&pinctrl { | ||
spi121_default_alt: spi121_default_alt { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_SCK, 7, 2)>, | ||
<NRF_PSEL(SPIM_MISO, 7, 0)>, | ||
<NRF_PSEL(SPIM_MOSI, 7, 1)>; | ||
}; | ||
}; | ||
|
||
spi121_sleep_alt: spi121_sleep_alt { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_SCK, 7, 2)>, | ||
<NRF_PSEL(SPIM_MISO, 7, 0)>, | ||
<NRF_PSEL(SPIM_MOSI, 7, 1)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
|
||
spis131_default_alt: spis131_default_alt { | ||
group1 { | ||
psels = <NRF_PSEL(SPIS_SCK, 1, 0)>, | ||
<NRF_PSEL(SPIS_MISO, 1, 9)>, | ||
<NRF_PSEL(SPIS_MOSI, 1, 5)>, | ||
<NRF_PSEL(SPIS_CSN, 0, 11)>; | ||
}; | ||
}; | ||
|
||
spis131_sleep_alt: spis131_sleep_alt { | ||
group1 { | ||
psels = <NRF_PSEL(SPIS_SCK, 1, 0)>, | ||
<NRF_PSEL(SPIS_MISO, 1, 9)>, | ||
<NRF_PSEL(SPIS_MOSI, 1, 5)>, | ||
<NRF_PSEL(SPIS_CSN, 0, 11)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
&gpio0 { | ||
status = "okay"; | ||
}; | ||
|
||
&spi121 { | ||
compatible = "nordic,nrf-spim"; | ||
status = "okay"; | ||
pinctrl-0 = <&spi121_default_alt>; | ||
pinctrl-1 = <&spi121_sleep_alt>; | ||
pinctrl-names = "default", "sleep"; | ||
overrun-character = <0x00>; | ||
memory-regions = <&dma_fast_region>; | ||
cs-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; | ||
dut_spi_dt: test-spi-dev@0 { | ||
compatible = "vnd,spi-device"; | ||
reg = <0>; | ||
spi-max-frequency = <DT_FREQ_M(8)>; | ||
}; | ||
}; | ||
|
||
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"; | ||
memory-regions = <&cpuapp_dma_region>; | ||
/delete-property/rx-delay-supported; | ||
/delete-property/rx-delay; | ||
}; |
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
75 changes: 75 additions & 0 deletions
75
tests/drivers/spi/spi_error_cases/boards/nrf54h20dk_nrf54h20_cpuapp_fast.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,75 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&pinctrl { | ||
spi121_default_alt: spi121_default_alt { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_SCK, 7, 2)>, | ||
<NRF_PSEL(SPIM_MISO, 7, 0)>, | ||
<NRF_PSEL(SPIM_MOSI, 7, 1)>; | ||
}; | ||
}; | ||
|
||
spi121_sleep_alt: spi121_sleep_alt { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_SCK, 7, 2)>, | ||
<NRF_PSEL(SPIM_MISO, 7, 0)>, | ||
<NRF_PSEL(SPIM_MOSI, 7, 1)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
|
||
spis131_default_alt: spis131_default_alt { | ||
group1 { | ||
psels = <NRF_PSEL(SPIS_SCK, 1, 0)>, | ||
<NRF_PSEL(SPIS_MISO, 1, 9)>, | ||
<NRF_PSEL(SPIS_MOSI, 1, 5)>, | ||
<NRF_PSEL(SPIS_CSN, 0, 11)>; | ||
}; | ||
}; | ||
|
||
spis131_sleep_alt: spis131_sleep_alt { | ||
group1 { | ||
psels = <NRF_PSEL(SPIS_SCK, 1, 0)>, | ||
<NRF_PSEL(SPIS_MISO, 1, 9)>, | ||
<NRF_PSEL(SPIS_MOSI, 1, 5)>, | ||
<NRF_PSEL(SPIS_CSN, 0, 11)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
&gpio0 { | ||
status = "okay"; | ||
}; | ||
|
||
&spi121 { | ||
compatible = "nordic,nrf-spim"; | ||
status = "okay"; | ||
pinctrl-0 = <&spi121_default_alt>; | ||
pinctrl-1 = <&spi121_sleep_alt>; | ||
pinctrl-names = "default", "sleep"; | ||
overrun-character = <0x00>; | ||
memory-regions = <&dma_fast_region>; | ||
cs-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; | ||
dut_spi_dt: test-spi-dev@0 { | ||
compatible = "vnd,spi-device"; | ||
reg = <0>; | ||
spi-max-frequency = <DT_FREQ_M(8)>; | ||
}; | ||
}; | ||
|
||
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"; | ||
memory-regions = <&cpuapp_dma_region>; | ||
/delete-property/rx-delay-supported; | ||
/delete-property/rx-delay; | ||
}; |
85 changes: 85 additions & 0 deletions
85
tests/drivers/spi/spi_error_cases/boards/nrf54h20dk_nrf54h20_cpuppr.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,85 @@ | ||
/* | ||
* 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>; | ||
}; | ||
|
||
&cpuapp_dma_region { | ||
status = "okay"; | ||
}; | ||
|
||
&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>; | ||
}; | ||
memory-regions = <&cpuapp_dma_region>; | ||
}; | ||
|
||
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"; | ||
memory-regions = <&cpuapp_dma_region>; | ||
/delete-property/rx-delay-supported; | ||
/delete-property/rx-delay; | ||
}; |
23 changes: 23 additions & 0 deletions
23
tests/drivers/spi/spi_error_cases/boards/nrf54h20dk_nrf54h20_cpuppr_launcher.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,23 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&spi130 { | ||
status = "reserved"; | ||
interrupt-parent = <&cpuppr_clic>; | ||
}; | ||
|
||
&spi131 { | ||
status = "reserved"; | ||
interrupt-parent = <&cpuppr_clic>; | ||
}; | ||
|
||
&shared_ram3x_region { | ||
status = "okay"; | ||
}; | ||
|
||
&gpio0 { | ||
status = "reserved"; | ||
}; |
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
Oops, something went wrong.