Skip to content

Commit 223d32e

Browse files
passgatbebarino
authored andcommitted
dt-bindings: clock: st,stm32-rcc: support spread spectrum clocking
The addition of DT bindings for enabling and tuning spread spectrum clocking generation is available only for the main PLL of stm32f{4,7} platforms. Signed-off-by: Dario Binacchi <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent ebca397 commit 223d32e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

Documentation/devicetree/bindings/clock/st,stm32-rcc.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,26 @@ properties:
5353
Phandle to system configuration controller. It can be used to control the
5454
power domain circuitry.
5555

56+
st,ssc-modfreq-hz:
57+
description:
58+
The modulation frequency for main PLL (in Hz)
59+
60+
st,ssc-moddepth-permyriad:
61+
$ref: /schemas/types.yaml#/definitions/uint32
62+
description:
63+
The modulation rate for main PLL (in permyriad, i.e. 0.01%)
64+
minimum: 25
65+
maximum: 200
66+
67+
st,ssc-modmethod:
68+
$ref: /schemas/types.yaml#/definitions/string
69+
description:
70+
The modulation techniques for main PLL.
71+
items:
72+
enum:
73+
- center-spread
74+
- down-spread
75+
5676
required:
5777
- compatible
5878
- reg
@@ -78,6 +98,10 @@ allOf:
7898
- description: high speed external (HSE) clock input
7999
- description: low speed external (LSE) clock input
80100
- description: Inter-IC sound (I2S) clock input
101+
st,ssc-modfreq-hz: false
102+
st,ssc-moddepth-permyriad: false
103+
st,ssc-modmethod: false
104+
81105
else:
82106
properties:
83107
'#clock-cells':
@@ -95,6 +119,18 @@ additionalProperties: false
95119

96120
examples:
97121
# Reset and Clock Control Module node:
122+
- |
123+
clock-controller@40023800 {
124+
compatible = "st,stm32f42xx-rcc", "st,stm32-rcc";
125+
reg = <0x40023800 0x400>;
126+
#clock-cells = <2>;
127+
#reset-cells = <1>;
128+
clocks = <&clk_hse>, <&clk_i2s_ckin>;
129+
st,syscfg = <&pwrcfg>;
130+
st,ssc-modfreq-hz = <10000>;
131+
st,ssc-moddepth-permyriad = <200>;
132+
st,ssc-modmethod = "center-spread";
133+
};
98134
- |
99135
clock-controller@58024400 {
100136
compatible = "st,stm32h743-rcc", "st,stm32-rcc";

0 commit comments

Comments
 (0)