-
Notifications
You must be signed in to change notification settings - Fork 642
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf fromtree] tests: drivers: spi: spi_loopback: Add nrf54h20dk cpurad
Add overlay for nrf54h20dk cpurad. Signed-off-by: Krzysztof Chruściński <[email protected]> (cherry picked from commit 20c34ea)
- Loading branch information
1 parent
8d50189
commit 197bf73
Showing
3 changed files
with
61 additions
and
33 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
tests/drivers/spi/spi_loopback/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,49 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&pinctrl { | ||
spi130_default: spi130_default { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_SCK, 0, 0)>, | ||
<NRF_PSEL(SPIM_MISO, 0, 6)>, | ||
<NRF_PSEL(SPIM_MOSI, 0, 7)>; | ||
}; | ||
}; | ||
|
||
spi130_sleep: spi130_sleep { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_SCK, 0, 0)>, | ||
<NRF_PSEL(SPIM_MISO, 0, 6)>, | ||
<NRF_PSEL(SPIM_MOSI, 0, 7)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
&spi130 { | ||
pinctrl-0 = <&spi130_default>; | ||
pinctrl-1 = <&spi130_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
overrun-character = <0x00>; | ||
slow@0 { | ||
compatible = "test-spi-loopback-slow"; | ||
reg = <0>; | ||
spi-max-frequency = <DT_FREQ_K(500)>; | ||
}; | ||
fast@0 { | ||
compatible = "test-spi-loopback-fast"; | ||
reg = <0>; | ||
spi-max-frequency = <DT_FREQ_M(8)>; | ||
}; | ||
}; | ||
|
||
&gpio0 { | ||
status = "okay"; | ||
}; | ||
|
||
&gpiote130 { | ||
status = "okay"; | ||
}; |
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
11 changes: 11 additions & 0 deletions
11
tests/drivers/spi/spi_loopback/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,11 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
#include "nrf54h20dk_nrf54h20_common.dtsi" | ||
|
||
&spi130 { | ||
status = "okay"; | ||
memory-regions = <&cpurad_dma_region>; | ||
}; |