Skip to content

Commit e391c46

Browse files
ahasztagjukkar
authored andcommitted
samples: suit: Switch to legacy exmif driver
The flash_companion image needed to perform SUIT update from external memory currently requires to use the legacy SPI instead of the new MSPI driver. Signed-off-by: Artur Hadasz <[email protected]>
1 parent 685b60c commit e391c46

File tree

2 files changed

+107
-4
lines changed

2 files changed

+107
-4
lines changed

samples/suit/flash_companion/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323
status = "okay";
2424
};
2525

26-
&mx25uw63 {
27-
status = "okay";
28-
};
29-
3026
&uart136 {
3127
status = "disabled";
3228
};
@@ -46,3 +42,59 @@
4642
&prng {
4743
status = "disabled";
4844
};
45+
46+
47+
&exmif_default {
48+
group1 {
49+
psels = <NRF_PSEL(EXMIF_CK, 6, 0)>,
50+
<NRF_PSEL(EXMIF_DQ0, 6, 7)>,
51+
<NRF_PSEL(EXMIF_DQ1, 6, 5)>;
52+
nordic,drive-mode = <NRF_DRIVE_H0H1>;
53+
};
54+
};
55+
56+
/* Legacy exmif driver overlay - currently needed for DFU from extmem */
57+
58+
/delete-node/ &exmif;
59+
60+
&global_peripherals {
61+
exmif: spi@95000 {
62+
compatible = "nordic,nrf-exmif-spi", "snps,designware-spi";
63+
pinctrl-0 = <&exmif_default>;
64+
pinctrl-names = "default";
65+
#address-cells = <1>;
66+
#size-cells = <0>;
67+
reg = <0x95000 0x500 0x95500 0xb00>;
68+
reg-names = "wrapper", "core";
69+
interrupts = <149 NRF_DEFAULT_IRQ_PRIORITY>;
70+
power-domains = <&gpd NRF_GPD_FAST_ACTIVE0>;
71+
clock-frequency = <DT_FREQ_M(400)>;
72+
fifo-depth = <32>;
73+
max-xfer-size = <16>;
74+
cs-gpios = <&gpio6 3 GPIO_ACTIVE_LOW>;
75+
};
76+
};
77+
78+
&exmif {
79+
mx25uw63: mx25uw6345g@0 {
80+
compatible = "jedec,spi-nor";
81+
reg = <0>;
82+
spi-max-frequency = <DT_FREQ_M(48)>;
83+
jedec-id = [c2 84 37];
84+
sfdp-bfp = [
85+
e5 20 8a ff ff ff ff 03 00 ff 00 ff 00 ff 00 ff
86+
ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 10 d8
87+
00 ff 00 ff 87 79 01 00 84 12 00 c4 cc 04 67 46
88+
30 b0 30 b0 f4 bd d5 5c 00 00 00 ff 10 10 00 20
89+
00 00 00 00 00 00 7c 23 48 00 00 00 00 00 88 88
90+
];
91+
size = <67108864>;
92+
has-dpd;
93+
t-enter-dpd = <10000>;
94+
t-exit-dpd = <30000>;
95+
};
96+
};
97+
98+
&mx25uw63 {
99+
status = "okay";
100+
};

samples/suit/smp_transfer/boards/nrf54h20dk_nrf54h20_cpuapp_extflash.overlay

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,57 @@
1010
};
1111
};
1212

13+
/* Legacy exmif driver overlay - currently needed for DFU from extmem */
14+
15+
&exmif_default {
16+
group1 {
17+
psels = <NRF_PSEL(EXMIF_CK, 6, 0)>,
18+
<NRF_PSEL(EXMIF_DQ0, 6, 7)>,
19+
<NRF_PSEL(EXMIF_DQ1, 6, 5)>;
20+
nordic,drive-mode = <NRF_DRIVE_H0H1>;
21+
};
22+
};
23+
24+
/delete-node/ &exmif;
25+
26+
&global_peripherals {
27+
exmif: spi@95000 {
28+
compatible = "nordic,nrf-exmif-spi", "snps,designware-spi";
29+
pinctrl-0 = <&exmif_default>;
30+
pinctrl-names = "default";
31+
#address-cells = <1>;
32+
#size-cells = <0>;
33+
reg = <0x95000 0x500 0x95500 0xb00>;
34+
reg-names = "wrapper", "core";
35+
interrupts = <149 NRF_DEFAULT_IRQ_PRIORITY>;
36+
power-domains = <&gpd NRF_GPD_FAST_ACTIVE0>;
37+
clock-frequency = <DT_FREQ_M(400)>;
38+
fifo-depth = <32>;
39+
max-xfer-size = <16>;
40+
cs-gpios = <&gpio6 3 GPIO_ACTIVE_LOW>;
41+
};
42+
};
43+
44+
&exmif {
45+
mx25uw63: mx25uw6345g@0 {
46+
compatible = "jedec,spi-nor";
47+
reg = <0>;
48+
spi-max-frequency = <DT_FREQ_M(48)>;
49+
jedec-id = [c2 84 37];
50+
sfdp-bfp = [
51+
e5 20 8a ff ff ff ff 03 00 ff 00 ff 00 ff 00 ff
52+
ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 10 d8
53+
00 ff 00 ff 87 79 01 00 84 12 00 c4 cc 04 67 46
54+
30 b0 30 b0 f4 bd d5 5c 00 00 00 ff 10 10 00 20
55+
00 00 00 00 00 00 7c 23 48 00 00 00 00 00 88 88
56+
];
57+
size = <67108864>;
58+
has-dpd;
59+
t-enter-dpd = <10000>;
60+
t-exit-dpd = <30000>;
61+
};
62+
};
63+
1364
&mx25uw63 {
1465
status = "okay";
1566
partitions {

0 commit comments

Comments
 (0)