Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dts: arm: st: c0: add nodes for MCO clocks
This commit adds nodes for MCO clocks for the STM32C0 series. Also adds macros for selecting source and division of the MCO clocks. Adding the following to the nucleo_c031c6 board dts while running the hello_world sample gives an output clock of 6 MHz on PA9 from dividing the 48 MHz HSE with 8: &clk_mco { clocks = <&rcc 0 MCO_DIV(3)>, <&rcc 0 MCO_SEL(4)>; pinctrl-0 = <&rcc_mco_pa9>; pinctrl-names = "default"; status = "okay"; }; Signed-off-by: Benjamin Björnsson <[email protected]>
- Loading branch information