stm32mp13-pinctrl.dtsi 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  2. /*
  3. * Copyright (c) 2022-2023, STMicroelectronics - All Rights Reserved
  4. * Author: Alexandre Torgue <alexandre.torgue@foss.st.com>
  5. */
  6. #include <dt-bindings/pinctrl/stm32-pinfunc.h>
  7. &pinctrl {
  8. i2c4_pins_a: i2c4-0 {
  9. pins {
  10. pinmux = <STM32_PINMUX('E', 15, AF6)>, /* I2C4_SCL */
  11. <STM32_PINMUX('B', 9, AF6)>; /* I2C4_SDA */
  12. bias-disable;
  13. drive-open-drain;
  14. slew-rate = <0>;
  15. };
  16. };
  17. sdmmc1_b4_pins_a: sdmmc1-b4-0 {
  18. pins {
  19. pinmux = <STM32_PINMUX('C', 8, AF12)>, /* SDMMC1_D0 */
  20. <STM32_PINMUX('C', 9, AF12)>, /* SDMMC1_D1 */
  21. <STM32_PINMUX('C', 10, AF12)>, /* SDMMC1_D2 */
  22. <STM32_PINMUX('C', 11, AF12)>, /* SDMMC1_D3 */
  23. <STM32_PINMUX('D', 2, AF12)>; /* SDMMC1_CMD */
  24. slew-rate = <1>;
  25. drive-push-pull;
  26. bias-disable;
  27. };
  28. };
  29. sdmmc1_clk_pins_a: sdmmc1-clk-0 {
  30. pins {
  31. pinmux = <STM32_PINMUX('C', 12, AF12)>; /* SDMMC1_CK */
  32. slew-rate = <1>;
  33. drive-push-pull;
  34. bias-disable;
  35. };
  36. };
  37. sdmmc2_b4_pins_a: sdmmc2-b4-0 {
  38. pins {
  39. pinmux = <STM32_PINMUX('B', 14, AF10)>, /* SDMMC2_D0 */
  40. <STM32_PINMUX('B', 15, AF10)>, /* SDMMC2_D1 */
  41. <STM32_PINMUX('B', 3, AF10)>, /* SDMMC2_D2 */
  42. <STM32_PINMUX('B', 4, AF10)>, /* SDMMC2_D3 */
  43. <STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */
  44. slew-rate = <1>;
  45. drive-push-pull;
  46. bias-pull-up;
  47. };
  48. };
  49. sdmmc2_clk_pins_a: sdmmc2-clk-0 {
  50. pins {
  51. pinmux = <STM32_PINMUX('E', 3, AF10)>; /* SDMMC2_CK */
  52. slew-rate = <1>;
  53. drive-push-pull;
  54. bias-pull-up;
  55. };
  56. };
  57. uart4_pins_a: uart4-0 {
  58. pins1 {
  59. pinmux = <STM32_PINMUX('D', 6, AF8)>; /* UART4_TX */
  60. bias-disable;
  61. drive-push-pull;
  62. slew-rate = <0>;
  63. };
  64. pins2 {
  65. pinmux = <STM32_PINMUX('D', 8, AF8)>; /* UART4_RX */
  66. bias-disable;
  67. };
  68. };
  69. usart1_pins_a: usart1-0 {
  70. pins1 {
  71. pinmux = <STM32_PINMUX('C', 0, AF7)>, /* USART1_TX */
  72. <STM32_PINMUX('C', 2, AF7)>; /* USART1_RTS */
  73. bias-disable;
  74. drive-push-pull;
  75. slew-rate = <0>;
  76. };
  77. pins2 {
  78. pinmux = <STM32_PINMUX('B', 0, AF4)>, /* USART1_RX */
  79. <STM32_PINMUX('A', 7, AF7)>; /* USART1_CTS_NSS */
  80. bias-pull-up;
  81. };
  82. };
  83. uart8_pins_a: uart8-0 {
  84. pins1 {
  85. pinmux = <STM32_PINMUX('E', 1, AF8)>; /* UART8_TX */
  86. bias-disable;
  87. drive-push-pull;
  88. slew-rate = <0>;
  89. };
  90. pins2 {
  91. pinmux = <STM32_PINMUX('F', 9, AF8)>; /* UART8_RX */
  92. bias-pull-up;
  93. };
  94. };
  95. };