Skip to content

Commit 4978e20

Browse files
erwangocarlescufi
authored andcommitted
dts/bindings: clocks: Add stm32wl-rcc and fix stm32wb-pll-clock
Add binding fro stm32wl-rcc.yaml that derivates from stm32wb-rcc. Additionally update stm32wb-pll-clock.yaml to be used as well for stm32wl series and add missing div-m property. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
1 parent 255c64b commit 4978e20

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

dts/bindings/clock/st,stm32wb-pll-clock.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
description: |
5-
STM32WB PLL node.
5+
STM32WB and STM32WL PLL node.
66
77
It can be used to describe 2 different PLLs: PLL, PLLSAI1.
88
Only main PLL is supported for now.
@@ -20,7 +20,9 @@ description: |
2020
2121
with f(VCO clock) = f(PLL clock input) × (PLLN / PLLM)
2222
23-
The PLL output frequency must not exceed 64 MHz.
23+
The PLL output frequency must not exceed:
24+
- 64 MHz on STM32WB
25+
- 62 MHz on STM32WL
2426
2527
compatible: "st,stm32wb-pll-clock"
2628

@@ -33,6 +35,13 @@ properties:
3335
clocks:
3436
required: true
3537

38+
div-m:
39+
type: int
40+
required: true
41+
description: |
42+
Main PLL division factor for PLL input clock
43+
Valid range: 1 - 8
44+
3645
mul-n:
3746
type: int
3847
required: true
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Copyright (c) 2021, Linaro ltd
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: |
5+
STM32WL Reset and Clock controller node.
6+
For more description confere st,stm32-rcc.yaml
7+
8+
compatible: "st,stm32wl-rcc"
9+
10+
include:
11+
- name: st,stm32wb-rcc.yaml
12+
property-blocklist:
13+
- ahb4-prescaler
14+
15+
properties:
16+
ahb3-prescaler:
17+
type: int
18+
required: false
19+
enum:
20+
- 1
21+
- 2
22+
- 4
23+
- 8
24+
- 16
25+
- 32
26+
- 64
27+
- 128
28+
- 256
29+
- 512
30+
description: |
31+
HCLK3 shared prescaler (AHB3, Flash memory, SRAM1 and SRAM2).
32+
(A.K.A SHDHPRE)
33+
34+
clock-cells:
35+
- bus
36+
- bits

0 commit comments

Comments
 (0)