stm32mp15-pinctrl.dtsi 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  2. /*
  3. * Copyright (c) 2017-2023, STMicroelectronics - All Rights Reserved
  4. * Author: Ludovic Barre <ludovic.barre@st.com> for STMicroelectronics.
  5. */
  6. #include <dt-bindings/pinctrl/stm32-pinfunc.h>
  7. &pinctrl {
  8. fmc_pins_a: fmc-0 {
  9. pins1 {
  10. pinmux = <STM32_PINMUX('D', 4, AF12)>, /* FMC_NOE */
  11. <STM32_PINMUX('D', 5, AF12)>, /* FMC_NWE */
  12. <STM32_PINMUX('D', 11, AF12)>, /* FMC_A16_FMC_CLE */
  13. <STM32_PINMUX('D', 12, AF12)>, /* FMC_A17_FMC_ALE */
  14. <STM32_PINMUX('D', 14, AF12)>, /* FMC_D0 */
  15. <STM32_PINMUX('D', 15, AF12)>, /* FMC_D1 */
  16. <STM32_PINMUX('D', 0, AF12)>, /* FMC_D2 */
  17. <STM32_PINMUX('D', 1, AF12)>, /* FMC_D3 */
  18. <STM32_PINMUX('E', 7, AF12)>, /* FMC_D4 */
  19. <STM32_PINMUX('E', 8, AF12)>, /* FMC_D5 */
  20. <STM32_PINMUX('E', 9, AF12)>, /* FMC_D6 */
  21. <STM32_PINMUX('E', 10, AF12)>, /* FMC_D7 */
  22. <STM32_PINMUX('G', 9, AF12)>; /* FMC_NE2_FMC_NCE */
  23. bias-disable;
  24. drive-push-pull;
  25. slew-rate = <1>;
  26. };
  27. pins2 {
  28. pinmux = <STM32_PINMUX('D', 6, AF12)>; /* FMC_NWAIT */
  29. bias-pull-up;
  30. };
  31. };
  32. i2c2_pins_a: i2c2-0 {
  33. pins {
  34. pinmux = <STM32_PINMUX('H', 4, AF4)>, /* I2C2_SCL */
  35. <STM32_PINMUX('H', 5, AF4)>; /* I2C2_SDA */
  36. bias-disable;
  37. drive-open-drain;
  38. slew-rate = <0>;
  39. };
  40. };
  41. qspi_clk_pins_a: qspi-clk-0 {
  42. pins {
  43. pinmux = <STM32_PINMUX('F', 10, AF9)>; /* QSPI_CLK */
  44. bias-disable;
  45. drive-push-pull;
  46. slew-rate = <3>;
  47. };
  48. };
  49. qspi_bk1_pins_a: qspi-bk1-0 {
  50. pins1 {
  51. pinmux = <STM32_PINMUX('F', 8, AF10)>, /* QSPI_BK1_IO0 */
  52. <STM32_PINMUX('F', 9, AF10)>, /* QSPI_BK1_IO1 */
  53. <STM32_PINMUX('F', 7, AF9)>, /* QSPI_BK1_IO2 */
  54. <STM32_PINMUX('F', 6, AF9)>; /* QSPI_BK1_IO3 */
  55. bias-disable;
  56. drive-push-pull;
  57. slew-rate = <1>;
  58. };
  59. pins2 {
  60. pinmux = <STM32_PINMUX('B', 6, AF10)>; /* QSPI_BK1_NCS */
  61. bias-pull-up;
  62. drive-push-pull;
  63. slew-rate = <1>;
  64. };
  65. };
  66. qspi_bk2_pins_a: qspi-bk2-0 {
  67. pins1 {
  68. pinmux = <STM32_PINMUX('H', 2, AF9)>, /* QSPI_BK2_IO0 */
  69. <STM32_PINMUX('H', 3, AF9)>, /* QSPI_BK2_IO1 */
  70. <STM32_PINMUX('G', 10, AF11)>, /* QSPI_BK2_IO2 */
  71. <STM32_PINMUX('G', 7, AF11)>; /* QSPI_BK2_IO3 */
  72. bias-disable;
  73. drive-push-pull;
  74. slew-rate = <1>;
  75. };
  76. pins2 {
  77. pinmux = <STM32_PINMUX('C', 0, AF10)>; /* QSPI_BK2_NCS */
  78. bias-pull-up;
  79. drive-push-pull;
  80. slew-rate = <1>;
  81. };
  82. };
  83. sdmmc1_b4_pins_a: sdmmc1-b4-0 {
  84. pins1 {
  85. pinmux = <STM32_PINMUX('C', 8, AF12)>, /* SDMMC1_D0 */
  86. <STM32_PINMUX('C', 9, AF12)>, /* SDMMC1_D1 */
  87. <STM32_PINMUX('C', 10, AF12)>, /* SDMMC1_D2 */
  88. <STM32_PINMUX('C', 11, AF12)>, /* SDMMC1_D3 */
  89. <STM32_PINMUX('D', 2, AF12)>; /* SDMMC1_CMD */
  90. slew-rate = <1>;
  91. drive-push-pull;
  92. bias-disable;
  93. };
  94. pins2 {
  95. pinmux = <STM32_PINMUX('C', 12, AF12)>; /* SDMMC1_CK */
  96. slew-rate = <2>;
  97. drive-push-pull;
  98. bias-disable;
  99. };
  100. };
  101. sdmmc1_dir_pins_a: sdmmc1-dir-0 {
  102. pins1 {
  103. pinmux = <STM32_PINMUX('F', 2, AF11)>, /* SDMMC1_D0DIR */
  104. <STM32_PINMUX('C', 7, AF8)>, /* SDMMC1_D123DIR */
  105. <STM32_PINMUX('B', 9, AF11)>; /* SDMMC1_CDIR */
  106. slew-rate = <1>;
  107. drive-push-pull;
  108. bias-pull-up;
  109. };
  110. pins2 {
  111. pinmux = <STM32_PINMUX('E', 4, AF8)>; /* SDMMC1_CKIN */
  112. bias-pull-up;
  113. };
  114. };
  115. sdmmc1_dir_pins_b: sdmmc1-dir-1 {
  116. pins1 {
  117. pinmux = <STM32_PINMUX('F', 2, AF11)>, /* SDMMC1_D0DIR */
  118. <STM32_PINMUX('E', 14, AF11)>, /* SDMMC1_D123DIR */
  119. <STM32_PINMUX('B', 9, AF11)>; /* SDMMC1_CDIR */
  120. slew-rate = <1>;
  121. drive-push-pull;
  122. bias-pull-up;
  123. };
  124. pins2{
  125. pinmux = <STM32_PINMUX('E', 4, AF8)>; /* SDMMC1_CKIN */
  126. bias-pull-up;
  127. };
  128. };
  129. sdmmc2_b4_pins_a: sdmmc2-b4-0 {
  130. pins1 {
  131. pinmux = <STM32_PINMUX('B', 14, AF9)>, /* SDMMC2_D0 */
  132. <STM32_PINMUX('B', 15, AF9)>, /* SDMMC2_D1 */
  133. <STM32_PINMUX('B', 3, AF9)>, /* SDMMC2_D2 */
  134. <STM32_PINMUX('B', 4, AF9)>, /* SDMMC2_D3 */
  135. <STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */
  136. slew-rate = <1>;
  137. drive-push-pull;
  138. bias-pull-up;
  139. };
  140. pins2 {
  141. pinmux = <STM32_PINMUX('E', 3, AF9)>; /* SDMMC2_CK */
  142. slew-rate = <2>;
  143. drive-push-pull;
  144. bias-pull-up;
  145. };
  146. };
  147. sdmmc2_b4_pins_b: sdmmc2-b4-1 {
  148. pins1 {
  149. pinmux = <STM32_PINMUX('B', 14, AF9)>, /* SDMMC2_D0 */
  150. <STM32_PINMUX('B', 15, AF9)>, /* SDMMC2_D1 */
  151. <STM32_PINMUX('B', 3, AF9)>, /* SDMMC2_D2 */
  152. <STM32_PINMUX('B', 4, AF9)>, /* SDMMC2_D3 */
  153. <STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */
  154. slew-rate = <1>;
  155. drive-push-pull;
  156. bias-disable;
  157. };
  158. pins2 {
  159. pinmux = <STM32_PINMUX('E', 3, AF9)>; /* SDMMC2_CK */
  160. slew-rate = <2>;
  161. drive-push-pull;
  162. bias-disable;
  163. };
  164. };
  165. sdmmc2_d47_pins_a: sdmmc2-d47-0 {
  166. pins {
  167. pinmux = <STM32_PINMUX('A', 8, AF9)>, /* SDMMC2_D4 */
  168. <STM32_PINMUX('A', 9, AF10)>, /* SDMMC2_D5 */
  169. <STM32_PINMUX('E', 5, AF9)>, /* SDMMC2_D6 */
  170. <STM32_PINMUX('D', 3, AF9)>; /* SDMMC2_D7 */
  171. slew-rate = <1>;
  172. drive-push-pull;
  173. bias-pull-up;
  174. };
  175. };
  176. sdmmc2_d47_pins_b: sdmmc2-d47-1 {
  177. pins {
  178. pinmux = <STM32_PINMUX('A', 8, AF9)>, /* SDMMC2_D4 */
  179. <STM32_PINMUX('A', 9, AF10)>, /* SDMMC2_D5 */
  180. <STM32_PINMUX('C', 6, AF10)>, /* SDMMC2_D6 */
  181. <STM32_PINMUX('C', 7, AF10)>; /* SDMMC2_D7 */
  182. slew-rate = <1>;
  183. drive-push-pull;
  184. bias-disable;
  185. };
  186. };
  187. sdmmc2_d47_pins_c: sdmmc2-d47-2 {
  188. pins {
  189. pinmux = <STM32_PINMUX('A', 8, AF9)>, /* SDMMC2_D4 */
  190. <STM32_PINMUX('A', 15, AF9)>, /* SDMMC2_D5 */
  191. <STM32_PINMUX('C', 6, AF10)>, /* SDMMC2_D6 */
  192. <STM32_PINMUX('C', 7, AF10)>; /* SDMMC2_D7 */
  193. slew-rate = <1>;
  194. drive-push-pull;
  195. bias-pull-up;
  196. };
  197. };
  198. sdmmc2_d47_pins_d: sdmmc2-d47-3 {
  199. pins {
  200. pinmux = <STM32_PINMUX('A', 8, AF9)>, /* SDMMC2_D4 */
  201. <STM32_PINMUX('A', 9, AF10)>, /* SDMMC2_D5 */
  202. <STM32_PINMUX('E', 5, AF9)>, /* SDMMC2_D6 */
  203. <STM32_PINMUX('C', 7, AF10)>; /* SDMMC2_D7 */
  204. };
  205. };
  206. uart4_pins_a: uart4-0 {
  207. pins1 {
  208. pinmux = <STM32_PINMUX('G', 11, AF6)>; /* UART4_TX */
  209. bias-disable;
  210. drive-push-pull;
  211. slew-rate = <0>;
  212. };
  213. pins2 {
  214. pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */
  215. bias-disable;
  216. };
  217. };
  218. uart4_pins_b: uart4-1 {
  219. pins1 {
  220. pinmux = <STM32_PINMUX('D', 1, AF8)>; /* UART4_TX */
  221. bias-disable;
  222. drive-push-pull;
  223. slew-rate = <0>;
  224. };
  225. pins2 {
  226. pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */
  227. bias-disable;
  228. };
  229. };
  230. uart7_pins_a: uart7-0 {
  231. pins1 {
  232. pinmux = <STM32_PINMUX('E', 8, AF7)>; /* UART7_TX */
  233. bias-disable;
  234. drive-push-pull;
  235. slew-rate = <0>;
  236. };
  237. pins2 {
  238. pinmux = <STM32_PINMUX('E', 7, AF7)>, /* UART7_RX */
  239. <STM32_PINMUX('E', 10, AF7)>, /* UART7_CTS */
  240. <STM32_PINMUX('E', 9, AF7)>; /* UART7_RTS */
  241. bias-disable;
  242. };
  243. };
  244. uart7_pins_b: uart7-1 {
  245. pins1 {
  246. pinmux = <STM32_PINMUX('F', 7, AF7)>; /* UART7_TX */
  247. bias-disable;
  248. drive-push-pull;
  249. slew-rate = <0>;
  250. };
  251. pins2 {
  252. pinmux = <STM32_PINMUX('F', 6, AF7)>; /* UART7_RX */
  253. bias-disable;
  254. };
  255. };
  256. uart7_pins_c: uart7-2 {
  257. pins1 {
  258. pinmux = <STM32_PINMUX('E', 8, AF7)>; /* UART7_TX */
  259. bias-disable;
  260. drive-push-pull;
  261. slew-rate = <0>;
  262. };
  263. pins2 {
  264. pinmux = <STM32_PINMUX('E', 7, AF7)>; /* UART7_RX */
  265. bias-disable;
  266. };
  267. };
  268. uart8_pins_a: uart8-0 {
  269. pins1 {
  270. pinmux = <STM32_PINMUX('E', 1, AF8)>; /* UART8_TX */
  271. bias-disable;
  272. drive-push-pull;
  273. slew-rate = <0>;
  274. };
  275. pins2 {
  276. pinmux = <STM32_PINMUX('E', 0, AF8)>; /* UART8_RX */
  277. bias-disable;
  278. };
  279. };
  280. usart2_pins_a: usart2-0 {
  281. pins1 {
  282. pinmux = <STM32_PINMUX('F', 5, AF7)>, /* USART2_TX */
  283. <STM32_PINMUX('D', 4, AF7)>; /* USART2_RTS */
  284. bias-disable;
  285. drive-push-pull;
  286. slew-rate = <0>;
  287. };
  288. pins2 {
  289. pinmux = <STM32_PINMUX('D', 6, AF7)>, /* USART2_RX */
  290. <STM32_PINMUX('D', 3, AF7)>; /* USART2_CTS_NSS */
  291. bias-disable;
  292. };
  293. };
  294. usart2_pins_b: usart2-1 {
  295. pins1 {
  296. pinmux = <STM32_PINMUX('F', 5, AF7)>, /* USART2_TX */
  297. <STM32_PINMUX('A', 1, AF7)>; /* USART2_RTS */
  298. bias-disable;
  299. drive-push-pull;
  300. slew-rate = <0>;
  301. };
  302. pins2 {
  303. pinmux = <STM32_PINMUX('F', 4, AF7)>, /* USART2_RX */
  304. <STM32_PINMUX('E', 15, AF7)>; /* USART2_CTS_NSS */
  305. bias-disable;
  306. };
  307. };
  308. usart2_pins_c: usart2-2 {
  309. pins1 {
  310. pinmux = <STM32_PINMUX('D', 5, AF7)>, /* USART2_TX */
  311. <STM32_PINMUX('D', 4, AF7)>; /* USART2_RTS */
  312. bias-disable;
  313. drive-push-pull;
  314. slew-rate = <3>;
  315. };
  316. pins2 {
  317. pinmux = <STM32_PINMUX('D', 6, AF7)>, /* USART2_RX */
  318. <STM32_PINMUX('D', 3, AF7)>; /* USART2_CTS_NSS */
  319. bias-disable;
  320. };
  321. };
  322. usart3_pins_a: usart3-0 {
  323. pins1 {
  324. pinmux = <STM32_PINMUX('B', 10, AF7)>; /* USART3_TX */
  325. bias-disable;
  326. drive-push-pull;
  327. slew-rate = <0>;
  328. };
  329. pins2 {
  330. pinmux = <STM32_PINMUX('B', 12, AF8)>; /* USART3_RX */
  331. bias-disable;
  332. };
  333. };
  334. usart3_pins_b: usart3-1 {
  335. pins1 {
  336. pinmux = <STM32_PINMUX('B', 10, AF7)>, /* USART3_TX */
  337. <STM32_PINMUX('G', 8, AF8)>; /* USART3_RTS */
  338. bias-disable;
  339. drive-push-pull;
  340. slew-rate = <0>;
  341. };
  342. pins2 {
  343. pinmux = <STM32_PINMUX('B', 12, AF8)>, /* USART3_RX */
  344. <STM32_PINMUX('I', 10, AF8)>; /* USART3_CTS_NSS */
  345. bias-disable;
  346. };
  347. };
  348. usart3_pins_c: usart3-2 {
  349. pins1 {
  350. pinmux = <STM32_PINMUX('B', 10, AF7)>, /* USART3_TX */
  351. <STM32_PINMUX('G', 8, AF8)>; /* USART3_RTS */
  352. bias-disable;
  353. drive-push-pull;
  354. slew-rate = <0>;
  355. };
  356. pins2 {
  357. pinmux = <STM32_PINMUX('B', 12, AF8)>, /* USART3_RX */
  358. <STM32_PINMUX('B', 13, AF7)>; /* USART3_CTS_NSS */
  359. bias-disable;
  360. };
  361. };
  362. usbotg_hs_pins_a: usbotg-hs-0 {
  363. pins {
  364. pinmux = <STM32_PINMUX('A', 10, ANALOG)>; /* OTG_ID */
  365. };
  366. };
  367. usbotg_fs_dp_dm_pins_a: usbotg-fs-dp-dm-0 {
  368. pins {
  369. pinmux = <STM32_PINMUX('A', 11, ANALOG)>, /* OTG_FS_DM */
  370. <STM32_PINMUX('A', 12, ANALOG)>; /* OTG_FS_DP */
  371. };
  372. };
  373. };
  374. &pinctrl_z {
  375. i2c4_pins_a: i2c4-0 {
  376. pins {
  377. pinmux = <STM32_PINMUX('Z', 4, AF6)>, /* I2C4_SCL */
  378. <STM32_PINMUX('Z', 5, AF6)>; /* I2C4_SDA */
  379. bias-disable;
  380. drive-open-drain;
  381. slew-rate = <0>;
  382. };
  383. };
  384. };