stm32mp15xx-dkx.dtsi 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  2. /*
  3. * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
  4. * Author: Alexandre Torgue <alexandre.torgue@st.com> for STMicroelectronics.
  5. */
  6. #include <dt-bindings/gpio/gpio.h>
  7. #include <dt-bindings/mfd/st,stpmic1.h>
  8. / {
  9. memory@c0000000 {
  10. device_type = "memory";
  11. reg = <0xc0000000 0x20000000>;
  12. };
  13. reserved-memory {
  14. #address-cells = <1>;
  15. #size-cells = <1>;
  16. ranges;
  17. mcuram2: mcuram2@10000000 {
  18. compatible = "shared-dma-pool";
  19. reg = <0x10000000 0x40000>;
  20. no-map;
  21. };
  22. vdev0vring0: vdev0vring0@10040000 {
  23. compatible = "shared-dma-pool";
  24. reg = <0x10040000 0x1000>;
  25. no-map;
  26. };
  27. vdev0vring1: vdev0vring1@10041000 {
  28. compatible = "shared-dma-pool";
  29. reg = <0x10041000 0x1000>;
  30. no-map;
  31. };
  32. vdev0buffer: vdev0buffer@10042000 {
  33. compatible = "shared-dma-pool";
  34. reg = <0x10042000 0x4000>;
  35. no-map;
  36. };
  37. mcuram: mcuram@30000000 {
  38. compatible = "shared-dma-pool";
  39. reg = <0x30000000 0x40000>;
  40. no-map;
  41. };
  42. retram: retram@38000000 {
  43. compatible = "shared-dma-pool";
  44. reg = <0x38000000 0x10000>;
  45. no-map;
  46. };
  47. gpu_reserved: gpu@d4000000 {
  48. reg = <0xd4000000 0x4000000>;
  49. no-map;
  50. };
  51. };
  52. led {
  53. compatible = "gpio-leds";
  54. led-blue {
  55. label = "heartbeat";
  56. gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
  57. linux,default-trigger = "heartbeat";
  58. default-state = "off";
  59. };
  60. };
  61. sound {
  62. compatible = "audio-graph-card";
  63. label = "STM32MP1-DK";
  64. routing =
  65. "Playback" , "MCLK",
  66. "Capture" , "MCLK",
  67. "MICL" , "Mic Bias";
  68. dais = <&sai2a_port &sai2b_port &i2s2_port>;
  69. status = "okay";
  70. };
  71. };
  72. &adc {
  73. pinctrl-names = "default";
  74. pinctrl-0 = <&adc12_ain_pins_a>, <&adc12_usb_cc_pins_a>;
  75. vdd-supply = <&vdd>;
  76. vdda-supply = <&vdd>;
  77. vref-supply = <&vrefbuf>;
  78. status = "disabled";
  79. adc1: adc@0 {
  80. /*
  81. * Type-C USB_PWR_CC1 & USB_PWR_CC2 on in18 & in19.
  82. * Use at least 5 * RC time, e.g. 5 * (Rp + Rd) * C:
  83. * 5 * (56 + 47kOhms) * 5pF => 2.5us.
  84. * Use arbitrary margin here (e.g. 5us).
  85. */
  86. st,min-sample-time-nsecs = <5000>;
  87. /* AIN connector, USB Type-C CC1 & CC2 */
  88. st,adc-channels = <0 1 6 13 18 19>;
  89. status = "okay";
  90. };
  91. adc2: adc@100 {
  92. /* AIN connector, USB Type-C CC1 & CC2 */
  93. st,adc-channels = <0 1 2 6 18 19>;
  94. st,min-sample-time-nsecs = <5000>;
  95. status = "okay";
  96. };
  97. };
  98. &cec {
  99. pinctrl-names = "default", "sleep";
  100. pinctrl-0 = <&cec_pins_b>;
  101. pinctrl-1 = <&cec_sleep_pins_b>;
  102. status = "okay";
  103. };
  104. &dts {
  105. status = "okay";
  106. };
  107. &cpu0{
  108. cpu-supply = <&vddcore>;
  109. };
  110. &cpu1{
  111. cpu-supply = <&vddcore>;
  112. };
  113. &ethernet0 {
  114. status = "okay";
  115. pinctrl-0 = <&ethernet0_rgmii_pins_a>;
  116. pinctrl-1 = <&ethernet0_rgmii_sleep_pins_a>;
  117. pinctrl-names = "default", "sleep";
  118. phy-mode = "rgmii-id";
  119. max-speed = <1000>;
  120. phy-handle = <&phy0>;
  121. mdio0 {
  122. #address-cells = <1>;
  123. #size-cells = <0>;
  124. compatible = "snps,dwmac-mdio";
  125. phy0: ethernet-phy@0 {
  126. reg = <0>;
  127. };
  128. };
  129. };
  130. &gpu {
  131. contiguous-area = <&gpu_reserved>;
  132. };
  133. &i2c1 {
  134. pinctrl-names = "default", "sleep";
  135. pinctrl-0 = <&i2c1_pins_a>;
  136. pinctrl-1 = <&i2c1_sleep_pins_a>;
  137. i2c-scl-rising-time-ns = <100>;
  138. i2c-scl-falling-time-ns = <7>;
  139. status = "okay";
  140. /delete-property/dmas;
  141. /delete-property/dma-names;
  142. hdmi-transmitter@39 {
  143. compatible = "sil,sii9022";
  144. reg = <0x39>;
  145. iovcc-supply = <&v3v3_hdmi>;
  146. cvcc12-supply = <&v1v2_hdmi>;
  147. reset-gpios = <&gpioa 10 GPIO_ACTIVE_LOW>;
  148. interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
  149. interrupt-parent = <&gpiog>;
  150. #sound-dai-cells = <0>;
  151. status = "okay";
  152. ports {
  153. #address-cells = <1>;
  154. #size-cells = <0>;
  155. port@0 {
  156. reg = <0>;
  157. sii9022_in: endpoint {
  158. remote-endpoint = <&ltdc_ep0_out>;
  159. };
  160. };
  161. port@3 {
  162. reg = <3>;
  163. sii9022_tx_endpoint: endpoint {
  164. remote-endpoint = <&i2s2_endpoint>;
  165. };
  166. };
  167. };
  168. };
  169. cs42l51: cs42l51@4a {
  170. compatible = "cirrus,cs42l51";
  171. reg = <0x4a>;
  172. #sound-dai-cells = <0>;
  173. VL-supply = <&v3v3>;
  174. VD-supply = <&v1v8_audio>;
  175. VA-supply = <&v1v8_audio>;
  176. VAHP-supply = <&v1v8_audio>;
  177. reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>;
  178. clocks = <&sai2a>;
  179. clock-names = "MCLK";
  180. status = "okay";
  181. cs42l51_port: port {
  182. #address-cells = <1>;
  183. #size-cells = <0>;
  184. cs42l51_tx_endpoint: endpoint@0 {
  185. reg = <0>;
  186. remote-endpoint = <&sai2a_endpoint>;
  187. frame-master;
  188. bitclock-master;
  189. };
  190. cs42l51_rx_endpoint: endpoint@1 {
  191. reg = <1>;
  192. remote-endpoint = <&sai2b_endpoint>;
  193. frame-master;
  194. bitclock-master;
  195. };
  196. };
  197. };
  198. };
  199. &i2c4 {
  200. pinctrl-names = "default", "sleep";
  201. pinctrl-0 = <&i2c4_pins_a>;
  202. pinctrl-1 = <&i2c4_sleep_pins_a>;
  203. i2c-scl-rising-time-ns = <185>;
  204. i2c-scl-falling-time-ns = <20>;
  205. clock-frequency = <400000>;
  206. status = "okay";
  207. /* spare dmas for other usage */
  208. /delete-property/dmas;
  209. /delete-property/dma-names;
  210. typec: stusb1600@28 {
  211. compatible = "st,stusb1600";
  212. reg = <0x28>;
  213. interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
  214. interrupt-parent = <&gpioi>;
  215. pinctrl-names = "default";
  216. pinctrl-0 = <&stusb1600_pins_a>;
  217. status = "okay";
  218. typec_con: connector {
  219. compatible = "usb-c-connector";
  220. label = "USB-C";
  221. power-role = "sink";
  222. power-opmode = "default";
  223. };
  224. };
  225. pmic: stpmic@33 {
  226. compatible = "st,stpmic1";
  227. reg = <0x33>;
  228. interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
  229. interrupt-controller;
  230. #interrupt-cells = <2>;
  231. status = "okay";
  232. regulators {
  233. compatible = "st,stpmic1-regulators";
  234. ldo1-supply = <&v3v3>;
  235. ldo3-supply = <&vdd_ddr>;
  236. ldo6-supply = <&v3v3>;
  237. pwr_sw1-supply = <&bst_out>;
  238. pwr_sw2-supply = <&bst_out>;
  239. vddcore: buck1 {
  240. regulator-name = "vddcore";
  241. regulator-min-microvolt = <1200000>;
  242. regulator-max-microvolt = <1350000>;
  243. regulator-always-on;
  244. regulator-initial-mode = <0>;
  245. regulator-over-current-protection;
  246. };
  247. vdd_ddr: buck2 {
  248. regulator-name = "vdd_ddr";
  249. regulator-min-microvolt = <1350000>;
  250. regulator-max-microvolt = <1350000>;
  251. regulator-always-on;
  252. regulator-initial-mode = <0>;
  253. regulator-over-current-protection;
  254. };
  255. vdd: buck3 {
  256. regulator-name = "vdd";
  257. regulator-min-microvolt = <3300000>;
  258. regulator-max-microvolt = <3300000>;
  259. regulator-always-on;
  260. st,mask-reset;
  261. regulator-initial-mode = <0>;
  262. regulator-over-current-protection;
  263. };
  264. v3v3: buck4 {
  265. regulator-name = "v3v3";
  266. regulator-min-microvolt = <3300000>;
  267. regulator-max-microvolt = <3300000>;
  268. regulator-always-on;
  269. regulator-over-current-protection;
  270. regulator-initial-mode = <0>;
  271. };
  272. v1v8_audio: ldo1 {
  273. regulator-name = "v1v8_audio";
  274. regulator-min-microvolt = <1800000>;
  275. regulator-max-microvolt = <1800000>;
  276. regulator-always-on;
  277. interrupts = <IT_CURLIM_LDO1 0>;
  278. };
  279. v3v3_hdmi: ldo2 {
  280. regulator-name = "v3v3_hdmi";
  281. regulator-min-microvolt = <3300000>;
  282. regulator-max-microvolt = <3300000>;
  283. regulator-always-on;
  284. interrupts = <IT_CURLIM_LDO2 0>;
  285. };
  286. vtt_ddr: ldo3 {
  287. regulator-name = "vtt_ddr";
  288. regulator-min-microvolt = <500000>;
  289. regulator-max-microvolt = <750000>;
  290. regulator-always-on;
  291. regulator-over-current-protection;
  292. };
  293. vdd_usb: ldo4 {
  294. regulator-name = "vdd_usb";
  295. interrupts = <IT_CURLIM_LDO4 0>;
  296. };
  297. vdda: ldo5 {
  298. regulator-name = "vdda";
  299. regulator-min-microvolt = <2900000>;
  300. regulator-max-microvolt = <2900000>;
  301. interrupts = <IT_CURLIM_LDO5 0>;
  302. regulator-boot-on;
  303. };
  304. v1v2_hdmi: ldo6 {
  305. regulator-name = "v1v2_hdmi";
  306. regulator-min-microvolt = <1200000>;
  307. regulator-max-microvolt = <1200000>;
  308. regulator-always-on;
  309. interrupts = <IT_CURLIM_LDO6 0>;
  310. };
  311. vref_ddr: vref_ddr {
  312. regulator-name = "vref_ddr";
  313. regulator-always-on;
  314. };
  315. bst_out: boost {
  316. regulator-name = "bst_out";
  317. interrupts = <IT_OCP_BOOST 0>;
  318. };
  319. vbus_otg: pwr_sw1 {
  320. regulator-name = "vbus_otg";
  321. interrupts = <IT_OCP_OTG 0>;
  322. };
  323. vbus_sw: pwr_sw2 {
  324. regulator-name = "vbus_sw";
  325. interrupts = <IT_OCP_SWOUT 0>;
  326. regulator-active-discharge = <1>;
  327. };
  328. };
  329. onkey {
  330. compatible = "st,stpmic1-onkey";
  331. interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
  332. interrupt-names = "onkey-falling", "onkey-rising";
  333. power-off-time-sec = <10>;
  334. status = "okay";
  335. };
  336. watchdog {
  337. compatible = "st,stpmic1-wdt";
  338. status = "disabled";
  339. };
  340. };
  341. };
  342. &i2c5 {
  343. pinctrl-names = "default", "sleep";
  344. pinctrl-0 = <&i2c5_pins_a>;
  345. pinctrl-1 = <&i2c5_sleep_pins_a>;
  346. i2c-scl-rising-time-ns = <185>;
  347. i2c-scl-falling-time-ns = <20>;
  348. clock-frequency = <400000>;
  349. /* spare dmas for other usage */
  350. /delete-property/dmas;
  351. /delete-property/dma-names;
  352. status = "disabled";
  353. };
  354. &i2s2 {
  355. clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
  356. clock-names = "pclk", "i2sclk", "x8k", "x11k";
  357. pinctrl-names = "default", "sleep";
  358. pinctrl-0 = <&i2s2_pins_a>;
  359. pinctrl-1 = <&i2s2_sleep_pins_a>;
  360. status = "okay";
  361. i2s2_port: port {
  362. i2s2_endpoint: endpoint {
  363. remote-endpoint = <&sii9022_tx_endpoint>;
  364. format = "i2s";
  365. mclk-fs = <256>;
  366. };
  367. };
  368. };
  369. &ipcc {
  370. status = "okay";
  371. };
  372. &iwdg2 {
  373. timeout-sec = <32>;
  374. status = "okay";
  375. };
  376. &ltdc {
  377. pinctrl-names = "default", "sleep";
  378. pinctrl-0 = <&ltdc_pins_a>;
  379. pinctrl-1 = <&ltdc_sleep_pins_a>;
  380. status = "okay";
  381. port {
  382. ltdc_ep0_out: endpoint@0 {
  383. reg = <0>;
  384. remote-endpoint = <&sii9022_in>;
  385. };
  386. };
  387. };
  388. &m4_rproc {
  389. memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
  390. <&vdev0vring1>, <&vdev0buffer>;
  391. mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
  392. mbox-names = "vq0", "vq1", "shutdown";
  393. interrupt-parent = <&exti>;
  394. interrupts = <68 1>;
  395. status = "okay";
  396. };
  397. &pwr_regulators {
  398. vdd-supply = <&vdd>;
  399. vdd_3v3_usbfs-supply = <&vdd_usb>;
  400. };
  401. &rng1 {
  402. status = "okay";
  403. };
  404. &rtc {
  405. status = "okay";
  406. };
  407. &sai2 {
  408. clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
  409. clock-names = "pclk", "x8k", "x11k";
  410. pinctrl-names = "default", "sleep";
  411. pinctrl-0 = <&sai2a_pins_a>, <&sai2b_pins_b>;
  412. pinctrl-1 = <&sai2a_sleep_pins_a>, <&sai2b_sleep_pins_b>;
  413. status = "okay";
  414. sai2a: audio-controller@4400b004 {
  415. #clock-cells = <0>;
  416. dma-names = "tx";
  417. clocks = <&rcc SAI2_K>;
  418. clock-names = "sai_ck";
  419. status = "okay";
  420. sai2a_port: port {
  421. sai2a_endpoint: endpoint {
  422. remote-endpoint = <&cs42l51_tx_endpoint>;
  423. format = "i2s";
  424. mclk-fs = <256>;
  425. dai-tdm-slot-num = <2>;
  426. dai-tdm-slot-width = <32>;
  427. };
  428. };
  429. };
  430. sai2b: audio-controller@4400b024 {
  431. dma-names = "rx";
  432. st,sync = <&sai2a 2>;
  433. clocks = <&rcc SAI2_K>, <&sai2a>;
  434. clock-names = "sai_ck", "MCLK";
  435. status = "okay";
  436. sai2b_port: port {
  437. sai2b_endpoint: endpoint {
  438. remote-endpoint = <&cs42l51_rx_endpoint>;
  439. format = "i2s";
  440. mclk-fs = <256>;
  441. dai-tdm-slot-num = <2>;
  442. dai-tdm-slot-width = <32>;
  443. };
  444. };
  445. };
  446. };
  447. &sdmmc1 {
  448. pinctrl-names = "default", "opendrain", "sleep";
  449. pinctrl-0 = <&sdmmc1_b4_pins_a>;
  450. pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
  451. pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
  452. cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
  453. disable-wp;
  454. st,neg-edge;
  455. bus-width = <4>;
  456. vmmc-supply = <&v3v3>;
  457. status = "okay";
  458. };
  459. &sdmmc3 {
  460. pinctrl-names = "default", "opendrain", "sleep";
  461. pinctrl-0 = <&sdmmc3_b4_pins_a>;
  462. pinctrl-1 = <&sdmmc3_b4_od_pins_a>;
  463. pinctrl-2 = <&sdmmc3_b4_sleep_pins_a>;
  464. broken-cd;
  465. st,neg-edge;
  466. bus-width = <4>;
  467. vmmc-supply = <&v3v3>;
  468. status = "disabled";
  469. };
  470. &timers1 {
  471. /* spare dmas for other usage */
  472. /delete-property/dmas;
  473. /delete-property/dma-names;
  474. status = "disabled";
  475. pwm {
  476. pinctrl-0 = <&pwm1_pins_a>;
  477. pinctrl-1 = <&pwm1_sleep_pins_a>;
  478. pinctrl-names = "default", "sleep";
  479. status = "okay";
  480. };
  481. timer@0 {
  482. status = "okay";
  483. };
  484. };
  485. &timers3 {
  486. /delete-property/dmas;
  487. /delete-property/dma-names;
  488. status = "disabled";
  489. pwm {
  490. pinctrl-0 = <&pwm3_pins_a>;
  491. pinctrl-1 = <&pwm3_sleep_pins_a>;
  492. pinctrl-names = "default", "sleep";
  493. status = "okay";
  494. };
  495. timer@2 {
  496. status = "okay";
  497. };
  498. };
  499. &timers4 {
  500. /delete-property/dmas;
  501. /delete-property/dma-names;
  502. status = "disabled";
  503. pwm {
  504. pinctrl-0 = <&pwm4_pins_a &pwm4_pins_b>;
  505. pinctrl-1 = <&pwm4_sleep_pins_a &pwm4_sleep_pins_b>;
  506. pinctrl-names = "default", "sleep";
  507. status = "okay";
  508. };
  509. timer@3 {
  510. status = "okay";
  511. };
  512. };
  513. &timers5 {
  514. /delete-property/dmas;
  515. /delete-property/dma-names;
  516. status = "disabled";
  517. pwm {
  518. pinctrl-0 = <&pwm5_pins_a>;
  519. pinctrl-1 = <&pwm5_sleep_pins_a>;
  520. pinctrl-names = "default", "sleep";
  521. status = "okay";
  522. };
  523. timer@4 {
  524. status = "okay";
  525. };
  526. };
  527. &timers6 {
  528. /delete-property/dmas;
  529. /delete-property/dma-names;
  530. status = "disabled";
  531. timer@5 {
  532. status = "okay";
  533. };
  534. };
  535. &timers12 {
  536. /delete-property/dmas;
  537. /delete-property/dma-names;
  538. status = "disabled";
  539. pwm {
  540. pinctrl-0 = <&pwm12_pins_a>;
  541. pinctrl-1 = <&pwm12_sleep_pins_a>;
  542. pinctrl-names = "default", "sleep";
  543. status = "okay";
  544. };
  545. timer@11 {
  546. status = "okay";
  547. };
  548. };
  549. &uart4 {
  550. pinctrl-names = "default", "sleep", "idle";
  551. pinctrl-0 = <&uart4_pins_a>;
  552. pinctrl-1 = <&uart4_sleep_pins_a>;
  553. pinctrl-2 = <&uart4_idle_pins_a>;
  554. status = "okay";
  555. };
  556. &uart7 {
  557. pinctrl-names = "default", "sleep", "idle";
  558. pinctrl-0 = <&uart7_pins_c>;
  559. pinctrl-1 = <&uart7_sleep_pins_c>;
  560. pinctrl-2 = <&uart7_idle_pins_c>;
  561. status = "disabled";
  562. };
  563. &usart3 {
  564. pinctrl-names = "default", "sleep", "idle";
  565. pinctrl-0 = <&usart3_pins_c>;
  566. pinctrl-1 = <&usart3_sleep_pins_c>;
  567. pinctrl-2 = <&usart3_idle_pins_c>;
  568. uart-has-rtscts;
  569. status = "disabled";
  570. };
  571. &usbh_ehci {
  572. phys = <&usbphyc_port0>;
  573. status = "okay";
  574. };
  575. &usbotg_hs {
  576. phys = <&usbphyc_port1 0>;
  577. phy-names = "usb2-phy";
  578. usb-role-switch;
  579. status = "okay";
  580. };
  581. &usbphyc {
  582. status = "okay";
  583. };
  584. &usbphyc_port0 {
  585. phy-supply = <&vdd_usb>;
  586. };
  587. &usbphyc_port1 {
  588. phy-supply = <&vdd_usb>;
  589. };
  590. &vrefbuf {
  591. regulator-min-microvolt = <2500000>;
  592. regulator-max-microvolt = <2500000>;
  593. vdda-supply = <&vdd>;
  594. status = "okay";
  595. };