stm32mp157c-ed1.dts 6.4 KB

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