2021-04-02 22:56:12 +08:00
|
|
|
|
# Copyright (c) 2021, Linaro ltd
|
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
|
|
description: |
|
2023-02-28 16:51:10 +08:00
|
|
|
|
STM32F4 Main PLL node binding:
|
2021-04-02 22:56:12 +08:00
|
|
|
|
|
|
|
|
|
Takes one of clk_hse or clk_hsi as input clock, with an
|
|
|
|
|
input frequency from 1 to 2 MHz. PLLM factor is used to set the input clock
|
|
|
|
|
in this acceptable range.
|
|
|
|
|
|
|
|
|
|
Up to 2 output clocks could be supported and for each output clock, the
|
|
|
|
|
frequency can be computed with the following formula:
|
|
|
|
|
|
|
|
|
|
f(PLL_P) = f(VCO clock) / PLLP --> PLLCLK (System Clock)
|
|
|
|
|
f(PLL_Q) = f(VCO clock) / PLLQ --> PLL48CLK (Optional)
|
|
|
|
|
|
|
|
|
|
with f(VCO clock) = f(PLL clock input) × (PLLN / PLLM)
|
|
|
|
|
|
|
|
|
|
The PLL output frequency must not exceed 80 MHz.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
compatible: "st,stm32f4-pll-clock"
|
|
|
|
|
|
|
|
|
|
include: [clock-controller.yaml, base.yaml]
|
|
|
|
|
|
|
|
|
|
properties:
|
2023-01-04 03:21:25 +08:00
|
|
|
|
"#clock-cells":
|
|
|
|
|
const: 0
|
|
|
|
|
|
|
|
|
|
clocks:
|
|
|
|
|
required: true
|
|
|
|
|
|
|
|
|
|
div-m:
|
|
|
|
|
type: int
|
|
|
|
|
required: true
|
|
|
|
|
description: |
|
|
|
|
|
Division factor for the PLL input clock
|
|
|
|
|
Valid range: 2 - 63
|
|
|
|
|
|
|
|
|
|
mul-n:
|
|
|
|
|
type: int
|
|
|
|
|
required: true
|
|
|
|
|
description: |
|
|
|
|
|
Main PLL multiplication factor for VCO
|
|
|
|
|
Valid range: 50 - 432
|
|
|
|
|
|
|
|
|
|
div-p:
|
|
|
|
|
type: int
|
|
|
|
|
required: true
|
|
|
|
|
description: |
|
|
|
|
|
Main PLL division factor for PLLSAI2CLK
|
|
|
|
|
enum:
|
|
|
|
|
- 2
|
|
|
|
|
- 4
|
|
|
|
|
- 6
|
|
|
|
|
- 8
|
|
|
|
|
|
|
|
|
|
div-q:
|
|
|
|
|
type: int
|
|
|
|
|
description: |
|
|
|
|
|
Main PLL (PLL) division factor for USB OTG FS, SDMMC and random number
|
|
|
|
|
generator clocks.
|
|
|
|
|
Valid range: 2 - 15
|
2023-12-22 21:10:24 +08:00
|
|
|
|
|
|
|
|
|
div-r:
|
|
|
|
|
type: int
|
|
|
|
|
description: |
|
|
|
|
|
Main PLL (PLL) division factor for I2S and DFSDM
|
|
|
|
|
generator clocks.
|
|
|
|
|
Valid range: 2 - 7
|