stm32mp15xx-dhcom-som.dtsi 6.7 KB

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