1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/bindings/clock/st,stm32mp1-rcc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Reset Clock Controller Binding
10 - Gabriel Fernandez <gabriel.fernandez@st.com>
13 The RCC IP is both a reset and a clock controller.
14 RCC makes also power management (resume/supend and wakeup interrupt).
15 Please also refer to reset.txt for common reset controller binding usage.
17 This binding uses common clock bindings
18 Documentation/devicetree/bindings/clock/clock-bindings.txt
23 All available clocks are defined as preprocessor macros in
24 dt-bindings/clock/stm32mp1-clks.h header and can be used in device
27 Specifying softreset control of devices
28 =======================================
30 Device nodes should specify the reset channel required in their "resets"
31 property, containing a phandle to the reset device node and an index specifying
33 The index is the bit number within the RCC registers bank, starting from RCC
35 It is calculated as: index = register_offset / 4 * 32 + bit_offset.
36 Where bit_offset is the bit offset within the register.
38 For example on STM32MP1, for LTDC reset:
39 ltdc = APB4_RSTSETR_offset / 4 * 32 + LTDC_bit_offset
40 = 0x180 / 4 * 32 + 0 = 3072
42 The list of valid indices for STM32MP1 is available in:
43 include/dt-bindings/reset-controller/stm32mp1-resets.h
45 This file implements defines like:
57 - const: st,stm32mp1-rcc
69 additionalProperties: false
74 compatible = "st,stm32mp1-rcc", "syscon";
75 reg = <0x50000000 0x1000>;