|
| 1 | +# Copyright (c) 2025, STMicroelectronics |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +description: | |
| 5 | + PLLSAI node binding for STM32F4 and STM32F7 device |
| 6 | +
|
| 7 | + Takes one of clk_hse or clk_hsi as input clock. |
| 8 | +
|
| 9 | + The PLL can have up to 3 output clocks and for each output clock, the |
| 10 | + frequency can be computed with the following formulae: |
| 11 | +
|
| 12 | + f(PLLSAI_P) = f(VCO clock) / PLLSAIP |
| 13 | + f(PLLSAI_Q) = f(VCO clock) / PLLSAIQ |
| 14 | + f(PLLSAI_R) = f(VCO clock) / PLLSAIR |
| 15 | +
|
| 16 | + with f(VCO clock) = f(PLL clock input) × (PLLSAIN / PLLSAIM) |
| 17 | +
|
| 18 | + The PLL clock input is shared with other PLLs (PLL / PLLI2S) of the |
| 19 | + SoC hence all PLLs must have the same source set. |
| 20 | +
|
| 21 | +compatible: "st,stm32fx-pllsai-clock" |
| 22 | + |
| 23 | +include: [clock-controller.yaml, base.yaml] |
| 24 | + |
| 25 | +properties: |
| 26 | + "#clock-cells": |
| 27 | + const: 0 |
| 28 | + |
| 29 | + clocks: |
| 30 | + required: true |
| 31 | + |
| 32 | + div-m: |
| 33 | + type: int |
| 34 | + required: true |
| 35 | + description: | |
| 36 | + Division factor for PLLSAI input clock. |
| 37 | + On STM32F446xx, the division M factor is independent from |
| 38 | + other PLLs. |
| 39 | + On all other SoCs, the division factor M is shared between |
| 40 | + PLL, PLLSAI and PLLI2S, hence same value should be used |
| 41 | + for those PLLs when used together. |
| 42 | + Valid range: 2 - 63 |
| 43 | +
|
| 44 | + mul-n: |
| 45 | + type: int |
| 46 | + required: true |
| 47 | + description: | |
| 48 | + Multiplication factor for VCO. |
| 49 | + Valid range: 50 - 432 |
| 50 | +
|
| 51 | + div-p: |
| 52 | + type: int |
| 53 | + description: | |
| 54 | + Division factor for PLLSAI_P. |
| 55 | + Only available on STM32F446/STM32F469/STM32F479 and STM32F7 series. |
| 56 | + enum: |
| 57 | + - 2 |
| 58 | + - 4 |
| 59 | + - 6 |
| 60 | + - 8 |
| 61 | + |
| 62 | + div-q: |
| 63 | + type: int |
| 64 | + description: | |
| 65 | + Division factor for PLLSAI_Q |
| 66 | + Valid range: 2 - 15 |
| 67 | +
|
| 68 | + div-divq: |
| 69 | + type: int |
| 70 | + description: | |
| 71 | + Division factor after PLLSAI_Q for the SAI1 clock. |
| 72 | + Valid range: 1 - 32 |
| 73 | +
|
| 74 | + div-r: |
| 75 | + type: int |
| 76 | + description: | |
| 77 | + Division factor for PLLSAI_R. |
| 78 | + Only available on STM32F42x / STM32F43x / STM32F469 / STM32F479 |
| 79 | + and on STM32F74x and higher. |
| 80 | + Valid range: 2 - 7 |
| 81 | +
|
| 82 | + div-divr: |
| 83 | + type: int |
| 84 | + description: | |
| 85 | + Division factor after PLLSAI_R for the LTDC pixel clock. |
| 86 | + Only available on STM32F42x / STM32F43x / STM32F469 / STM32F479 |
| 87 | + and on STM32F74x and higher. |
| 88 | + enum: |
| 89 | + - 2 |
| 90 | + - 4 |
| 91 | + - 8 |
| 92 | + - 16 |
0 commit comments