Skip to content

Commit 43c79ba

Browse files
Mathieu Choplaindkalowsk
authored andcommitted
dts: st: stm32u5: restore correct clocks on multi-bit devices
During the transition to STM32_CLOCK macro (in 57723cf), the `clocks` property of peripherals requiring more than one bit to be set were mistakenly modified. Commit 2c3294b partially fixed these errors, but some nodes for the U5 series are still wrong. Restore `clocks` on affected devices in corresponding STM32U5 DTSI. Fixes: 57723cf Signed-off-by: Mathieu Choplain <[email protected]> (cherry picked from commit 37bdc38)
1 parent 7412674 commit 43c79ba

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dts/arm/st/u5/stm32u5.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@
304304
compatible = "zephyr,memory-region", "st,stm32-backup-sram";
305305
reg = <0x40036400 DT_SIZE_K(2)>;
306306
/* BKPSRAMEN and RAMCFGEN clock enable */
307-
clocks = <&rcc STM32_CLOCK(AHB1, 28U)>;
307+
clocks = <&rcc STM32_CLOCK_BUS_AHB1 ((1 << 28) | (1 << 17))>;
308308
zephyr,memory-region = "BACKUP_SRAM";
309309
status = "disabled";
310310
};

dts/arm/st/u5/stm32u595.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@
106106
num-bidir-endpoints = <9>;
107107
ram-size = <4096>;
108108
maximum-speed = "high-speed";
109-
clocks = <&rcc STM32_CLOCK(AHB2, 15U)>,
109+
/* Enable OTG_HS PHY and peripheral clocks (OTGHSPHYEN | OTGEN) */
110+
clocks = <&rcc STM32_CLOCK_BUS_AHB2 ((1 << 15) | (1 << 14))>,
110111
<&rcc STM32_SRC_HSI48 ICKLK_SEL(0)>;
111112
phys = <&otghs_phy>;
112113
status = "disabled";

0 commit comments

Comments
 (0)