stm32mp157c-ed1.dts 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  2. /*
  3. * Copyright (C) STMicroelectronics 2017 - All Rights Reserved
  4. * Author: Ludovic Barre <ludovic.barre@st.com> 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. };
  78. &adc {
  79. /* ANA0, ANA1 are dedicated pins and don't need pinctrl: only in6. */
  80. pinctrl-0 = <&adc1_in6_pins_a>;
  81. pinctrl-names = "default";
  82. vdd-supply = <&vdd>;
  83. vdda-supply = <&vdda>;
  84. vref-supply = <&vdda>;
  85. status = "disabled";
  86. adc1: adc@0 {
  87. st,adc-channels = <0 1 6>;
  88. /* 16.5 ck_cycles sampling time */
  89. st,min-sample-time-nsecs = <400>;
  90. status = "okay";
  91. };
  92. };
  93. &cpu0{
  94. cpu-supply = <&vddcore>;
  95. };
  96. &cpu1{
  97. cpu-supply = <&vddcore>;
  98. };
  99. &dac {
  100. pinctrl-names = "default";
  101. pinctrl-0 = <&dac_ch1_pins_a &dac_ch2_pins_a>;
  102. vref-supply = <&vdda>;
  103. status = "disabled";
  104. dac1: dac@1 {
  105. status = "okay";
  106. };
  107. dac2: dac@2 {
  108. status = "okay";
  109. };
  110. };
  111. &dts {
  112. status = "okay";
  113. };
  114. &gpu {
  115. contiguous-area = <&gpu_reserved>;
  116. };
  117. &i2c4 {
  118. pinctrl-names = "default", "sleep";
  119. pinctrl-0 = <&i2c4_pins_a>;
  120. pinctrl-1 = <&i2c4_sleep_pins_a>;
  121. i2c-scl-rising-time-ns = <185>;
  122. i2c-scl-falling-time-ns = <20>;
  123. clock-frequency = <400000>;
  124. status = "okay";
  125. /* spare dmas for other usage */
  126. /delete-property/dmas;
  127. /delete-property/dma-names;
  128. pmic: stpmic@33 {
  129. compatible = "st,stpmic1";
  130. reg = <0x33>;
  131. interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
  132. interrupt-controller;
  133. #interrupt-cells = <2>;
  134. status = "okay";
  135. regulators {
  136. compatible = "st,stpmic1-regulators";
  137. ldo1-supply = <&v3v3>;
  138. ldo2-supply = <&v3v3>;
  139. ldo3-supply = <&vdd_ddr>;
  140. ldo5-supply = <&v3v3>;
  141. ldo6-supply = <&v3v3>;
  142. pwr_sw1-supply = <&bst_out>;
  143. pwr_sw2-supply = <&bst_out>;
  144. vddcore: buck1 {
  145. regulator-name = "vddcore";
  146. regulator-min-microvolt = <1200000>;
  147. regulator-max-microvolt = <1350000>;
  148. regulator-always-on;
  149. regulator-initial-mode = <0>;
  150. regulator-over-current-protection;
  151. };
  152. vdd_ddr: buck2 {
  153. regulator-name = "vdd_ddr";
  154. regulator-min-microvolt = <1350000>;
  155. regulator-max-microvolt = <1350000>;
  156. regulator-always-on;
  157. regulator-initial-mode = <0>;
  158. regulator-over-current-protection;
  159. };
  160. vdd: buck3 {
  161. regulator-name = "vdd";
  162. regulator-min-microvolt = <3300000>;
  163. regulator-max-microvolt = <3300000>;
  164. regulator-always-on;
  165. st,mask-reset;
  166. regulator-initial-mode = <0>;
  167. regulator-over-current-protection;
  168. };
  169. v3v3: buck4 {
  170. regulator-name = "v3v3";
  171. regulator-min-microvolt = <3300000>;
  172. regulator-max-microvolt = <3300000>;
  173. regulator-always-on;
  174. regulator-over-current-protection;
  175. regulator-initial-mode = <0>;
  176. };
  177. vdda: ldo1 {
  178. regulator-name = "vdda";
  179. regulator-min-microvolt = <2900000>;
  180. regulator-max-microvolt = <2900000>;
  181. interrupts = <IT_CURLIM_LDO1 0>;
  182. };
  183. v2v8: ldo2 {
  184. regulator-name = "v2v8";
  185. regulator-min-microvolt = <2800000>;
  186. regulator-max-microvolt = <2800000>;
  187. interrupts = <IT_CURLIM_LDO2 0>;
  188. };
  189. vtt_ddr: ldo3 {
  190. regulator-name = "vtt_ddr";
  191. regulator-min-microvolt = <500000>;
  192. regulator-max-microvolt = <750000>;
  193. regulator-always-on;
  194. regulator-over-current-protection;
  195. };
  196. vdd_usb: ldo4 {
  197. regulator-name = "vdd_usb";
  198. interrupts = <IT_CURLIM_LDO4 0>;
  199. };
  200. vdd_sd: ldo5 {
  201. regulator-name = "vdd_sd";
  202. regulator-min-microvolt = <2900000>;
  203. regulator-max-microvolt = <2900000>;
  204. interrupts = <IT_CURLIM_LDO5 0>;
  205. regulator-boot-on;
  206. };
  207. v1v8: ldo6 {
  208. regulator-name = "v1v8";
  209. regulator-min-microvolt = <1800000>;
  210. regulator-max-microvolt = <1800000>;
  211. interrupts = <IT_CURLIM_LDO6 0>;
  212. };
  213. vref_ddr: vref_ddr {
  214. regulator-name = "vref_ddr";
  215. regulator-always-on;
  216. };
  217. bst_out: boost {
  218. regulator-name = "bst_out";
  219. interrupts = <IT_OCP_BOOST 0>;
  220. };
  221. vbus_otg: pwr_sw1 {
  222. regulator-name = "vbus_otg";
  223. interrupts = <IT_OCP_OTG 0>;
  224. };
  225. vbus_sw: pwr_sw2 {
  226. regulator-name = "vbus_sw";
  227. interrupts = <IT_OCP_SWOUT 0>;
  228. regulator-active-discharge = <1>;
  229. };
  230. };
  231. onkey {
  232. compatible = "st,stpmic1-onkey";
  233. interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
  234. interrupt-names = "onkey-falling", "onkey-rising";
  235. power-off-time-sec = <10>;
  236. status = "okay";
  237. };
  238. watchdog {
  239. compatible = "st,stpmic1-wdt";
  240. status = "disabled";
  241. };
  242. };
  243. };
  244. &ipcc {
  245. status = "okay";
  246. };
  247. &iwdg2 {
  248. timeout-sec = <32>;
  249. status = "okay";
  250. };
  251. &m4_rproc {
  252. memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
  253. <&vdev0vring1>, <&vdev0buffer>;
  254. mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
  255. mbox-names = "vq0", "vq1", "shutdown";
  256. interrupt-parent = <&exti>;
  257. interrupts = <68 1>;
  258. status = "okay";
  259. };
  260. &pwr_regulators {
  261. vdd-supply = <&vdd>;
  262. vdd_3v3_usbfs-supply = <&vdd_usb>;
  263. };
  264. &rng1 {
  265. status = "okay";
  266. };
  267. &rtc {
  268. status = "okay";
  269. };
  270. &sdmmc1 {
  271. pinctrl-names = "default", "opendrain", "sleep";
  272. pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
  273. pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
  274. pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
  275. cd-gpios = <&gpiog 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
  276. disable-wp;
  277. st,sig-dir;
  278. st,neg-edge;
  279. st,use-ckin;
  280. bus-width = <4>;
  281. vmmc-supply = <&vdd_sd>;
  282. vqmmc-supply = <&sd_switch>;
  283. sd-uhs-sdr12;
  284. sd-uhs-sdr25;
  285. sd-uhs-sdr50;
  286. sd-uhs-ddr50;
  287. status = "okay";
  288. };
  289. &sdmmc2 {
  290. pinctrl-names = "default", "opendrain", "sleep";
  291. pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
  292. pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a>;
  293. pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>;
  294. non-removable;
  295. no-sd;
  296. no-sdio;
  297. st,neg-edge;
  298. bus-width = <8>;
  299. vmmc-supply = <&v3v3>;
  300. vqmmc-supply = <&vdd>;
  301. mmc-ddr-3_3v;
  302. status = "okay";
  303. };
  304. &timers6 {
  305. status = "okay";
  306. /* spare dmas for other usage */
  307. /delete-property/dmas;
  308. /delete-property/dma-names;
  309. timer@5 {
  310. status = "okay";
  311. };
  312. };
  313. &uart4 {
  314. pinctrl-names = "default", "sleep", "idle";
  315. pinctrl-0 = <&uart4_pins_a>;
  316. pinctrl-1 = <&uart4_sleep_pins_a>;
  317. pinctrl-2 = <&uart4_idle_pins_a>;
  318. status = "okay";
  319. };
  320. &usbotg_hs {
  321. vbus-supply = <&vbus_otg>;
  322. };
  323. &usbphyc_port0 {
  324. phy-supply = <&vdd_usb>;
  325. };
  326. &usbphyc_port1 {
  327. phy-supply = <&vdd_usb>;
  328. };