st,stm32-clock-mco

Vendor: STMicroelectronics

Note

An implementation of a driver matching this compatible is available in drivers/clock_control/clock_stm32_mco.c.

Description

STM32 Microcontroller Clock Output (MCO)

Used to output a clock signal from the MCU to a GPIO pin.
The selected signal goes through a configurable prescaler before output.

Example:
        &mco1 {
                clocks = <&rcc STM32_SRC_LSE MCO1_SEL(7)>;
                prescaler = <MCO1_PRE(1)>;
                pinctrl-0 = <&rcc_mco_pa8>;
                pinctrl-names = "default";
                status = "okay";
        };

Properties

Properties not inherited from the base binding file.

Name

Type

Details

pinctrl-0

phandles

Pin configuration/s for the first state. Content is specific to the
selected pin controller driver implementation.

This property is required.

pinctrl-1

phandles

Pin configuration/s for the second state. See pinctrl-0.

pinctrl-2

phandles

Pin configuration/s for the third state. See pinctrl-0.

pinctrl-3

phandles

Pin configuration/s for the fourth state. See pinctrl-0.

pinctrl-4

phandles

Pin configuration/s for the fifth state. See pinctrl-0.

pinctrl-names

string-array

Names for the provided states. The number of names needs to match the
number of states.

This property is required.

prescaler

int

This property is required.