Skip to content

Commit f3ea832

Browse files
gautierg-stkartben
authored andcommitted
boards: st: n6: use ic3 as xspi kernel clock
Configure and enable IC3 to 400MHz and use it as kernel clock for XSPI instances. Signed-off-by: Guillaume Gautier <[email protected]>
1 parent eab11ac commit f3ea832

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

boards/st/nucleo_n657x0_q/nucleo_n657x0_q_common.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@
9797
status = "okay";
9898
};
9999

100+
&ic3 {
101+
pll-src = <1>;
102+
ic-div = <6>;
103+
status = "okay";
104+
};
105+
100106
&ic6 {
101107
pll-src = <3>;
102108
ic-div = <2>;
@@ -224,6 +230,9 @@ zephyr_udc0: &usbotg_hs1 {
224230
&xspim_p2_io3_pn5 &xspim_p2_io4_pn8 &xspim_p2_io5_pn9
225231
&xspim_p2_io6_pn10 &xspim_p2_io7_pn11>;
226232
pinctrl-names = "default";
233+
clocks = <&rcc STM32_CLOCK(AHB5, 12)>,
234+
<&rcc STM32_SRC_IC3 XSPI1_SEL(2)>,
235+
<&rcc STM32_CLOCK(AHB5, 13)>;
227236
status = "okay";
228237

229238
mx25um51245g: ospi-nor-flash@70000000 {

boards/st/stm32n6570_dk/stm32n6570_dk_common.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@
107107
status = "okay";
108108
};
109109

110+
&ic3 {
111+
pll-src = <1>;
112+
ic-div = <6>;
113+
status = "okay";
114+
};
115+
110116
&ic4 {
111117
pll-src = <2>;
112118
ic-div = <32>;
@@ -238,6 +244,9 @@ zephyr_udc0: &usbotg_hs1 {
238244
&xspim_p1_io12_pp12 &xspim_p1_io13_pp13 &xspim_p1_io14_pp14
239245
&xspim_p1_io15_pp15>;
240246
pinctrl-names = "default";
247+
clocks = <&rcc STM32_CLOCK(AHB5, 5)>,
248+
<&rcc STM32_SRC_IC3 XSPI1_SEL(2)>,
249+
<&rcc STM32_CLOCK(AHB5, 13)>;
241250
status = "okay";
242251

243252
memc: aps256xxn_obr: memory@90000000 {
@@ -258,6 +267,9 @@ zephyr_udc0: &usbotg_hs1 {
258267
&xspim_p2_io3_pn5 &xspim_p2_io4_pn8 &xspim_p2_io5_pn9
259268
&xspim_p2_io6_pn10 &xspim_p2_io7_pn11>;
260269
pinctrl-names = "default";
270+
clocks = <&rcc STM32_CLOCK(AHB5, 12)>,
271+
<&rcc STM32_SRC_IC3 XSPI1_SEL(2)>,
272+
<&rcc STM32_CLOCK(AHB5, 13)>;
261273
status = "okay";
262274

263275
mx66uw1g45g: ospi-nor-flash@70000000 {

0 commit comments

Comments
 (0)