stm32mp157a-avenger96.dts 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  2. /*
  3. * Copyright (C) Arrow Electronics 2019 - All Rights Reserved
  4. * Author: Botond Kardos <botond.kardos@arroweurope.com>
  5. *
  6. * Copyright (C) Linaro Ltd 2019 - All Rights Reserved
  7. * Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
  8. */
  9. /dts-v1/;
  10. #include "stm32mp157.dtsi"
  11. #include "stm32mp15-pinctrl.dtsi"
  12. #include "stm32mp15xxac-pinctrl.dtsi"
  13. #include <dt-bindings/clock/stm32mp1-clksrc.h>
  14. #include "stm32mp15-ddr3-2x4Gb-1066-binG.dtsi"
  15. / {
  16. model = "Arrow Electronics STM32MP157A Avenger96 board";
  17. compatible = "arrow,stm32mp157a-avenger96", "st,stm32mp157";
  18. aliases {
  19. mmc0 = &sdmmc1;
  20. serial0 = &uart4;
  21. serial1 = &uart7;
  22. };
  23. chosen {
  24. stdout-path = "serial0:115200n8";
  25. };
  26. memory@c0000000 {
  27. device_type = "memory";
  28. reg = <0xc0000000 0x40000000>;
  29. };
  30. };
  31. &i2c4 {
  32. pinctrl-names = "default";
  33. pinctrl-0 = <&i2c4_pins_a>;
  34. i2c-scl-rising-time-ns = <185>;
  35. i2c-scl-falling-time-ns = <20>;
  36. status = "okay";
  37. pmic: stpmic@33 {
  38. compatible = "st,stpmic1";
  39. reg = <0x33>;
  40. interrupts-extended = <&exti_pwr 55 IRQ_TYPE_EDGE_FALLING>;
  41. interrupt-controller;
  42. #interrupt-cells = <2>;
  43. status = "okay";
  44. st,main-control-register = <0x04>;
  45. st,vin-control-register = <0xc0>;
  46. st,usb-control-register = <0x30>;
  47. regulators {
  48. compatible = "st,stpmic1-regulators";
  49. ldo1-supply = <&v3v3>;
  50. ldo2-supply = <&v3v3>;
  51. ldo3-supply = <&vdd_ddr>;
  52. ldo5-supply = <&v3v3>;
  53. ldo6-supply = <&v3v3>;
  54. pwr_sw1-supply = <&bst_out>;
  55. pwr_sw2-supply = <&bst_out>;
  56. vddcore: buck1 {
  57. regulator-name = "vddcore";
  58. regulator-min-microvolt = <1200000>;
  59. regulator-max-microvolt = <1350000>;
  60. regulator-always-on;
  61. regulator-initial-mode = <0>;
  62. regulator-over-current-protection;
  63. };
  64. vdd_ddr: buck2 {
  65. regulator-name = "vdd_ddr";
  66. regulator-min-microvolt = <1350000>;
  67. regulator-max-microvolt = <1350000>;
  68. regulator-always-on;
  69. regulator-initial-mode = <0>;
  70. regulator-over-current-protection;
  71. };
  72. vdd: buck3 {
  73. regulator-name = "vdd";
  74. regulator-min-microvolt = <3300000>;
  75. regulator-max-microvolt = <3300000>;
  76. regulator-always-on;
  77. st,mask-reset;
  78. regulator-initial-mode = <0>;
  79. regulator-over-current-protection;
  80. };
  81. v3v3: buck4 {
  82. regulator-name = "v3v3";
  83. regulator-min-microvolt = <3300000>;
  84. regulator-max-microvolt = <3300000>;
  85. regulator-always-on;
  86. regulator-over-current-protection;
  87. regulator-initial-mode = <0>;
  88. };
  89. vdda: ldo1 {
  90. regulator-name = "vdda";
  91. regulator-min-microvolt = <2900000>;
  92. regulator-max-microvolt = <2900000>;
  93. };
  94. v2v8: ldo2 {
  95. regulator-name = "v2v8";
  96. regulator-min-microvolt = <2800000>;
  97. regulator-max-microvolt = <2800000>;
  98. };
  99. vtt_ddr: ldo3 {
  100. regulator-name = "vtt_ddr";
  101. regulator-always-on;
  102. regulator-over-current-protection;
  103. st,regulator-sink-source;
  104. };
  105. vdd_usb: ldo4 {
  106. regulator-name = "vdd_usb";
  107. regulator-min-microvolt = <3300000>;
  108. regulator-max-microvolt = <3300000>;
  109. };
  110. vdd_sd: ldo5 {
  111. regulator-name = "vdd_sd";
  112. regulator-min-microvolt = <2900000>;
  113. regulator-max-microvolt = <2900000>;
  114. regulator-boot-on;
  115. };
  116. v1v8: ldo6 {
  117. regulator-name = "v1v8";
  118. regulator-min-microvolt = <1800000>;
  119. regulator-max-microvolt = <1800000>;
  120. };
  121. vref_ddr: vref_ddr {
  122. regulator-name = "vref_ddr";
  123. regulator-always-on;
  124. };
  125. bst_out: boost {
  126. regulator-name = "bst_out";
  127. };
  128. vbus_otg: pwr_sw1 {
  129. regulator-name = "vbus_otg";
  130. };
  131. vbus_sw: pwr_sw2 {
  132. regulator-name = "vbus_sw";
  133. regulator-active-discharge = <1>;
  134. };
  135. };
  136. };
  137. };
  138. &iwdg2 {
  139. timeout-sec = <32>;
  140. status = "okay";
  141. };
  142. &pwr_regulators {
  143. vdd-supply = <&vdd>;
  144. vdd_3v3_usbfs-supply = <&vdd_usb>;
  145. };
  146. &rcc {
  147. st,clksrc = <
  148. CLK_MPU_PLL1P
  149. CLK_AXI_PLL2P
  150. CLK_MCU_PLL3P
  151. CLK_PLL12_HSE
  152. CLK_PLL3_HSE
  153. CLK_PLL4_HSE
  154. CLK_RTC_LSE
  155. CLK_MCO1_DISABLED
  156. CLK_MCO2_DISABLED
  157. >;
  158. st,clkdiv = <
  159. 1 /*MPU*/
  160. 0 /*AXI*/
  161. 0 /*MCU*/
  162. 1 /*APB1*/
  163. 1 /*APB2*/
  164. 1 /*APB3*/
  165. 1 /*APB4*/
  166. 2 /*APB5*/
  167. 23 /*RTC*/
  168. 0 /*MCO1*/
  169. 0 /*MCO2*/
  170. >;
  171. st,pkcs = <
  172. CLK_CKPER_HSE
  173. CLK_FMC_ACLK
  174. CLK_QSPI_ACLK
  175. CLK_ETH_DISABLED
  176. CLK_SDMMC12_PLL4P
  177. CLK_DSI_DSIPLL
  178. CLK_STGEN_HSE
  179. CLK_USBPHY_HSE
  180. CLK_SPI2S1_PLL3Q
  181. CLK_SPI2S23_PLL3Q
  182. CLK_SPI45_HSI
  183. CLK_SPI6_HSI
  184. CLK_I2C46_HSI
  185. CLK_SDMMC3_PLL4P
  186. CLK_USBO_USBPHY
  187. CLK_ADC_CKPER
  188. CLK_CEC_LSE
  189. CLK_I2C12_HSI
  190. CLK_I2C35_HSI
  191. CLK_UART1_HSI
  192. CLK_UART24_HSI
  193. CLK_UART35_HSI
  194. CLK_UART6_HSI
  195. CLK_UART78_HSI
  196. CLK_SPDIF_PLL4P
  197. CLK_FDCAN_PLL4R
  198. CLK_SAI1_PLL3Q
  199. CLK_SAI2_PLL3Q
  200. CLK_SAI3_PLL3Q
  201. CLK_SAI4_PLL3Q
  202. CLK_RNG1_LSI
  203. CLK_RNG2_LSI
  204. CLK_LPTIM1_PCLK1
  205. CLK_LPTIM23_PCLK3
  206. CLK_LPTIM45_LSE
  207. >;
  208. /* VCO = 1300.0 MHz => P = 650 (CPU) */
  209. pll1: st,pll@0 {
  210. compatible = "st,stm32mp1-pll";
  211. reg = <0>;
  212. cfg = <2 80 0 0 0 PQR(1,0,0)>;
  213. frac = <0x800>;
  214. };
  215. /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */
  216. pll2: st,pll@1 {
  217. compatible = "st,stm32mp1-pll";
  218. reg = <1>;
  219. cfg = <2 65 1 0 0 PQR(1,1,1)>;
  220. frac = <0x1400>;
  221. };
  222. /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */
  223. pll3: st,pll@2 {
  224. compatible = "st,stm32mp1-pll";
  225. reg = <2>;
  226. cfg = <1 33 1 16 36 PQR(1,1,1)>;
  227. frac = <0x1a04>;
  228. };
  229. /* VCO = 480.0 MHz => P = 120, Q = 40, R = 96 */
  230. pll4: st,pll@3 {
  231. compatible = "st,stm32mp1-pll";
  232. reg = <3>;
  233. cfg = <1 39 3 11 4 PQR(1,1,1)>;
  234. };
  235. };
  236. &rng1 {
  237. status = "okay";
  238. };
  239. &rtc {
  240. status = "okay";
  241. };
  242. &sdmmc1 {
  243. pinctrl-names = "default";
  244. pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
  245. st,sig-dir;
  246. st,neg-edge;
  247. st,use-ckin;
  248. bus-width = <4>;
  249. vmmc-supply = <&vdd_sd>;
  250. status = "okay";
  251. };
  252. &uart4 {
  253. /* On Low speed expansion header */
  254. label = "LS-UART1";
  255. pinctrl-names = "default";
  256. pinctrl-0 = <&uart4_pins_b>;
  257. status = "okay";
  258. };
  259. &uart7 {
  260. /* On Low speed expansion header */
  261. label = "LS-UART0";
  262. pinctrl-names = "default";
  263. pinctrl-0 = <&uart7_pins_a>;
  264. status = "okay";
  265. };