stm32h7-rcc.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /*
  2. * This header provides constants for the STM32H7 RCC IP
  3. */
  4. #ifndef _DT_BINDINGS_MFD_STM32H7_RCC_H
  5. #define _DT_BINDINGS_MFD_STM32H7_RCC_H
  6. /* AHB3 */
  7. #define STM32H7_RCC_AHB3_MDMA 0
  8. #define STM32H7_RCC_AHB3_DMA2D 4
  9. #define STM32H7_RCC_AHB3_JPGDEC 5
  10. #define STM32H7_RCC_AHB3_FMC 12
  11. #define STM32H7_RCC_AHB3_QUADSPI 14
  12. #define STM32H7_RCC_AHB3_SDMMC1 16
  13. #define STM32H7_RCC_AHB3_CPU 31
  14. #define STM32H7_AHB3_RESET(bit) (STM32H7_RCC_AHB3_##bit + (0x7C * 8))
  15. /* AHB1 */
  16. #define STM32H7_RCC_AHB1_DMA1 0
  17. #define STM32H7_RCC_AHB1_DMA2 1
  18. #define STM32H7_RCC_AHB1_ADC12 5
  19. #define STM32H7_RCC_AHB1_ART 14
  20. #define STM32H7_RCC_AHB1_ETH1MAC 15
  21. #define STM32H7_RCC_AHB1_USB1OTG 25
  22. #define STM32H7_RCC_AHB1_USB2OTG 27
  23. #define STM32H7_AHB1_RESET(bit) (STM32H7_RCC_AHB1_##bit + (0x80 * 8))
  24. /* AHB2 */
  25. #define STM32H7_RCC_AHB2_CAMITF 0
  26. #define STM32H7_RCC_AHB2_CRYPT 4
  27. #define STM32H7_RCC_AHB2_HASH 5
  28. #define STM32H7_RCC_AHB2_RNG 6
  29. #define STM32H7_RCC_AHB2_SDMMC2 9
  30. #define STM32H7_AHB2_RESET(bit) (STM32H7_RCC_AHB2_##bit + (0x84 * 8))
  31. /* AHB4 */
  32. #define STM32H7_RCC_AHB4_GPIOA 0
  33. #define STM32H7_RCC_AHB4_GPIOB 1
  34. #define STM32H7_RCC_AHB4_GPIOC 2
  35. #define STM32H7_RCC_AHB4_GPIOD 3
  36. #define STM32H7_RCC_AHB4_GPIOE 4
  37. #define STM32H7_RCC_AHB4_GPIOF 5
  38. #define STM32H7_RCC_AHB4_GPIOG 6
  39. #define STM32H7_RCC_AHB4_GPIOH 7
  40. #define STM32H7_RCC_AHB4_GPIOI 8
  41. #define STM32H7_RCC_AHB4_GPIOJ 9
  42. #define STM32H7_RCC_AHB4_GPIOK 10
  43. #define STM32H7_RCC_AHB4_CRC 19
  44. #define STM32H7_RCC_AHB4_BDMA 21
  45. #define STM32H7_RCC_AHB4_ADC3 24
  46. #define STM32H7_RCC_AHB4_HSEM 25
  47. #define STM32H7_AHB4_RESET(bit) (STM32H7_RCC_AHB4_##bit + (0x88 * 8))
  48. /* APB3 */
  49. #define STM32H7_RCC_APB3_LTDC 3
  50. #define STM32H7_RCC_APB3_DSI 4
  51. #define STM32H7_APB3_RESET(bit) (STM32H7_RCC_APB3_##bit + (0x8C * 8))
  52. /* APB1L */
  53. #define STM32H7_RCC_APB1L_TIM2 0
  54. #define STM32H7_RCC_APB1L_TIM3 1
  55. #define STM32H7_RCC_APB1L_TIM4 2
  56. #define STM32H7_RCC_APB1L_TIM5 3
  57. #define STM32H7_RCC_APB1L_TIM6 4
  58. #define STM32H7_RCC_APB1L_TIM7 5
  59. #define STM32H7_RCC_APB1L_TIM12 6
  60. #define STM32H7_RCC_APB1L_TIM13 7
  61. #define STM32H7_RCC_APB1L_TIM14 8
  62. #define STM32H7_RCC_APB1L_LPTIM1 9
  63. #define STM32H7_RCC_APB1L_SPI2 14
  64. #define STM32H7_RCC_APB1L_SPI3 15
  65. #define STM32H7_RCC_APB1L_SPDIF_RX 16
  66. #define STM32H7_RCC_APB1L_USART2 17
  67. #define STM32H7_RCC_APB1L_USART3 18
  68. #define STM32H7_RCC_APB1L_UART4 19
  69. #define STM32H7_RCC_APB1L_UART5 20
  70. #define STM32H7_RCC_APB1L_I2C1 21
  71. #define STM32H7_RCC_APB1L_I2C2 22
  72. #define STM32H7_RCC_APB1L_I2C3 23
  73. #define STM32H7_RCC_APB1L_HDMICEC 27
  74. #define STM32H7_RCC_APB1L_DAC12 29
  75. #define STM32H7_RCC_APB1L_USART7 30
  76. #define STM32H7_RCC_APB1L_USART8 31
  77. #define STM32H7_APB1L_RESET(bit) (STM32H7_RCC_APB1L_##bit + (0x90 * 8))
  78. /* APB1H */
  79. #define STM32H7_RCC_APB1H_CRS 1
  80. #define STM32H7_RCC_APB1H_SWP 2
  81. #define STM32H7_RCC_APB1H_OPAMP 4
  82. #define STM32H7_RCC_APB1H_MDIOS 5
  83. #define STM32H7_RCC_APB1H_FDCAN 8
  84. #define STM32H7_APB1H_RESET(bit) (STM32H7_RCC_APB1H_##bit + (0x94 * 8))
  85. /* APB2 */
  86. #define STM32H7_RCC_APB2_TIM1 0
  87. #define STM32H7_RCC_APB2_TIM8 1
  88. #define STM32H7_RCC_APB2_USART1 4
  89. #define STM32H7_RCC_APB2_USART6 5
  90. #define STM32H7_RCC_APB2_SPI1 12
  91. #define STM32H7_RCC_APB2_SPI4 13
  92. #define STM32H7_RCC_APB2_TIM15 16
  93. #define STM32H7_RCC_APB2_TIM16 17
  94. #define STM32H7_RCC_APB2_TIM17 18
  95. #define STM32H7_RCC_APB2_SPI5 20
  96. #define STM32H7_RCC_APB2_SAI1 22
  97. #define STM32H7_RCC_APB2_SAI2 23
  98. #define STM32H7_RCC_APB2_SAI3 24
  99. #define STM32H7_RCC_APB2_DFSDM1 28
  100. #define STM32H7_RCC_APB2_HRTIM 29
  101. #define STM32H7_APB2_RESET(bit) (STM32H7_RCC_APB2_##bit + (0x98 * 8))
  102. /* APB4 */
  103. #define STM32H7_RCC_APB4_SYSCFG 1
  104. #define STM32H7_RCC_APB4_LPUART1 3
  105. #define STM32H7_RCC_APB4_SPI6 5
  106. #define STM32H7_RCC_APB4_I2C4 7
  107. #define STM32H7_RCC_APB4_LPTIM2 9
  108. #define STM32H7_RCC_APB4_LPTIM3 10
  109. #define STM32H7_RCC_APB4_LPTIM4 11
  110. #define STM32H7_RCC_APB4_LPTIM5 12
  111. #define STM32H7_RCC_APB4_COMP12 14
  112. #define STM32H7_RCC_APB4_VREF 15
  113. #define STM32H7_RCC_APB4_SAI4 21
  114. #define STM32H7_RCC_APB4_TMPSENS 26
  115. #define STM32H7_APB4_RESET(bit) (STM32H7_RCC_APB4_##bit + (0x9C * 8))
  116. #endif /* _DT_BINDINGS_MFD_STM32H7_RCC_H */