stm32mp15xx-osd32.dtsi 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. /* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause) */
  2. /*
  3. * Copyright (C) 2020-2024 STMicroelectronics - All Rights Reserved
  4. * Copyright (C) 2020 Ahmad Fatoum, Pengutronix
  5. */
  6. #include "stm32mp15-pinctrl.dtsi"
  7. &i2c4 {
  8. pinctrl-names = "default";
  9. pinctrl-0 = <&i2c4_pins_a>;
  10. clock-frequency = <400000>;
  11. i2c-scl-rising-time-ns = <185>;
  12. i2c-scl-falling-time-ns = <20>;
  13. status = "okay";
  14. pmic: stpmic@33 {
  15. compatible = "st,stpmic1";
  16. reg = <0x33>;
  17. interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
  18. interrupt-controller;
  19. #interrupt-cells = <2>;
  20. regulators {
  21. compatible = "st,stpmic1-regulators";
  22. ldo1-supply = <&v3v3>;
  23. ldo6-supply = <&v3v3>;
  24. pwr_sw1-supply = <&bst_out>;
  25. vddcore: buck1 {
  26. regulator-name = "vddcore";
  27. regulator-min-microvolt = <1200000>;
  28. regulator-max-microvolt = <1350000>;
  29. regulator-always-on;
  30. regulator-initial-mode = <0>;
  31. regulator-over-current-protection;
  32. };
  33. vdd_ddr: buck2 {
  34. regulator-name = "vdd_ddr";
  35. regulator-min-microvolt = <1350000>;
  36. regulator-max-microvolt = <1350000>;
  37. regulator-always-on;
  38. regulator-initial-mode = <0>;
  39. regulator-over-current-protection;
  40. };
  41. vdd: buck3 {
  42. regulator-name = "vdd";
  43. regulator-min-microvolt = <3300000>;
  44. regulator-max-microvolt = <3300000>;
  45. regulator-always-on;
  46. st,mask-reset;
  47. regulator-initial-mode = <0>;
  48. regulator-over-current-protection;
  49. };
  50. v3v3: buck4 {
  51. regulator-name = "v3v3";
  52. regulator-min-microvolt = <3300000>;
  53. regulator-max-microvolt = <3300000>;
  54. regulator-always-on;
  55. regulator-over-current-protection;
  56. regulator-initial-mode = <0>;
  57. };
  58. v1v8_audio: ldo1 {
  59. regulator-name = "v1v8_audio";
  60. regulator-min-microvolt = <1800000>;
  61. regulator-max-microvolt = <1800000>;
  62. regulator-always-on;
  63. };
  64. v3v3_hdmi: ldo2 {
  65. regulator-name = "v3v3_hdmi";
  66. regulator-min-microvolt = <3300000>;
  67. regulator-max-microvolt = <3300000>;
  68. regulator-always-on;
  69. };
  70. vtt_ddr: ldo3 {
  71. regulator-name = "vtt_ddr";
  72. regulator-always-on;
  73. regulator-over-current-protection;
  74. st,regulator-sink-source;
  75. };
  76. vdd_usb: ldo4 {
  77. regulator-name = "vdd_usb";
  78. regulator-min-microvolt = <3300000>;
  79. regulator-max-microvolt = <3300000>;
  80. };
  81. vdda: ldo5 {
  82. regulator-name = "vdda";
  83. regulator-min-microvolt = <2900000>;
  84. regulator-max-microvolt = <2900000>;
  85. regulator-boot-on;
  86. };
  87. v1v2_hdmi: ldo6 {
  88. regulator-name = "v1v2_hdmi";
  89. regulator-min-microvolt = <1200000>;
  90. regulator-max-microvolt = <1200000>;
  91. regulator-always-on;
  92. };
  93. vref_ddr: vref_ddr {
  94. regulator-name = "vref_ddr";
  95. regulator-always-on;
  96. };
  97. bst_out: boost {
  98. regulator-name = "bst_out";
  99. };
  100. vbus_otg: pwr_sw1 {
  101. regulator-name = "vbus_otg";
  102. regulator-active-discharge;
  103. };
  104. vbus_sw: pwr_sw2 {
  105. regulator-name = "vbus_sw";
  106. regulator-active-discharge;
  107. };
  108. };
  109. pmic_watchdog: watchdog {
  110. compatible = "st,stpmic1-wdt";
  111. status = "disabled";
  112. };
  113. };
  114. };
  115. &rng1 {
  116. status = "okay";
  117. };
  118. /* ATF Specific */
  119. #include <dt-bindings/clock/stm32mp1-clksrc.h>
  120. / {
  121. aliases {
  122. gpio0 = &gpioa;
  123. gpio1 = &gpiob;
  124. gpio2 = &gpioc;
  125. gpio3 = &gpiod;
  126. gpio4 = &gpioe;
  127. gpio5 = &gpiof;
  128. gpio6 = &gpiog;
  129. gpio7 = &gpioh;
  130. gpio8 = &gpioi;
  131. gpio25 = &gpioz;
  132. i2c3 = &i2c4;
  133. };
  134. };
  135. &bsec {
  136. board_id: board-id@ec {
  137. reg = <0xec 0x4>;
  138. st,non-secure-otp;
  139. };
  140. };
  141. &clk_hse {
  142. st,digbypass;
  143. };
  144. &cpu0 {
  145. cpu-supply = <&vddcore>;
  146. };
  147. &cpu1 {
  148. cpu-supply = <&vddcore>;
  149. };
  150. &hash1 {
  151. status = "okay";
  152. };
  153. /* CLOCK init */
  154. &rcc {
  155. st,clksrc = <
  156. CLK_MPU_PLL1P
  157. CLK_AXI_PLL2P
  158. CLK_MCU_PLL3P
  159. CLK_RTC_LSE
  160. CLK_MCO1_DISABLED
  161. CLK_MCO2_DISABLED
  162. CLK_CKPER_HSE
  163. CLK_FMC_ACLK
  164. CLK_QSPI_ACLK
  165. CLK_ETH_PLL4P
  166. CLK_SDMMC12_PLL4P
  167. CLK_DSI_DSIPLL
  168. CLK_STGEN_HSE
  169. CLK_USBPHY_HSE
  170. CLK_SPI2S1_PLL3Q
  171. CLK_SPI2S23_PLL3Q
  172. CLK_SPI45_HSI
  173. CLK_SPI6_HSI
  174. CLK_I2C46_HSI
  175. CLK_SDMMC3_PLL4P
  176. CLK_USBO_USBPHY
  177. CLK_ADC_CKPER
  178. CLK_CEC_LSE
  179. CLK_I2C12_HSI
  180. CLK_I2C35_HSI
  181. CLK_UART1_HSI
  182. CLK_UART24_HSI
  183. CLK_UART35_HSI
  184. CLK_UART6_HSI
  185. CLK_UART78_HSI
  186. CLK_SPDIF_PLL4P
  187. CLK_FDCAN_PLL4R
  188. CLK_SAI1_PLL3Q
  189. CLK_SAI2_PLL3Q
  190. CLK_SAI3_PLL3Q
  191. CLK_SAI4_PLL3Q
  192. CLK_RNG1_CSI
  193. CLK_RNG2_LSI
  194. CLK_LPTIM1_PCLK1
  195. CLK_LPTIM23_PCLK3
  196. CLK_LPTIM45_LSE
  197. >;
  198. st,clkdiv = <
  199. DIV(DIV_MPU, 1)
  200. DIV(DIV_AXI, 0)
  201. DIV(DIV_MCU, 0)
  202. DIV(DIV_APB1, 1)
  203. DIV(DIV_APB2, 1)
  204. DIV(DIV_APB3, 1)
  205. DIV(DIV_APB4, 1)
  206. DIV(DIV_APB5, 2)
  207. DIV(DIV_RTC, 23)
  208. DIV(DIV_MCO1, 0)
  209. DIV(DIV_MCO2, 0)
  210. >;
  211. st,pll_vco {
  212. pll2_vco_1066Mhz: pll2-vco-1066Mhz {
  213. src = <CLK_PLL12_HSE>;
  214. divmn = <2 65>;
  215. frac = <0x1400>;
  216. };
  217. pll3_vco_417Mhz: pll3-vco-417Mhz {
  218. src = <CLK_PLL3_HSE>;
  219. divmn = <1 33>;
  220. frac = <0x1a04>;
  221. };
  222. pll4_vco_594Mhz: pll4-vco-594Mhz {
  223. src = <CLK_PLL4_HSE>;
  224. divmn = <3 98>;
  225. };
  226. };
  227. /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */
  228. pll2: st,pll@1 {
  229. compatible = "st,stm32mp1-pll";
  230. reg = <1>;
  231. st,pll = <&pll2_cfg1>;
  232. pll2_cfg1: pll2_cfg1 {
  233. st,pll_vco = <&pll2_vco_1066Mhz>;
  234. st,pll_div_pqr = <1 0 0>;
  235. };
  236. };
  237. /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */
  238. pll3: st,pll@2 {
  239. compatible = "st,stm32mp1-pll";
  240. reg = <2>;
  241. st,pll = <&pll3_cfg1>;
  242. pll3_cfg1: pll3_cfg1 {
  243. st,pll_vco = <&pll3_vco_417Mhz>;
  244. st,pll_div_pqr = <1 16 36>;
  245. };
  246. };
  247. /* VCO = 594.0 MHz => P = 99, Q = 74, R = 74 */
  248. pll4: st,pll@3 {
  249. compatible = "st,stm32mp1-pll";
  250. reg = <3>;
  251. st,pll = <&pll4_cfg1>;
  252. pll4_cfg1: pll4_cfg1 {
  253. st,pll_vco = <&pll4_vco_594Mhz>;
  254. st,pll_div_pqr = <5 7 7>;
  255. };
  256. };
  257. };