Skip to content

Commit 197bf73

Browse files
nordic-krchjukkar
authored andcommitted
[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)
1 parent 8d50189 commit 197bf73

File tree

3 files changed

+61
-33
lines changed

3 files changed

+61
-33
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&pinctrl {
8+
spi130_default: spi130_default {
9+
group1 {
10+
psels = <NRF_PSEL(SPIM_SCK, 0, 0)>,
11+
<NRF_PSEL(SPIM_MISO, 0, 6)>,
12+
<NRF_PSEL(SPIM_MOSI, 0, 7)>;
13+
};
14+
};
15+
16+
spi130_sleep: spi130_sleep {
17+
group1 {
18+
psels = <NRF_PSEL(SPIM_SCK, 0, 0)>,
19+
<NRF_PSEL(SPIM_MISO, 0, 6)>,
20+
<NRF_PSEL(SPIM_MOSI, 0, 7)>;
21+
low-power-enable;
22+
};
23+
};
24+
};
25+
26+
&spi130 {
27+
pinctrl-0 = <&spi130_default>;
28+
pinctrl-1 = <&spi130_sleep>;
29+
pinctrl-names = "default", "sleep";
30+
overrun-character = <0x00>;
31+
slow@0 {
32+
compatible = "test-spi-loopback-slow";
33+
reg = <0>;
34+
spi-max-frequency = <DT_FREQ_K(500)>;
35+
};
36+
fast@0 {
37+
compatible = "test-spi-loopback-fast";
38+
reg = <0>;
39+
spi-max-frequency = <DT_FREQ_M(8)>;
40+
};
41+
};
42+
43+
&gpio0 {
44+
status = "okay";
45+
};
46+
47+
&gpiote130 {
48+
status = "okay";
49+
};

tests/drivers/spi/spi_loopback/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,9 @@
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6-
7-
&pinctrl {
8-
spi130_default: spi130_default {
9-
group1 {
10-
psels = <NRF_PSEL(SPIM_SCK, 0, 0)>,
11-
<NRF_PSEL(SPIM_MOSI, 0, 7)>,
12-
<NRF_PSEL(SPIM_MISO, 0, 6)>;
13-
};
14-
};
15-
16-
spi130_sleep: spi130_sleep {
17-
group1 {
18-
psels = <NRF_PSEL(SPIM_SCK, 0, 0)>,
19-
<NRF_PSEL(SPIM_MISO, 0, 6)>,
20-
<NRF_PSEL(SPIM_MOSI, 0, 7)>;
21-
low-power-enable;
22-
};
23-
};
24-
};
6+
#include "nrf54h20dk_nrf54h20_common.dtsi"
257

268
&spi130 {
279
status = "okay";
28-
pinctrl-0 = <&spi130_default>;
29-
pinctrl-1 = <&spi130_sleep>;
30-
pinctrl-names = "default", "sleep";
31-
overrun-character = <0x00>;
3210
memory-regions = <&cpuapp_dma_region>;
33-
slow@0 {
34-
compatible = "test-spi-loopback-slow";
35-
reg = <0>;
36-
spi-max-frequency = <DT_FREQ_K(500)>;
37-
};
38-
fast@0 {
39-
compatible = "test-spi-loopback-fast";
40-
reg = <0>;
41-
spi-max-frequency = <DT_FREQ_M(8)>;
42-
};
4311
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
#include "nrf54h20dk_nrf54h20_common.dtsi"
7+
8+
&spi130 {
9+
status = "okay";
10+
memory-regions = <&cpurad_dma_region>;
11+
};

0 commit comments

Comments
 (0)