stm32mp157c-ed1.dts 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  2. /*
  3. * Copyright (C) STMicroelectronics 2017 - All Rights Reserved
  4. * Author: Ludovic Barre <[email protected]> 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/gpio/gpio.h>
  12. #include <dt-bindings/mfd/st,stpmic1.h>
  13. / {
  14. model = "STMicroelectronics STM32MP157C eval daughter";
  15. compatible = "st,stm32mp157c-ed1", "st,stm32mp157";
  16. chosen {
  17. stdout-path = "serial0:115200n8";
  18. };
  19. memory@c0000000 {
  20. device_type = "memory";
  21. reg = <0xC0000000 0x40000000>;
  22. };
  23. reserved-memory {
  24. #address-cells = <1>;
  25. #size-cells = <1>;
  26. ranges;
  27. mcuram2: mcuram2@10000000 {
  28. compatible = "shared-dma-pool";
  29. reg = <0x10000000 0x40000>;
  30. no-map;
  31. };
  32. vdev0vring0: vdev0vring0@10040000 {
  33. compatible = "shared-dma-pool";
  34. reg = <0x10040000 0x1000>;
  35. no-map;
  36. };
  37. vdev0vring1: vdev0vring1@10041000 {
  38. compatible = "shared-dma-pool";
  39. reg = <0x10041000 0x1000>;
  40. no-map;
  41. };
  42. vdev0buffer: vdev0buffer@10042000 {
  43. compatible = "shared-dma-pool";
  44. reg = <0x10042000 0x4000>;
  45. no-map;
  46. };
  47. mcuram: mcuram@30000000 {
  48. compatible = "shared-dma-pool";
  49. reg = <0x30000000 0x40000>;
  50. no-map;
  51. };
  52. retram: retram@38000000 {
  53. compatible = "shared-dma-pool";
  54. reg = <0x38000000 0x10000>;
  55. no-map;
  56. };
  57. gpu_reserved: gpu@e8000000 {
  58. reg = <0xe8000000 0x8000000>;
  59. no-map;
  60. };
  61. };
  62. aliases {
  63. serial0 = &uart4;
  64. };
  65. sd_switch: regulator-sd_switch {
  66. compatible = "regulator-gpio";
  67. regulator-name = "sd_switch";
  68. regulator-min-microvolt = <1800000>;
  69. regulator-max-microvolt = <2900000>;
  70. regulator-type = "voltage";
  71. regulator-always-on;
  72. gpios = <&gpiof 14 GPIO_ACTIVE_HIGH>;
  73. gpios-states = <0>;
  74. states = <1800000 0x1>,
  75. <2900000 0x0>;
  76. };
  77. vin: vin {
  78. compatible = "regulator-fixed";
  79. regulator-name = "vin";
  80. regulator-min-microvolt = <5000000>;
  81. regulator-max-microvolt = <5000000>;
  82. regulator-always-on;
  83. };
  84. };
  85. &adc {
  86. /* ANA0, ANA1 are dedicated pins and don't need pinctrl: only in6. */
  87. pinctrl-0 = <&adc1_in6_pins_a>;
  88. pinctrl-names = "default";
  89. vdd-supply = <&vdd>;
  90. vdda-supply = <&vdda>;
  91. vref-supply = <&vdda>;
  92. status = "disabled";
  93. adc1: adc@0 {
  94. st,adc-channels = <0 1 6>;
  95. /* 16.5 ck_cycles sampling time */
  96. st,min-sample-time-nsecs = <400>;
  97. status = "okay";
  98. };
  99. };
  100. &crc1 {
  101. status = "okay";
  102. };
  103. &cryp1 {
  104. status = "okay";
  105. };
  106. &dac {
  107. pinctrl-names = "default";
  108. pinctrl-0 = <&dac_ch1_pins_a &dac_ch2_pins_a>;
  109. vref-supply = <&vdda>;
  110. status = "disabled";
  111. dac1: dac@1 {
  112. status = "okay";
  113. };
  114. dac2: dac@2 {
  115. status = "okay";
  116. };
  117. };
  118. &dts {
  119. status = "okay";
  120. };
  121. &gpu {
  122. contiguous-area = <&gpu_reserved>;
  123. };
  124. &hash1 {
  125. status = "okay";
  126. };
  127. &i2c4 {
  128. pinctrl-names = "default", "sleep";
  129. pinctrl-0 = <&i2c4_pins_a>;
  130. pinctrl-1 = <&i2c4_sleep_pins_a>;
  131. i2c-scl-rising-time-ns = <185>;
  132. i2c-scl-falling-time-ns = <20>;
  133. clock-frequency = <400000>;
  134. status = "okay";
  135. /* spare dmas for other usage */
  136. /delete-property/dmas;
  137. /delete-property/dma-names;
  138. pmic: stpmic@33 {
  139. compatible = "st,stpmic1";
  140. reg = <0x33>;
  141. interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
  142. interrupt-controller;
  143. #interrupt-cells = <2>;
  144. status = "okay";
  145. regulators {
  146. compatible = "st,stpmic1-regulators";
  147. buck1-supply = <&vin>;
  148. buck2-supply = <&vin>;
  149. buck3-supply = <&vin>;
  150. buck4-supply = <&vin>;
  151. ldo1-supply = <&v3v3>;
  152. ldo2-supply = <&v3v3>;
  153. ldo3-supply = <&vdd_ddr>;
  154. ldo4-supply = <&vin>;
  155. ldo5-supply = <&v3v3>;
  156. ldo6-supply = <&v3v3>;
  157. vref_ddr-supply = <&vin>;
  158. boost-supply = <&vin>;
  159. pwr_sw1-supply = <&bst_out>;
  160. pwr_sw2-supply = <&bst_out>;
  161. vddcore: buck1 {
  162. regulator-name = "vddcore";
  163. regulator-min-microvolt = <1200000>;
  164. regulator-max-microvolt = <1350000>;
  165. regulator-always-on;
  166. regulator-initial-mode = <0>;
  167. regulator-over-current-protection;
  168. };
  169. vdd_ddr: buck2 {
  170. regulator-name = "vdd_ddr";
  171. regulator-min-microvolt = <1350000>;
  172. regulator-max-microvolt = <1350000>;
  173. regulator-always-on;
  174. regulator-initial-mode = <0>;
  175. regulator-over-current-protection;
  176. };
  177. vdd: buck3 {
  178. regulator-name = "vdd";
  179. regulator-min-microvolt = <3300000>;
  180. regulator-max-microvolt = <3300000>;
  181. regulator-always-on;
  182. st,mask-reset;
  183. regulator-initial-mode = <0>;
  184. regulator-over-current-protection;
  185. };
  186. v3v3: buck4 {
  187. regulator-name = "v3v3";
  188. regulator-min-microvolt = <3300000>;
  189. regulator-max-microvolt = <3300000>;
  190. regulator-always-on;
  191. regulator-over-current-protection;
  192. regulator-initial-mode = <0>;
  193. };
  194. vdda: ldo1 {
  195. regulator-name = "vdda";
  196. regulator-min-microvolt = <2900000>;
  197. regulator-max-microvolt = <2900000>;
  198. interrupts = <IT_CURLIM_LDO1 0>;
  199. };
  200. v2v8: ldo2 {
  201. regulator-name = "v2v8";
  202. regulator-min-microvolt = <2800000>;
  203. regulator-max-microvolt = <2800000>;
  204. interrupts = <IT_CURLIM_LDO2 0>;
  205. };
  206. vtt_ddr: ldo3 {
  207. regulator-name = "vtt_ddr";
  208. regulator-min-microvolt = <500000>;
  209. regulator-max-microvolt = <750000>;
  210. regulator-always-on;
  211. regulator-over-current-protection;
  212. };
  213. vdd_usb: ldo4 {
  214. regulator-name = "vdd_usb";
  215. interrupts = <IT_CURLIM_LDO4 0>;
  216. };
  217. vdd_sd: ldo5 {
  218. regulator-name = "vdd_sd";
  219. regulator-min-microvolt = <2900000>;
  220. regulator-max-microvolt = <2900000>;
  221. interrupts = <IT_CURLIM_LDO5 0>;
  222. regulator-boot-on;
  223. };
  224. v1v8: ldo6 {
  225. regulator-name = "v1v8";
  226. regulator-min-microvolt = <1800000>;
  227. regulator-max-microvolt = <1800000>;
  228. interrupts = <IT_CURLIM_LDO6 0>;
  229. };
  230. vref_ddr: vref_ddr {
  231. regulator-name = "vref_ddr";
  232. regulator-always-on;
  233. };
  234. bst_out: boost {
  235. regulator-name = "bst_out";
  236. interrupts = <IT_OCP_BOOST 0>;
  237. };
  238. vbus_otg: pwr_sw1 {
  239. regulator-name = "vbus_otg";
  240. interrupts = <IT_OCP_OTG 0>;
  241. };
  242. vbus_sw: pwr_sw2 {
  243. regulator-name = "vbus_sw";
  244. interrupts = <IT_OCP_SWOUT 0>;
  245. regulator-active-discharge = <1>;
  246. };
  247. };
  248. onkey {
  249. compatible = "st,stpmic1-onkey";
  250. interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
  251. interrupt-names = "onkey-falling", "onkey-rising";
  252. power-off-time-sec = <10>;
  253. status = "okay";
  254. };
  255. watchdog {
  256. compatible = "st,stpmic1-wdt";
  257. status = "disabled";
  258. };
  259. };
  260. };
  261. &ipcc {
  262. status = "okay";
  263. };
  264. &iwdg2 {
  265. timeout-sec = <32>;
  266. status = "okay";
  267. };
  268. &m4_rproc {
  269. memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
  270. <&vdev0vring1>, <&vdev0buffer>;
  271. mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>;
  272. mbox-names = "vq0", "vq1", "shutdown", "detach";
  273. interrupt-parent = <&exti>;
  274. interrupts = <68 1>;
  275. status = "okay";
  276. };
  277. &pwr_regulators {
  278. vdd-supply = <&vdd>;
  279. vdd_3v3_usbfs-supply = <&vdd_usb>;
  280. };
  281. &rng1 {
  282. status = "okay";
  283. };
  284. &rtc {
  285. status = "okay";
  286. };
  287. &sdmmc1 {
  288. pinctrl-names = "default", "opendrain", "sleep";
  289. pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
  290. pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
  291. pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
  292. cd-gpios = <&gpiog 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
  293. disable-wp;
  294. st,sig-dir;
  295. st,neg-edge;
  296. st,use-ckin;
  297. bus-width = <4>;
  298. vmmc-supply = <&vdd_sd>;
  299. vqmmc-supply = <&sd_switch>;
  300. sd-uhs-sdr12;
  301. sd-uhs-sdr25;
  302. sd-uhs-sdr50;
  303. sd-uhs-ddr50;
  304. status = "okay";
  305. };
  306. &sdmmc2 {
  307. pinctrl-names = "default", "opendrain", "sleep";
  308. pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
  309. pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a>;
  310. pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>;
  311. non-removable;
  312. no-sd;
  313. no-sdio;
  314. st,neg-edge;
  315. bus-width = <8>;
  316. vmmc-supply = <&v3v3>;
  317. vqmmc-supply = <&vdd>;
  318. mmc-ddr-3_3v;
  319. status = "okay";
  320. };
  321. &timers6 {
  322. status = "okay";
  323. /* spare dmas for other usage */
  324. /delete-property/dmas;
  325. /delete-property/dma-names;
  326. timer@5 {
  327. status = "okay";
  328. };
  329. };
  330. &uart4 {
  331. pinctrl-names = "default", "sleep", "idle";
  332. pinctrl-0 = <&uart4_pins_a>;
  333. pinctrl-1 = <&uart4_sleep_pins_a>;
  334. pinctrl-2 = <&uart4_idle_pins_a>;
  335. /delete-property/dmas;
  336. /delete-property/dma-names;
  337. status = "okay";
  338. };
  339. &usbotg_hs {
  340. vbus-supply = <&vbus_otg>;
  341. };
  342. &usbphyc_port0 {
  343. phy-supply = <&vdd_usb>;
  344. };
  345. &usbphyc_port1 {
  346. phy-supply = <&vdd_usb>;
  347. };