Skip to content

Commit

Permalink
[nrf fromtree] tests: drivers: spi: spi_loopback: Add nrf54h20dk cpurad
Browse files Browse the repository at this point in the history
Add overlay for nrf54h20dk cpurad.

Signed-off-by: Krzysztof Chruściński <[email protected]>
(cherry picked from commit 20c34ea)
  • Loading branch information
nordic-krch authored and jukkar committed Dec 13, 2024
1 parent 8d50189 commit 197bf73
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 33 deletions.
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";
};
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,9 @@
*
* SPDX-License-Identifier: Apache-2.0
*/

&pinctrl {
spi130_default: spi130_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 0)>,
<NRF_PSEL(SPIM_MOSI, 0, 7)>,
<NRF_PSEL(SPIM_MISO, 0, 6)>;
};
};

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;
};
};
};
#include "nrf54h20dk_nrf54h20_common.dtsi"

&spi130 {
status = "okay";
pinctrl-0 = <&spi130_default>;
pinctrl-1 = <&spi130_sleep>;
pinctrl-names = "default", "sleep";
overrun-character = <0x00>;
memory-regions = <&cpuapp_dma_region>;
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)>;
};
};
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>;
};

0 comments on commit 197bf73

Please sign in to comment.