STMicroelectronics STM32 Reset Clock Controller

Schema identifier ($id): "http://devicetree.org/schemas/clock/st,stm32-rcc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Dario Binacchi <dario.binacchi@amarulasolutions.com>"

The RCC IP is both a reset and a clock controller. The reset phandle argument is the bit number within the RCC registers bank, starting from RCC base address.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "st,stm32f42xx-rcc", "st,stm32f746-rcc", "st,stm32h743-rcc"

Item 2

Exact value (const): "st,stm32-rcc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "st,stm32f469-rcc"

Item 2

Exact value (const): "st,stm32f42xx-rcc"

Item 3

Exact value (const): "st,stm32-rcc"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "st,stm32f769-rcc"

Item 2

Exact value (const): "st,stm32f746-rcc"

Item 3

Exact value (const): "st,stm32-rcc"

reg — required here #

Maximum number of items (maxItems): 1

#reset-cells — required here #

Exact value (const): 1

#clock-cells — required here #

Allowed values (enum): 1, 2

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

st,syscfg — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to system configuration controller. It can be used to control the power domain circuitry.

st,ssc-modfreq-hz — not listed as required here #

The modulation frequency for main PLL (in Hz)

st,ssc-moddepth-permyriad — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The modulation rate for main PLL (in permyriad, i.e. 0.01%)

Minimum value (minimum): 25

Maximum value (maximum): 200

st,ssc-modmethod — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

The modulation techniques for main PLL.

Array item rules (items) #

Allowed values (enum): "center-spread", "down-spread"

Required in this object (required): "compatible", "reg", "#reset-cells", "#clock-cells", "clocks", "st,syscfg"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "st,stm32h743-rcc"

When the condition matches (then) #

Properties and child nodes (properties)

#clock-cells — not listed as required here

Exact value (const): 1

The clock index for the specified type.

clocks — not listed as required here

Array item rules (items)

Item 1

high speed external (HSE) clock input

Item 2

low speed external (LSE) clock input

Item 3

Inter-IC sound (I2S) clock input

st,ssc-modfreq-hz — not listed as required here

false — Not permitted by this property rule.

st,ssc-moddepth-permyriad — not listed as required here

false — Not permitted by this property rule.

st,ssc-modmethod — not listed as required here

false — Not permitted by this property rule.

When the condition does not match (else) #

Properties and child nodes (properties)

#clock-cells — not listed as required here

Exact value (const): 2

- The first cell is the clock type, possible values are 0 for
  gated clocks and 1 otherwise.
- The second cell is the clock index for the specified type.

clocks — not listed as required here

Array item rules (items)

Item 1

high speed external (HSE) clock input

Item 2

Inter-IC sound (I2S) clock input

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

clock-controller@40023800 {
    compatible = "st,stm32f42xx-rcc", "st,stm32-rcc";
    reg = <0x40023800 0x400>;
    #clock-cells = <2>;
    #reset-cells = <1>;
    clocks = <&clk_hse>, <&clk_i2s_ckin>;
    st,syscfg = <&pwrcfg>;
    st,ssc-modfreq-hz = <10000>;
    st,ssc-moddepth-permyriad = <200>;
    st,ssc-modmethod = "center-spread";
};
clock-controller@58024400 {
    compatible = "st,stm32h743-rcc", "st,stm32-rcc";
    reg = <0x58024400 0x400>;
    #clock-cells = <1>;
    #reset-cells = <1>;
    clocks = <&clk_hse>, <&clk_lse>, <&clk_i2s>;
    st,syscfg = <&pwrcfg>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 121: Reset and Clock Control Module node:

Edit this page