Skip to content

Commit cc64b17

Browse files
uLipekartben
authored andcommitted
boards: witte: linum: fix clock settings.
to make the ethernet, USB and FDCAN usable. Signed-off-by: Felipe Neves <ryukokki.felipe@gmail.com>
1 parent 88f50fa commit cc64b17

1 file changed

Lines changed: 24 additions & 5 deletions

File tree

boards/witte/linum/linum.dts

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/dts-v1/;
88
#include <st/h7/stm32h753Xi.dtsi>
99
#include <st/h7/stm32h753bitx-pinctrl.dtsi>
10+
#include <zephyr/dt-bindings/clock/stm32h7_clock.h>
1011
#include <zephyr/dt-bindings/input/input-event-codes.h>
1112

1213
/ {
@@ -126,11 +127,21 @@
126127
};
127128

128129
&pll2 {
129-
div-m = <2>;
130-
mul-n = <48>;
130+
div-m = <5>;
131+
mul-n = <96>;
131132
div-p = <8>;
132133
div-q = <40>;
133-
div-r = <3>;
134+
div-r = <10>;
135+
clocks = <&clk_hse>;
136+
status = "okay";
137+
};
138+
139+
&pll3 {
140+
div-m = <5>;
141+
mul-n = <128>;
142+
div-p = <4>;
143+
div-q = <4>;
144+
div-r = <25>;
134145
clocks = <&clk_hse>;
135146
status = "okay";
136147
};
@@ -146,8 +157,12 @@
146157
d3ppre = <2>;
147158
};
148159

149-
&pwr {
150-
power-supply = "ldo";
160+
&mco1 {
161+
status = "okay";
162+
clocks = <&rcc STM32_SRC_HSE MCO1_SEL(MCO1_SEL_HSE)>;
163+
prescaler = <MCO1_PRE(MCO_PRE_DIV_1)>;
164+
pinctrl-0 = <&rcc_mco_1_pa8>;
165+
pinctrl-names = "default";
151166
};
152167

153168
&usart1 {
@@ -456,3 +471,7 @@ zephyr_udc0: &usbotg_fs {
456471
};
457472
};
458473
};
474+
475+
&pwr {
476+
power-supply = "ldo";
477+
};

0 commit comments

Comments
 (0)