Skip to content

Commit 29b1e2a

Browse files
FRASTMaescolar
authored andcommitted
boards: st: nucleo_h743/h753 use the FDCAN clock at 80MHz on pll2q
When using the FDCAN1, use the PLL2q clock source at 80MHz on the nucleo_h743zi or nucleo_753zi boards, now that sysclck is 480MHz. Signed-off-by: Francois Ramu <[email protected]>
1 parent abeae8f commit 29b1e2a

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

boards/st/nucleo_h743zi/nucleo_h743zi.dts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@
8989
status = "okay";
9090
};
9191

92+
&pll2 {
93+
div-m = <4>;
94+
mul-n = <120>;
95+
div-p = <2>;
96+
div-q = <3>; /* gives 80MHz to the FDCAN */
97+
div-r = <2>;
98+
clocks = <&clk_hse>;
99+
status = "okay";
100+
};
101+
92102
&rcc {
93103
clocks = <&pll>;
94104
clock-frequency = <DT_FREQ_M(480)>;
@@ -171,7 +181,7 @@ zephyr_udc0: &usbotg_fs {
171181
pinctrl-0 = <&fdcan1_rx_pd0 &fdcan1_tx_pd1>;
172182
pinctrl-names = "default";
173183
clocks = <&rcc STM32_CLOCK_BUS_APB1_2 0x00000100>,
174-
<&rcc STM32_SRC_PLL1_Q FDCAN_SEL(1)>;
184+
<&rcc STM32_SRC_PLL2_Q FDCAN_SEL(2)>;
175185
status = "okay";
176186
};
177187

boards/st/nucleo_h753zi/nucleo_h753zi.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,16 @@
8686
status = "okay";
8787
};
8888

89+
&pll2 {
90+
div-m = <4>;
91+
mul-n = <120>;
92+
div-p = <2>;
93+
div-q = <3>; /* gives 80MHz to the FDCAN */
94+
div-r = <2>;
95+
clocks = <&clk_hse>;
96+
status = "okay";
97+
};
98+
8999
&rcc {
90100
clocks = <&pll>;
91101
clock-frequency = <DT_FREQ_M(480)>;
@@ -147,6 +157,8 @@ zephyr_udc0: &usbotg_fs {
147157
};
148158

149159
&fdcan1 {
160+
clocks = <&rcc STM32_CLOCK_BUS_APB1_2 0x00000100>,
161+
<&rcc STM32_SRC_PLL2_Q FDCAN_SEL(2)>;
150162
pinctrl-0 = <&fdcan1_rx_pd0 &fdcan1_tx_pd1>;
151163
pinctrl-names = "default";
152164
status = "okay";

0 commit comments

Comments
 (0)