stm32mp15xx-osd32.dtsi 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. /* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause) */
  2. /*
  3. * Copyright (C) 2020 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_PLL12_HSE
  160. CLK_PLL3_HSE
  161. CLK_PLL4_HSE
  162. CLK_RTC_LSE
  163. CLK_MCO1_DISABLED
  164. CLK_MCO2_DISABLED
  165. >;
  166. st,clkdiv = <
  167. 1 /*MPU*/
  168. 0 /*AXI*/
  169. 0 /*MCU*/
  170. 1 /*APB1*/
  171. 1 /*APB2*/
  172. 1 /*APB3*/
  173. 1 /*APB4*/
  174. 2 /*APB5*/
  175. 23 /*RTC*/
  176. 0 /*MCO1*/
  177. 0 /*MCO2*/
  178. >;
  179. st,pkcs = <
  180. CLK_CKPER_HSE
  181. CLK_FMC_ACLK
  182. CLK_QSPI_ACLK
  183. CLK_ETH_PLL4P
  184. CLK_SDMMC12_PLL4P
  185. CLK_DSI_DSIPLL
  186. CLK_STGEN_HSE
  187. CLK_USBPHY_HSE
  188. CLK_SPI2S1_PLL3Q
  189. CLK_SPI2S23_PLL3Q
  190. CLK_SPI45_HSI
  191. CLK_SPI6_HSI
  192. CLK_I2C46_HSI
  193. CLK_SDMMC3_PLL4P
  194. CLK_USBO_USBPHY
  195. CLK_ADC_CKPER
  196. CLK_CEC_LSE
  197. CLK_I2C12_HSI
  198. CLK_I2C35_HSI
  199. CLK_UART1_HSI
  200. CLK_UART24_HSI
  201. CLK_UART35_HSI
  202. CLK_UART6_HSI
  203. CLK_UART78_HSI
  204. CLK_SPDIF_PLL4P
  205. CLK_FDCAN_PLL4R
  206. CLK_SAI1_PLL3Q
  207. CLK_SAI2_PLL3Q
  208. CLK_SAI3_PLL3Q
  209. CLK_SAI4_PLL3Q
  210. CLK_RNG1_LSI
  211. CLK_RNG2_LSI
  212. CLK_LPTIM1_PCLK1
  213. CLK_LPTIM23_PCLK3
  214. CLK_LPTIM45_LSE
  215. >;
  216. /* VCO = 1300.0 MHz => P = 650 (CPU) */
  217. pll1: st,pll@0 {
  218. compatible = "st,stm32mp1-pll";
  219. reg = <0>;
  220. cfg = < 2 80 0 0 0 PQR(1,0,0) >;
  221. frac = < 0x800 >;
  222. };
  223. /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */
  224. pll2: st,pll@1 {
  225. compatible = "st,stm32mp1-pll";
  226. reg = <1>;
  227. cfg = <2 65 1 0 0 PQR(1,1,1)>;
  228. frac = <0x1400>;
  229. };
  230. /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */
  231. pll3: st,pll@2 {
  232. compatible = "st,stm32mp1-pll";
  233. reg = <2>;
  234. cfg = <1 33 1 16 36 PQR(1,1,1)>;
  235. frac = <0x1a04>;
  236. };
  237. /* VCO = 594.0 MHz => P = 99, Q = 74, R = 74 */
  238. pll4: st,pll@3 {
  239. compatible = "st,stm32mp1-pll";
  240. reg = <3>;
  241. cfg = <3 98 5 7 7 PQR(1,1,1)>;
  242. };
  243. };