~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/clock/st,stm32h7-rcc.txt

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 STMicroelectronics STM32H7 Reset and Clock Controller
  2 =====================================================
  3 
  4 The RCC IP is both a reset and a clock controller.
  5 
  6 Please refer to clock-bindings.txt for common clock controller binding usage.
  7 Please also refer to reset.txt for common reset controller binding usage.
  8 
  9 Required properties:
 10 - compatible: Should be:
 11   "st,stm32h743-rcc"
 12 
 13 - reg: should be register base and length as documented in the
 14   datasheet
 15 
 16 - #reset-cells: 1, see below
 17 
 18 - #clock-cells : from common clock binding; shall be set to 1
 19 
 20 - clocks: External oscillator clock phandle
 21   - high speed external clock signal (HSE)
 22   - low speed external clock signal (LSE)
 23   - external I2S clock (I2S_CKIN)
 24 
 25 Optional properties:
 26 - st,syscfg: phandle for pwrcfg, mandatory to disable/enable backup domain
 27   write protection (RTC clock).
 28 
 29 Example:
 30 
 31         rcc: reset-clock-controller@58024400 {
 32                 compatible = "st,stm32h743-rcc", "st,stm32-rcc";
 33                 reg = <0x58024400 0x400>;
 34                 #reset-cells = <1>;
 35                 #clock-cells = <1>;
 36                 clocks = <&clk_hse>, <&clk_lse>, <&clk_i2s_ckin>;
 37 
 38                 st,syscfg = <&pwrcfg>;
 39 };
 40 
 41 The peripheral clock consumer should specify the desired clock by
 42 having the clock ID in its "clocks" phandle cell.
 43 
 44 Example:
 45 
 46                 timer5: timer@40000c00 {
 47                         compatible = "st,stm32-timer";
 48                         reg = <0x40000c00 0x400>;
 49                         interrupts = <50>;
 50                         clocks = <&rcc TIM5_CK>;
 51                 };
 52 
 53 Specifying softreset control of devices
 54 =======================================
 55 
 56 Device nodes should specify the reset channel required in their "resets"
 57 property, containing a phandle to the reset device node and an index specifying
 58 which channel to use.
 59 The index is the bit number within the RCC registers bank, starting from RCC
 60 base address.
 61 It is calculated as: index = register_offset / 4 * 32 + bit_offset.
 62 Where bit_offset is the bit offset within the register.
 63 
 64 For example, for CRC reset:
 65   crc = AHB4RSTR_offset / 4 * 32 + CRCRST_bit_offset = 0x88 / 4 * 32 + 19 = 1107
 66 
 67 Example:
 68 
 69         timer2 {
 70                 resets  = <&rcc STM32H7_APB1L_RESET(TIM2)>;
 71         };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php