/dts/arm/st/l4/stm32l4r5.dtsi

https://github.com/methodpark/zephyr · Device Tree · 235 lines · 204 code · 26 blank · 5 comment · 0 complexity · 8772ee41102a3421dd9d8ed01cc81ccd MD5 · raw file

  1. /*
  2. * Copyright (c) 2018 Pushpal Sidhu
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #include <mem.h>
  7. #include <st/l4/stm32l4.dtsi>
  8. / {
  9. sram0: memory@20000000 {
  10. reg = <0x20000000 DT_SIZE_K(640)>;
  11. };
  12. soc {
  13. flash-controller@40022000 {
  14. flash0: flash@8000000 {
  15. erase-block-size = <4096>;
  16. };
  17. };
  18. pinctrl: pin-controller@48000000 {
  19. gpiod: gpio@48000c00 {
  20. compatible = "st,stm32-gpio";
  21. gpio-controller;
  22. #gpio-cells = <2>;
  23. reg = <0x48000c00 0x400>;
  24. clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00000008>;
  25. label = "GPIOD";
  26. };
  27. gpioe: gpio@48001000 {
  28. compatible = "st,stm32-gpio";
  29. gpio-controller;
  30. #gpio-cells = <2>;
  31. reg = <0x48001000 0x400>;
  32. clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00000010>;
  33. label = "GPIOE";
  34. };
  35. gpiof: gpio@48001400 {
  36. compatible = "st,stm32-gpio";
  37. gpio-controller;
  38. #gpio-cells = <2>;
  39. reg = <0x48001400 0x400>;
  40. clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00000020>;
  41. label = "GPIOF";
  42. };
  43. gpiog: gpio@48001800 {
  44. compatible = "st,stm32-gpio";
  45. gpio-controller;
  46. #gpio-cells = <2>;
  47. reg = <0x48001800 0x400>;
  48. clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00000040>;
  49. label = "GPIOG";
  50. };
  51. };
  52. usart3: serial@40004800 {
  53. compatible = "st,stm32-usart", "st,stm32-uart";
  54. reg = <0x40004800 0x400>;
  55. clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00040000>;
  56. interrupts = <39 0>;
  57. status = "disabled";
  58. label = "UART_3";
  59. };
  60. uart4: serial@40004c00 {
  61. compatible = "st,stm32-uart";
  62. reg = <0x40004c00 0x400>;
  63. clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00080000>;
  64. interrupts = <52 0>;
  65. status = "disabled";
  66. label = "UART_4";
  67. };
  68. uart5: serial@40005000 {
  69. compatible = "st,stm32-uart";
  70. reg = <0x40005000 0x400>;
  71. clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00100000>;
  72. interrupts = <53 0>;
  73. status = "disabled";
  74. label = "UART_5";
  75. };
  76. i2c2: i2c@40005800 {
  77. compatible = "st,stm32-i2c-v2";
  78. clock-frequency = <I2C_BITRATE_STANDARD>;
  79. #address-cells = <1>;
  80. #size-cells = <0>;
  81. reg = <0x40005800 0x400>;
  82. clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00400000>;
  83. interrupts = <33 0>, <34 0>;
  84. interrupt-names = "event", "error";
  85. status = "disabled";
  86. label= "I2C_2";
  87. };
  88. i2c4: i2c@40008400 {
  89. compatible = "st,stm32-i2c-v2";
  90. clock-frequency = <I2C_BITRATE_STANDARD>;
  91. #address-cells = <1>;
  92. #size-cells = <0>;
  93. reg = <0x40008400 0x400>;
  94. clocks = <&rcc STM32_CLOCK_BUS_APB1_2 0x00000002>;
  95. interrupts = <83 0>, <84 0>;
  96. interrupt-names = "event", "error";
  97. status = "disabled";
  98. label= "I2C_4";
  99. };
  100. spi2: spi@40003800 {
  101. compatible = "st,stm32-spi-fifo", "st,stm32-spi";
  102. #address-cells = <1>;
  103. #size-cells = <0>;
  104. reg = <0x40003800 0x400>;
  105. clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00004000>;
  106. interrupts = <36 5>;
  107. status = "disabled";
  108. label = "SPI_2";
  109. };
  110. spi3: spi@40003c00 {
  111. compatible = "st,stm32-spi-fifo", "st,stm32-spi";
  112. #address-cells = <1>;
  113. #size-cells = <0>;
  114. reg = <0x40003c00 0x400>;
  115. clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00008000>;
  116. interrupts = <51 5>;
  117. status = "disabled";
  118. label = "SPI_3";
  119. };
  120. timers3: timers@40000400 {
  121. compatible = "st,stm32-timers";
  122. reg = <0x40000400 0x400>;
  123. clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000002>;
  124. status = "disabled";
  125. label = "TIMERS_3";
  126. pwm {
  127. compatible = "st,stm32-pwm";
  128. status = "disabled";
  129. st,prescaler = <0>;
  130. label = "PWM_3";
  131. #pwm-cells = <2>;
  132. };
  133. };
  134. timers4: timers@40000800 {
  135. compatible = "st,stm32-timers";
  136. reg = <0x40000800 0x400>;
  137. clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000004>;
  138. status = "disabled";
  139. label = "TIMERS_4";
  140. pwm {
  141. compatible = "st,stm32-pwm";
  142. status = "disabled";
  143. st,prescaler = <0>;
  144. label = "PWM_4";
  145. #pwm-cells = <2>;
  146. };
  147. };
  148. timers5: timers@40000c00 {
  149. compatible = "st,stm32-timers";
  150. reg = <0x40000c00 0x400>;
  151. clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000008>;
  152. status = "disabled";
  153. label = "TIMERS_5";
  154. pwm {
  155. compatible = "st,stm32-pwm";
  156. status = "disabled";
  157. st,prescaler = <0>;
  158. label = "PWM_5";
  159. #pwm-cells = <2>;
  160. };
  161. };
  162. timers8: timers@40013400 {
  163. compatible = "st,stm32-timers";
  164. reg = <0x40013400 0x400>;
  165. clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00002000>;
  166. status = "disabled";
  167. label = "TIMERS_8";
  168. pwm {
  169. compatible = "st,stm32-pwm";
  170. status = "disabled";
  171. st,prescaler = <10000>;
  172. label = "PWM_8";
  173. #pwm-cells = <2>;
  174. };
  175. };
  176. timers17: timers@40014800 {
  177. compatible = "st,stm32-timers";
  178. reg = <0x40014800 0x400>;
  179. clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00040000>;
  180. status = "disabled";
  181. label = "TIMERS_17";
  182. pwm {
  183. compatible = "st,stm32-pwm";
  184. status = "disabled";
  185. st,prescaler = <10000>;
  186. label = "PWM_17";
  187. #pwm-cells = <2>;
  188. };
  189. };
  190. usbotg_fs: otgfs@50000000 {
  191. compatible = "st,stm32-otgfs";
  192. reg = <0x50000000 0x40000>;
  193. interrupts = <67 0>;
  194. interrupt-names = "otgfs";
  195. num-bidir-endpoints = <6>;
  196. ram-size = <1280>;
  197. maximum-speed = "full-speed";
  198. clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00001000>;
  199. phys = <&otgfs_phy>;
  200. status = "disabled";
  201. label= "OTGFS";
  202. };
  203. };
  204. otgfs_phy: otgfs_phy {
  205. compatible = "usb-nop-xceiv";
  206. #phy-cells = <0>;
  207. label = "OTGFS_PHY";
  208. };
  209. };