stm32mp15xx-dhcor-som.dtsi 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
  2. /*
  3. * Copyright (C) Linaro Ltd 2019 - All Rights Reserved
  4. * Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
  5. * Copyright (C) 2020 Marek Vasut <marex@denx.de>
  6. * Copyright (C) 2022 DH electronics GmbH
  7. * Copyright (C) 2023-2024, STMicroelectronics - All Rights Reserved
  8. */
  9. #include "stm32mp15-pinctrl.dtsi"
  10. #include "stm32mp15xxaa-pinctrl.dtsi"
  11. #include <dt-bindings/clock/stm32mp1-clksrc.h>
  12. #include "stm32mp15-ddr3-dhsom-2x4Gb-1066-binG.dtsi"
  13. / {
  14. memory@c0000000 {
  15. device_type = "memory";
  16. reg = <0xc0000000 0x40000000>;
  17. };
  18. };
  19. &cpu0 {
  20. cpu-supply = <&vddcore>;
  21. };
  22. &cpu1 {
  23. cpu-supply = <&vddcore>;
  24. };
  25. &hash1 {
  26. status = "okay";
  27. };
  28. &i2c4 {
  29. pinctrl-names = "default";
  30. pinctrl-0 = <&i2c4_pins_a>;
  31. i2c-scl-rising-time-ns = <185>;
  32. i2c-scl-falling-time-ns = <20>;
  33. status = "okay";
  34. pmic: stpmic@33 {
  35. compatible = "st,stpmic1";
  36. reg = <0x33>;
  37. interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
  38. interrupt-controller;
  39. #interrupt-cells = <2>;
  40. status = "okay";
  41. regulators {
  42. compatible = "st,stpmic1-regulators";
  43. ldo1-supply = <&v3v3>;
  44. ldo2-supply = <&v3v3>;
  45. ldo3-supply = <&vdd_ddr>;
  46. ldo5-supply = <&v3v3>;
  47. ldo6-supply = <&v3v3>;
  48. pwr_sw1-supply = <&bst_out>;
  49. pwr_sw2-supply = <&bst_out>;
  50. vddcore: buck1 {
  51. regulator-name = "vddcore";
  52. regulator-min-microvolt = <1200000>;
  53. regulator-max-microvolt = <1350000>;
  54. regulator-always-on;
  55. regulator-initial-mode = <0>;
  56. regulator-over-current-protection;
  57. };
  58. vdd_ddr: buck2 {
  59. regulator-name = "vdd_ddr";
  60. regulator-min-microvolt = <1350000>;
  61. regulator-max-microvolt = <1350000>;
  62. regulator-always-on;
  63. regulator-initial-mode = <0>;
  64. regulator-over-current-protection;
  65. };
  66. vdd: buck3 {
  67. regulator-name = "vdd";
  68. regulator-min-microvolt = <3300000>;
  69. regulator-max-microvolt = <3300000>;
  70. regulator-always-on;
  71. regulator-initial-mode = <0>;
  72. regulator-over-current-protection;
  73. };
  74. v3v3: buck4 {
  75. regulator-name = "v3v3";
  76. regulator-min-microvolt = <3300000>;
  77. regulator-max-microvolt = <3300000>;
  78. regulator-always-on;
  79. regulator-over-current-protection;
  80. regulator-initial-mode = <0>;
  81. };
  82. vdda: ldo1 {
  83. regulator-name = "vdda";
  84. regulator-min-microvolt = <2900000>;
  85. regulator-max-microvolt = <2900000>;
  86. };
  87. v2v8: ldo2 {
  88. regulator-name = "v2v8";
  89. regulator-min-microvolt = <2800000>;
  90. regulator-max-microvolt = <2800000>;
  91. };
  92. vtt_ddr: ldo3 {
  93. regulator-name = "vtt_ddr";
  94. regulator-always-on;
  95. regulator-over-current-protection;
  96. st,regulator-sink-source;
  97. };
  98. vdd_usb: ldo4 {
  99. regulator-name = "vdd_usb";
  100. regulator-min-microvolt = <3300000>;
  101. regulator-max-microvolt = <3300000>;
  102. };
  103. vdd_sd: ldo5 {
  104. regulator-name = "vdd_sd";
  105. regulator-min-microvolt = <2900000>;
  106. regulator-max-microvolt = <2900000>;
  107. regulator-boot-on;
  108. };
  109. v1v8: ldo6 {
  110. regulator-name = "v1v8";
  111. regulator-min-microvolt = <1800000>;
  112. regulator-max-microvolt = <1800000>;
  113. regulator-enable-ramp-delay = <300000>;
  114. };
  115. vref_ddr: vref_ddr {
  116. regulator-name = "vref_ddr";
  117. regulator-always-on;
  118. };
  119. bst_out: boost {
  120. regulator-name = "bst_out";
  121. };
  122. vbus_otg: pwr_sw1 {
  123. regulator-name = "vbus_otg";
  124. regulator-active-discharge = <1>;
  125. };
  126. vbus_sw: pwr_sw2 {
  127. regulator-name = "vbus_sw";
  128. regulator-active-discharge = <1>;
  129. };
  130. };
  131. };
  132. };
  133. &iwdg2 {
  134. timeout-sec = <32>;
  135. status = "okay";
  136. };
  137. &pwr_regulators {
  138. vdd-supply = <&vdd>;
  139. vdd_3v3_usbfs-supply = <&vdd_usb>;
  140. };
  141. &qspi {
  142. pinctrl-names = "default";
  143. pinctrl-0 = <&qspi_clk_pins_a
  144. &qspi_bk1_pins_a
  145. &qspi_cs1_pins_a>;
  146. reg = <0x58003000 0x1000>, <0x70000000 0x200000>;
  147. #address-cells = <1>;
  148. #size-cells = <0>;
  149. status = "okay";
  150. flash0: flash@0 {
  151. compatible = "jedec,spi-nor";
  152. reg = <0>;
  153. spi-rx-bus-width = <4>;
  154. spi-max-frequency = <50000000>;
  155. #address-cells = <1>;
  156. #size-cells = <1>;
  157. };
  158. };
  159. &rcc {
  160. st,clksrc = <
  161. CLK_MPU_PLL1P
  162. CLK_AXI_PLL2P
  163. CLK_MCU_PLL3P
  164. CLK_RTC_LSE
  165. CLK_MCO1_DISABLED
  166. CLK_MCO2_DISABLED
  167. CLK_CKPER_HSE
  168. CLK_FMC_ACLK
  169. CLK_QSPI_ACLK
  170. CLK_ETH_DISABLED
  171. CLK_SDMMC12_PLL4P
  172. CLK_DSI_DSIPLL
  173. CLK_STGEN_HSE
  174. CLK_USBPHY_HSE
  175. CLK_SPI2S1_PLL3Q
  176. CLK_SPI2S23_PLL3Q
  177. CLK_SPI45_HSI
  178. CLK_SPI6_HSI
  179. CLK_I2C46_HSI
  180. CLK_SDMMC3_PLL4P
  181. CLK_USBO_USBPHY
  182. CLK_ADC_CKPER
  183. CLK_CEC_LSE
  184. CLK_I2C12_HSI
  185. CLK_I2C35_HSI
  186. CLK_UART1_HSI
  187. CLK_UART24_HSI
  188. CLK_UART35_HSI
  189. CLK_UART6_HSI
  190. CLK_UART78_HSI
  191. CLK_SPDIF_PLL4P
  192. CLK_FDCAN_PLL4R
  193. CLK_SAI1_PLL3Q
  194. CLK_SAI2_PLL3Q
  195. CLK_SAI3_PLL3Q
  196. CLK_SAI4_PLL3Q
  197. CLK_RNG1_CSI
  198. CLK_RNG2_LSI
  199. CLK_LPTIM1_PCLK1
  200. CLK_LPTIM23_PCLK3
  201. CLK_LPTIM45_LSE
  202. >;
  203. st,clkdiv = <
  204. DIV(DIV_MPU, 1)
  205. DIV(DIV_AXI, 0)
  206. DIV(DIV_MCU, 0)
  207. DIV(DIV_APB1, 1)
  208. DIV(DIV_APB2, 1)
  209. DIV(DIV_APB3, 1)
  210. DIV(DIV_APB4, 1)
  211. DIV(DIV_APB5, 2)
  212. DIV(DIV_RTC, 23)
  213. DIV(DIV_MCO1, 0)
  214. DIV(DIV_MCO2, 0)
  215. >;
  216. st,pll_vco {
  217. pll2_vco_1066Mhz: pll2-vco-1066Mhz {
  218. src = <CLK_PLL12_HSE>;
  219. divmn = <2 65>;
  220. frac = <0x1400>;
  221. };
  222. pll3_vco_417Mhz: pll3-vco-417Mhz {
  223. src = <CLK_PLL3_HSE>;
  224. divmn = <1 33>;
  225. frac = <0x1a04>;
  226. };
  227. pll4_vco_594Mhz: pll4-vco-594Mhz {
  228. src = <CLK_PLL4_HSE>;
  229. divmn = <3 98>;
  230. };
  231. };
  232. /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */
  233. pll2: st,pll@1 {
  234. compatible = "st,stm32mp1-pll";
  235. reg = <1>;
  236. st,pll = <&pll2_cfg1>;
  237. pll2_cfg1: pll2_cfg1 {
  238. st,pll_vco = <&pll2_vco_1066Mhz>;
  239. st,pll_div_pqr = <1 0 0>;
  240. };
  241. };
  242. /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */
  243. pll3: st,pll@2 {
  244. compatible = "st,stm32mp1-pll";
  245. reg = <2>;
  246. st,pll = <&pll3_cfg1>;
  247. pll3_cfg1: pll3_cfg1 {
  248. st,pll_vco = <&pll3_vco_417Mhz>;
  249. st,pll_div_pqr = <1 16 36>;
  250. };
  251. };
  252. /* VCO = 600.0 MHz => P = 99, Q = 74, R = 99 */ /* @TOCHECK */
  253. /* VCO = 594.0 MHz => P = 99, Q = 74, R = 74 */
  254. pll4: st,pll@3 {
  255. compatible = "st,stm32mp1-pll";
  256. reg = <3>;
  257. st,pll = <&pll4_cfg1>;
  258. pll4_cfg1: pll4_cfg1 {
  259. st,pll_vco = <&pll4_vco_594Mhz>;
  260. st,pll_div_pqr = <5 7 7>;
  261. };
  262. };
  263. };
  264. &rng1 {
  265. status = "okay";
  266. };
  267. &rtc {
  268. status = "okay";
  269. };