stm32mp15xx-dhcor-som.dtsi 5.5 KB

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