This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_CLOCK_STM32_PLL_Q_DIVISOR

Division factor for OTG FS, SDIO and RNG clocks

PLL Q Divisor

PLL Q Divisor

PLL Q Divisor

PLL Q Divisor

Type: int

Help

The USB OTG FS requires a 48MHz clock to work correctly. SDIO and RNG
need a frequency lower than or equal to 48 MHz to work correctly.
Allowed values: 2-15

Help

PLL Q Output divisor, allowed values: 1-128.

Help

PLL Q Output divisor
L4: allowed values: 0, 2, 4, 6, 8. PLLQ do not exceed 80MHz
L5: allowed values: 0, 2, 4, 6, 8. PLLQ do not exceed 80MHz
WB: allowed values: 0, 2-8. PLLQ do not exceed 64MHz
WL: allowed values: 0, 2-8. PLLQ do not exceed 48MHz

Help

PLL Q VCO divisor, allowed values: 2-8.
Limited to STM32G0B0 and STM32G0X1 variants.

Help

PLL Q Output divisor, allowed values: 2, 4, 6, 8.

Defaults

  • 7

  • 2

  • 2

  • 2

  • 2

Kconfig definitions

At drivers/clock_control/Kconfig.stm32f2_f4_f7:40

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:54drivers/clock_control/Kconfig:25drivers/clock_control/Kconfig.stm32:152

Menu path: (Top) → Device Drivers → Hardware clock controller support → STM32 Reset & Clock Control

config CLOCK_STM32_PLL_Q_DIVISOR
    int "Division factor for OTG FS, SDIO and RNG clocks"
    range 2 15
    default 7
    depends on CLOCK_STM32_SYSCLK_SRC_PLL && (SOC_SERIES_STM32F2X || SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X) && !CLOCK_CONTROL_STM32_HAS_DTS && !SOC_SERIES_STM32MP1X && CLOCK_CONTROL_STM32_CUBE && CLOCK_CONTROL
    help
      The USB OTG FS requires a 48MHz clock to work correctly. SDIO and RNG
      need a frequency lower than or equal to 48 MHz to work correctly.
      Allowed values: 2-15

At drivers/clock_control/Kconfig.stm32h7:91

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:54drivers/clock_control/Kconfig:25drivers/clock_control/Kconfig.stm32:153

Menu path: (Top) → Device Drivers → Hardware clock controller support → STM32 Reset & Clock Control

config CLOCK_STM32_PLL_Q_DIVISOR
    int "PLL Q Divisor"
    range 1 128
    default 2
    depends on CLOCK_STM32_SYSCLK_SRC_PLL && SOC_SERIES_STM32H7X && !CLOCK_CONTROL_STM32_HAS_DTS && !SOC_SERIES_STM32MP1X && CLOCK_CONTROL_STM32_CUBE && CLOCK_CONTROL
    help
      PLL Q Output divisor, allowed values: 1-128.

At drivers/clock_control/Kconfig.stm32l4_l5_wb_wl:47

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:54drivers/clock_control/Kconfig:25drivers/clock_control/Kconfig.stm32:155

Menu path: (Top) → Device Drivers → Hardware clock controller support → STM32 Reset & Clock Control

config CLOCK_STM32_PLL_Q_DIVISOR
    int "PLL Q Divisor"
    range 0 8
    default 2
    depends on CLOCK_STM32_SYSCLK_SRC_PLL && (SOC_SERIES_STM32L4X || SOC_SERIES_STM32L5X || SOC_SERIES_STM32WBX || SOC_SERIES_STM32WLX) && !CLOCK_CONTROL_STM32_HAS_DTS && !SOC_SERIES_STM32MP1X && CLOCK_CONTROL_STM32_CUBE && CLOCK_CONTROL
    help
      PLL Q Output divisor
      L4: allowed values: 0, 2, 4, 6, 8. PLLQ do not exceed 80MHz
      L5: allowed values: 0, 2, 4, 6, 8. PLLQ do not exceed 80MHz
      WB: allowed values: 0, 2-8. PLLQ do not exceed 64MHz
      WL: allowed values: 0, 2-8. PLLQ do not exceed 48MHz

At drivers/clock_control/Kconfig.stm32g0:33

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:54drivers/clock_control/Kconfig:25drivers/clock_control/Kconfig.stm32:156

Menu path: (Top) → Device Drivers → Hardware clock controller support → STM32 Reset & Clock Control

config CLOCK_STM32_PLL_Q_DIVISOR
    int "PLL Q Divisor"
    range 2 8
    default 2
    depends on CLOCK_STM32_SYSCLK_SRC_PLL && (SOC_STM32G031XX || SOC_STM32G051XX || SOC_STM32G071XX || SOC_STM32G0B1XX || SOC_STM32G0B0XX) && SOC_SERIES_STM32G0X && !CLOCK_CONTROL_STM32_HAS_DTS && !SOC_SERIES_STM32MP1X && CLOCK_CONTROL_STM32_CUBE && CLOCK_CONTROL
    help
      PLL Q VCO divisor, allowed values: 2-8.
      Limited to STM32G0B0 and STM32G0X1 variants.

At drivers/clock_control/Kconfig.stm32g4:32

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:54drivers/clock_control/Kconfig:25drivers/clock_control/Kconfig.stm32:157

Menu path: (Top) → Device Drivers → Hardware clock controller support → STM32 Reset & Clock Control

config CLOCK_STM32_PLL_Q_DIVISOR
    int "PLL Q Divisor"
    range 2 8
    default 2
    depends on CLOCK_STM32_SYSCLK_SRC_PLL && SOC_SERIES_STM32G4X && !CLOCK_CONTROL_STM32_HAS_DTS && !SOC_SERIES_STM32MP1X && CLOCK_CONTROL_STM32_CUBE && CLOCK_CONTROL
    help
      PLL Q Output divisor, allowed values: 2, 4, 6, 8.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)