Skip to content

Commit e102fc9

Browse files
str4t0mcfriedt
authored andcommitted
dts: arm: st: stm32h5: set default alt clock for fdcan
Explicitly set the default alt clock for canfd. Without explicitly setting it the clock subsystem will return the frequency of the gating clock(APB1). Signed-off-by: Thomas Stranger <[email protected]>
1 parent 9783a70 commit e102fc9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

dts/arm/st/h5/stm32h5.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,8 @@
529529
reg-names = "m_can", "message_ram";
530530
interrupts = <39 0>, <40 0>;
531531
interrupt-names = "int0", "int1";
532-
clocks = <&rcc STM32_CLOCK(APB1_2, 9)>;
532+
clocks = <&rcc STM32_CLOCK(APB1_2, 9)>,
533+
<&rcc STM32_SRC_HSE FDCAN_SEL(0)>;
533534
bosch,mram-cfg = <0x0 28 8 3 3 0 3 3>;
534535
status = "disabled";
535536
};

dts/arm/st/h5/stm32h523.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
interrupts = <109 0>, <110 0>;
3333
interrupt-names = "int0", "int1";
3434
/* common clock FDCAN 1 & 2 */
35-
clocks = <&rcc STM32_CLOCK(APB1_2, 9)>;
35+
clocks = <&rcc STM32_CLOCK(APB1_2, 9)>,
36+
<&rcc STM32_SRC_HSE FDCAN_SEL(0)>;
3637
bosch,mram-cfg = <0x350 28 8 3 3 0 3 3>;
3738
status = "disabled";
3839
};

dts/arm/st/h5/stm32h563.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
interrupts = <109 0>, <110 0>;
5151
interrupt-names = "int0", "int1";
5252
/* common clock FDCAN 1 & 2 */
53-
clocks = <&rcc STM32_CLOCK(APB1_2, 9)>;
53+
clocks = <&rcc STM32_CLOCK(APB1_2, 9)>,
54+
<&rcc STM32_SRC_HSE FDCAN_SEL(0)>;
5455
bosch,mram-cfg = <0x350 28 8 3 3 0 3 3>;
5556
status = "disabled";
5657
};

0 commit comments

Comments
 (0)