stm32mp15xx-dkx.dtsi 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647
  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. 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_pins_sleep_b>;
  102. status = "okay";
  103. };
  104. &cpu0{
  105. cpu-supply = <&vddcore>;
  106. };
  107. &cpu1{
  108. cpu-supply = <&vddcore>;
  109. };
  110. &ethernet0 {
  111. status = "okay";
  112. pinctrl-0 = <&ethernet0_rgmii_pins_a>;
  113. pinctrl-1 = <&ethernet0_rgmii_pins_sleep_a>;
  114. pinctrl-names = "default", "sleep";
  115. phy-mode = "rgmii-id";
  116. max-speed = <1000>;
  117. phy-handle = <&phy0>;
  118. mdio0 {
  119. #address-cells = <1>;
  120. #size-cells = <0>;
  121. compatible = "snps,dwmac-mdio";
  122. phy0: ethernet-phy@0 {
  123. reg = <0>;
  124. };
  125. };
  126. };
  127. &gpu {
  128. contiguous-area = <&gpu_reserved>;
  129. status = "okay";
  130. };
  131. &i2c1 {
  132. pinctrl-names = "default", "sleep";
  133. pinctrl-0 = <&i2c1_pins_a>;
  134. pinctrl-1 = <&i2c1_pins_sleep_a>;
  135. i2c-scl-rising-time-ns = <100>;
  136. i2c-scl-falling-time-ns = <7>;
  137. status = "okay";
  138. /delete-property/dmas;
  139. /delete-property/dma-names;
  140. hdmi-transmitter@39 {
  141. compatible = "sil,sii9022";
  142. reg = <0x39>;
  143. iovcc-supply = <&v3v3_hdmi>;
  144. cvcc12-supply = <&v1v2_hdmi>;
  145. reset-gpios = <&gpioa 10 GPIO_ACTIVE_LOW>;
  146. interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
  147. interrupt-parent = <&gpiog>;
  148. #sound-dai-cells = <0>;
  149. status = "okay";
  150. ports {
  151. #address-cells = <1>;
  152. #size-cells = <0>;
  153. port@0 {
  154. reg = <0>;
  155. sii9022_in: endpoint {
  156. remote-endpoint = <&ltdc_ep0_out>;
  157. };
  158. };
  159. port@3 {
  160. reg = <3>;
  161. sii9022_tx_endpoint: endpoint {
  162. remote-endpoint = <&i2s2_endpoint>;
  163. };
  164. };
  165. };
  166. };
  167. cs42l51: cs42l51@4a {
  168. compatible = "cirrus,cs42l51";
  169. reg = <0x4a>;
  170. #sound-dai-cells = <0>;
  171. VL-supply = <&v3v3>;
  172. VD-supply = <&v1v8_audio>;
  173. VA-supply = <&v1v8_audio>;
  174. VAHP-supply = <&v1v8_audio>;
  175. reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>;
  176. clocks = <&sai2a>;
  177. clock-names = "MCLK";
  178. status = "okay";
  179. cs42l51_port: port {
  180. #address-cells = <1>;
  181. #size-cells = <0>;
  182. cs42l51_tx_endpoint: endpoint@0 {
  183. reg = <0>;
  184. remote-endpoint = <&sai2a_endpoint>;
  185. frame-master;
  186. bitclock-master;
  187. };
  188. cs42l51_rx_endpoint: endpoint@1 {
  189. reg = <1>;
  190. remote-endpoint = <&sai2b_endpoint>;
  191. frame-master;
  192. bitclock-master;
  193. };
  194. };
  195. };
  196. };
  197. &i2c4 {
  198. pinctrl-names = "default", "sleep";
  199. pinctrl-0 = <&i2c4_pins_a>;
  200. pinctrl-1 = <&i2c4_pins_sleep_a>;
  201. i2c-scl-rising-time-ns = <185>;
  202. i2c-scl-falling-time-ns = <20>;
  203. clock-frequency = <400000>;
  204. status = "okay";
  205. /* spare dmas for other usage */
  206. /delete-property/dmas;
  207. /delete-property/dma-names;
  208. typec: stusb1600@28 {
  209. compatible = "st,stusb1600";
  210. reg = <0x28>;
  211. interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
  212. interrupt-parent = <&gpioi>;
  213. pinctrl-names = "default";
  214. pinctrl-0 = <&stusb1600_pins_a>;
  215. status = "okay";
  216. typec_con: connector {
  217. compatible = "usb-c-connector";
  218. label = "USB-C";
  219. power-role = "sink";
  220. power-opmode = "default";
  221. };
  222. };
  223. pmic: stpmic@33 {
  224. compatible = "st,stpmic1";
  225. reg = <0x33>;
  226. interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
  227. interrupt-controller;
  228. #interrupt-cells = <2>;
  229. status = "okay";
  230. regulators {
  231. compatible = "st,stpmic1-regulators";
  232. ldo1-supply = <&v3v3>;
  233. ldo3-supply = <&vdd_ddr>;
  234. ldo6-supply = <&v3v3>;
  235. pwr_sw1-supply = <&bst_out>;
  236. pwr_sw2-supply = <&bst_out>;
  237. vddcore: buck1 {
  238. regulator-name = "vddcore";
  239. regulator-min-microvolt = <1200000>;
  240. regulator-max-microvolt = <1350000>;
  241. regulator-always-on;
  242. regulator-initial-mode = <0>;
  243. regulator-over-current-protection;
  244. };
  245. vdd_ddr: buck2 {
  246. regulator-name = "vdd_ddr";
  247. regulator-min-microvolt = <1350000>;
  248. regulator-max-microvolt = <1350000>;
  249. regulator-always-on;
  250. regulator-initial-mode = <0>;
  251. regulator-over-current-protection;
  252. };
  253. vdd: buck3 {
  254. regulator-name = "vdd";
  255. regulator-min-microvolt = <3300000>;
  256. regulator-max-microvolt = <3300000>;
  257. regulator-always-on;
  258. st,mask-reset;
  259. regulator-initial-mode = <0>;
  260. regulator-over-current-protection;
  261. };
  262. v3v3: buck4 {
  263. regulator-name = "v3v3";
  264. regulator-min-microvolt = <3300000>;
  265. regulator-max-microvolt = <3300000>;
  266. regulator-always-on;
  267. regulator-over-current-protection;
  268. regulator-initial-mode = <0>;
  269. };
  270. v1v8_audio: ldo1 {
  271. regulator-name = "v1v8_audio";
  272. regulator-min-microvolt = <1800000>;
  273. regulator-max-microvolt = <1800000>;
  274. regulator-always-on;
  275. interrupts = <IT_CURLIM_LDO1 0>;
  276. };
  277. v3v3_hdmi: ldo2 {
  278. regulator-name = "v3v3_hdmi";
  279. regulator-min-microvolt = <3300000>;
  280. regulator-max-microvolt = <3300000>;
  281. regulator-always-on;
  282. interrupts = <IT_CURLIM_LDO2 0>;
  283. };
  284. vtt_ddr: ldo3 {
  285. regulator-name = "vtt_ddr";
  286. regulator-min-microvolt = <500000>;
  287. regulator-max-microvolt = <750000>;
  288. regulator-always-on;
  289. regulator-over-current-protection;
  290. };
  291. vdd_usb: ldo4 {
  292. regulator-name = "vdd_usb";
  293. interrupts = <IT_CURLIM_LDO4 0>;
  294. };
  295. vdda: ldo5 {
  296. regulator-name = "vdda";
  297. regulator-min-microvolt = <2900000>;
  298. regulator-max-microvolt = <2900000>;
  299. interrupts = <IT_CURLIM_LDO5 0>;
  300. regulator-boot-on;
  301. };
  302. v1v2_hdmi: ldo6 {
  303. regulator-name = "v1v2_hdmi";
  304. regulator-min-microvolt = <1200000>;
  305. regulator-max-microvolt = <1200000>;
  306. regulator-always-on;
  307. interrupts = <IT_CURLIM_LDO6 0>;
  308. };
  309. vref_ddr: vref_ddr {
  310. regulator-name = "vref_ddr";
  311. regulator-always-on;
  312. };
  313. bst_out: boost {
  314. regulator-name = "bst_out";
  315. interrupts = <IT_OCP_BOOST 0>;
  316. };
  317. vbus_otg: pwr_sw1 {
  318. regulator-name = "vbus_otg";
  319. interrupts = <IT_OCP_OTG 0>;
  320. };
  321. vbus_sw: pwr_sw2 {
  322. regulator-name = "vbus_sw";
  323. interrupts = <IT_OCP_SWOUT 0>;
  324. regulator-active-discharge = <1>;
  325. };
  326. };
  327. onkey {
  328. compatible = "st,stpmic1-onkey";
  329. interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
  330. interrupt-names = "onkey-falling", "onkey-rising";
  331. power-off-time-sec = <10>;
  332. status = "okay";
  333. };
  334. watchdog {
  335. compatible = "st,stpmic1-wdt";
  336. status = "disabled";
  337. };
  338. };
  339. };
  340. &i2s2 {
  341. clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
  342. clock-names = "pclk", "i2sclk", "x8k", "x11k";
  343. pinctrl-names = "default", "sleep";
  344. pinctrl-0 = <&i2s2_pins_a>;
  345. pinctrl-1 = <&i2s2_pins_sleep_a>;
  346. status = "okay";
  347. i2s2_port: port {
  348. i2s2_endpoint: endpoint {
  349. remote-endpoint = <&sii9022_tx_endpoint>;
  350. format = "i2s";
  351. mclk-fs = <256>;
  352. };
  353. };
  354. };
  355. &ipcc {
  356. status = "okay";
  357. };
  358. &iwdg2 {
  359. timeout-sec = <32>;
  360. status = "okay";
  361. };
  362. &ltdc {
  363. pinctrl-names = "default", "sleep";
  364. pinctrl-0 = <&ltdc_pins_a>;
  365. pinctrl-1 = <&ltdc_pins_sleep_a>;
  366. status = "okay";
  367. port {
  368. #address-cells = <1>;
  369. #size-cells = <0>;
  370. ltdc_ep0_out: endpoint@0 {
  371. reg = <0>;
  372. remote-endpoint = <&sii9022_in>;
  373. };
  374. };
  375. };
  376. &m4_rproc {
  377. memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
  378. <&vdev0vring1>, <&vdev0buffer>;
  379. mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
  380. mbox-names = "vq0", "vq1", "shutdown";
  381. interrupt-parent = <&exti>;
  382. interrupts = <68 1>;
  383. status = "okay";
  384. };
  385. &pwr_regulators {
  386. vdd-supply = <&vdd>;
  387. vdd_3v3_usbfs-supply = <&vdd_usb>;
  388. };
  389. &rng1 {
  390. status = "okay";
  391. };
  392. &rtc {
  393. status = "okay";
  394. };
  395. &sai2 {
  396. clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
  397. clock-names = "pclk", "x8k", "x11k";
  398. pinctrl-names = "default", "sleep";
  399. pinctrl-0 = <&sai2a_pins_a>, <&sai2b_pins_b>;
  400. pinctrl-1 = <&sai2a_sleep_pins_a>, <&sai2b_sleep_pins_b>;
  401. status = "okay";
  402. sai2a: audio-controller@4400b004 {
  403. #clock-cells = <0>;
  404. dma-names = "tx";
  405. clocks = <&rcc SAI2_K>;
  406. clock-names = "sai_ck";
  407. status = "okay";
  408. sai2a_port: port {
  409. sai2a_endpoint: endpoint {
  410. remote-endpoint = <&cs42l51_tx_endpoint>;
  411. format = "i2s";
  412. mclk-fs = <256>;
  413. dai-tdm-slot-num = <2>;
  414. dai-tdm-slot-width = <32>;
  415. };
  416. };
  417. };
  418. sai2b: audio-controller@4400b024 {
  419. dma-names = "rx";
  420. st,sync = <&sai2a 2>;
  421. clocks = <&rcc SAI2_K>, <&sai2a>;
  422. clock-names = "sai_ck", "MCLK";
  423. status = "okay";
  424. sai2b_port: port {
  425. sai2b_endpoint: endpoint {
  426. remote-endpoint = <&cs42l51_rx_endpoint>;
  427. format = "i2s";
  428. mclk-fs = <256>;
  429. dai-tdm-slot-num = <2>;
  430. dai-tdm-slot-width = <32>;
  431. };
  432. };
  433. };
  434. };
  435. &sdmmc1 {
  436. pinctrl-names = "default", "opendrain", "sleep";
  437. pinctrl-0 = <&sdmmc1_b4_pins_a>;
  438. pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
  439. pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
  440. cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
  441. disable-wp;
  442. st,neg-edge;
  443. bus-width = <4>;
  444. vmmc-supply = <&v3v3>;
  445. status = "okay";
  446. };
  447. &sdmmc3 {
  448. pinctrl-names = "default", "opendrain", "sleep";
  449. pinctrl-0 = <&sdmmc3_b4_pins_a>;
  450. pinctrl-1 = <&sdmmc3_b4_od_pins_a>;
  451. pinctrl-2 = <&sdmmc3_b4_sleep_pins_a>;
  452. broken-cd;
  453. st,neg-edge;
  454. bus-width = <4>;
  455. vmmc-supply = <&v3v3>;
  456. status = "disabled";
  457. };
  458. &timers1 {
  459. /* spare dmas for other usage */
  460. /delete-property/dmas;
  461. /delete-property/dma-names;
  462. status = "disabled";
  463. pwm {
  464. pinctrl-0 = <&pwm1_pins_a>;
  465. pinctrl-1 = <&pwm1_sleep_pins_a>;
  466. pinctrl-names = "default", "sleep";
  467. status = "okay";
  468. };
  469. timer@0 {
  470. status = "okay";
  471. };
  472. };
  473. &timers3 {
  474. /delete-property/dmas;
  475. /delete-property/dma-names;
  476. status = "disabled";
  477. pwm {
  478. pinctrl-0 = <&pwm3_pins_a>;
  479. pinctrl-1 = <&pwm3_sleep_pins_a>;
  480. pinctrl-names = "default", "sleep";
  481. status = "okay";
  482. };
  483. timer@2 {
  484. status = "okay";
  485. };
  486. };
  487. &timers4 {
  488. /delete-property/dmas;
  489. /delete-property/dma-names;
  490. status = "disabled";
  491. pwm {
  492. pinctrl-0 = <&pwm4_pins_a &pwm4_pins_b>;
  493. pinctrl-1 = <&pwm4_sleep_pins_a &pwm4_sleep_pins_b>;
  494. pinctrl-names = "default", "sleep";
  495. status = "okay";
  496. };
  497. timer@3 {
  498. status = "okay";
  499. };
  500. };
  501. &timers5 {
  502. /delete-property/dmas;
  503. /delete-property/dma-names;
  504. status = "disabled";
  505. pwm {
  506. pinctrl-0 = <&pwm5_pins_a>;
  507. pinctrl-1 = <&pwm5_sleep_pins_a>;
  508. pinctrl-names = "default", "sleep";
  509. status = "okay";
  510. };
  511. timer@4 {
  512. status = "okay";
  513. };
  514. };
  515. &timers6 {
  516. /delete-property/dmas;
  517. /delete-property/dma-names;
  518. status = "disabled";
  519. timer@5 {
  520. status = "okay";
  521. };
  522. };
  523. &timers12 {
  524. /delete-property/dmas;
  525. /delete-property/dma-names;
  526. status = "disabled";
  527. pwm {
  528. pinctrl-0 = <&pwm12_pins_a>;
  529. pinctrl-1 = <&pwm12_sleep_pins_a>;
  530. pinctrl-names = "default", "sleep";
  531. status = "okay";
  532. };
  533. timer@11 {
  534. status = "okay";
  535. };
  536. };
  537. &uart4 {
  538. pinctrl-names = "default";
  539. pinctrl-0 = <&uart4_pins_a>;
  540. status = "okay";
  541. };
  542. &usbh_ehci {
  543. phys = <&usbphyc_port0>;
  544. status = "okay";
  545. };
  546. &usbotg_hs {
  547. dr_mode = "peripheral";
  548. phys = <&usbphyc_port1 0>;
  549. phy-names = "usb2-phy";
  550. status = "okay";
  551. };
  552. &usbphyc {
  553. status = "okay";
  554. };
  555. &usbphyc_port0 {
  556. phy-supply = <&vdd_usb>;
  557. };
  558. &usbphyc_port1 {
  559. phy-supply = <&vdd_usb>;
  560. };
  561. &vrefbuf {
  562. regulator-min-microvolt = <2500000>;
  563. regulator-max-microvolt = <2500000>;
  564. vdda-supply = <&vdd>;
  565. status = "okay";
  566. };