diff --git a/include/zephyr/drivers/clock_control/stm32_clock_control.h b/include/zephyr/drivers/clock_control/stm32_clock_control.h index 753aa0eafdbb10c..ffc882d9467cf13 100644 --- a/include/zephyr/drivers/clock_control/stm32_clock_control.h +++ b/include/zephyr/drivers/clock_control/stm32_clock_control.h @@ -444,7 +444,7 @@ struct stm32_pclken { #define STM32_CLOCK_INFO(clk_index, node_id) \ { \ .enr = DT_CLOCKS_CELL_BY_IDX(node_id, clk_index, bits), \ - .bus = DT_CLOCKS_CELL_BY_IDX(node_id, clk_index, bus) & 0xff, \ + .bus = DT_CLOCKS_CELL_BY_IDX(node_id, clk_index, bus) & 0x1ff, \ .div = DT_CLOCKS_CELL_BY_IDX(node_id, clk_index, bus) >> \ STM32_CLOCK_DIV_SHIFT, \ }