pinctrl-sg2042.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. /* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
  2. /*
  3. * Copyright (C) 2024 Inochi Amaoto <inochiama@outlook.com>
  4. *
  5. */
  6. #ifndef _DT_BINDINGS_PINCTRL_SG2042_H
  7. #define _DT_BINDINGS_PINCTRL_SG2042_H
  8. #define PINMUX(pin, mux) \
  9. (((pin) & 0xffff) | (((mux) & 0xff) << 16))
  10. #define PIN_LPC_LCLK 0
  11. #define PIN_LPC_LFRAME 1
  12. #define PIN_LPC_LAD0 2
  13. #define PIN_LPC_LAD1 3
  14. #define PIN_LPC_LAD2 4
  15. #define PIN_LPC_LAD3 5
  16. #define PIN_LPC_LDRQ0 6
  17. #define PIN_LPC_LDRQ1 7
  18. #define PIN_LPC_SERIRQ 8
  19. #define PIN_LPC_CLKRUN 9
  20. #define PIN_LPC_LPME 10
  21. #define PIN_LPC_LPCPD 11
  22. #define PIN_LPC_LSMI 12
  23. #define PIN_PCIE0_L0_RESET 13
  24. #define PIN_PCIE0_L1_RESET 14
  25. #define PIN_PCIE0_L0_WAKEUP 15
  26. #define PIN_PCIE0_L1_WAKEUP 16
  27. #define PIN_PCIE0_L0_CLKREQ_IN 17
  28. #define PIN_PCIE0_L1_CLKREQ_IN 18
  29. #define PIN_PCIE1_L0_RESET 19
  30. #define PIN_PCIE1_L1_RESET 20
  31. #define PIN_PCIE1_L0_WAKEUP 21
  32. #define PIN_PCIE1_L1_WAKEUP 22
  33. #define PIN_PCIE1_L0_CLKREQ_IN 23
  34. #define PIN_PCIE1_L1_CLKREQ_IN 24
  35. #define PIN_SPIF0_CLK_SEL1 25
  36. #define PIN_SPIF0_CLK_SEL0 26
  37. #define PIN_SPIF0_WP 27
  38. #define PIN_SPIF0_HOLD 28
  39. #define PIN_SPIF0_SDI 29
  40. #define PIN_SPIF0_CS 30
  41. #define PIN_SPIF0_SCK 31
  42. #define PIN_SPIF0_SDO 32
  43. #define PIN_SPIF1_CLK_SEL1 33
  44. #define PIN_SPIF1_CLK_SEL0 34
  45. #define PIN_SPIF1_WP 35
  46. #define PIN_SPIF1_HOLD 36
  47. #define PIN_SPIF1_SDI 37
  48. #define PIN_SPIF1_CS 38
  49. #define PIN_SPIF1_SCK 39
  50. #define PIN_SPIF1_SDO 40
  51. #define PIN_EMMC_WP 41
  52. #define PIN_EMMC_CD 42
  53. #define PIN_EMMC_RST 43
  54. #define PIN_EMMC_PWR_EN 44
  55. #define PIN_SDIO_CD 45
  56. #define PIN_SDIO_WP 46
  57. #define PIN_SDIO_RST 47
  58. #define PIN_SDIO_PWR_EN 48
  59. #define PIN_RGMII0_TXD0 49
  60. #define PIN_RGMII0_TXD1 50
  61. #define PIN_RGMII0_TXD2 51
  62. #define PIN_RGMII0_TXD3 52
  63. #define PIN_RGMII0_TXCTRL 53
  64. #define PIN_RGMII0_RXD0 54
  65. #define PIN_RGMII0_RXD1 55
  66. #define PIN_RGMII0_RXD2 56
  67. #define PIN_RGMII0_RXD3 57
  68. #define PIN_RGMII0_RXCTRL 58
  69. #define PIN_RGMII0_TXC 59
  70. #define PIN_RGMII0_RXC 60
  71. #define PIN_RGMII0_REFCLKO 61
  72. #define PIN_RGMII0_IRQ 62
  73. #define PIN_RGMII0_MDC 63
  74. #define PIN_RGMII0_MDIO 64
  75. #define PIN_PWM0 65
  76. #define PIN_PWM1 66
  77. #define PIN_PWM2 67
  78. #define PIN_PWM3 68
  79. #define PIN_FAN0 69
  80. #define PIN_FAN1 70
  81. #define PIN_FAN2 71
  82. #define PIN_FAN3 72
  83. #define PIN_IIC0_SDA 73
  84. #define PIN_IIC0_SCL 74
  85. #define PIN_IIC1_SDA 75
  86. #define PIN_IIC1_SCL 76
  87. #define PIN_IIC2_SDA 77
  88. #define PIN_IIC2_SCL 78
  89. #define PIN_IIC3_SDA 79
  90. #define PIN_IIC3_SCL 80
  91. #define PIN_UART0_TX 81
  92. #define PIN_UART0_RX 82
  93. #define PIN_UART0_RTS 83
  94. #define PIN_UART0_CTS 84
  95. #define PIN_UART1_TX 85
  96. #define PIN_UART1_RX 86
  97. #define PIN_UART1_RTS 87
  98. #define PIN_UART1_CTS 88
  99. #define PIN_UART2_TX 89
  100. #define PIN_UART2_RX 90
  101. #define PIN_UART2_RTS 91
  102. #define PIN_UART2_CTS 92
  103. #define PIN_UART3_TX 93
  104. #define PIN_UART3_RX 94
  105. #define PIN_UART3_RTS 95
  106. #define PIN_UART3_CTS 96
  107. #define PIN_SPI0_CS0 97
  108. #define PIN_SPI0_CS1 98
  109. #define PIN_SPI0_SDI 99
  110. #define PIN_SPI0_SDO 100
  111. #define PIN_SPI0_SCK 101
  112. #define PIN_SPI1_CS0 102
  113. #define PIN_SPI1_CS1 103
  114. #define PIN_SPI1_SDI 104
  115. #define PIN_SPI1_SDO 105
  116. #define PIN_SPI1_SCK 106
  117. #define PIN_JTAG0_TDO 107
  118. #define PIN_JTAG0_TCK 108
  119. #define PIN_JTAG0_TDI 109
  120. #define PIN_JTAG0_TMS 110
  121. #define PIN_JTAG0_TRST 111
  122. #define PIN_JTAG0_SRST 112
  123. #define PIN_JTAG1_TDO 113
  124. #define PIN_JTAG1_TCK 114
  125. #define PIN_JTAG1_TDI 115
  126. #define PIN_JTAG1_TMS 116
  127. #define PIN_JTAG1_TRST 117
  128. #define PIN_JTAG1_SRST 118
  129. #define PIN_JTAG2_TDO 119
  130. #define PIN_JTAG2_TCK 120
  131. #define PIN_JTAG2_TDI 121
  132. #define PIN_JTAG2_TMS 122
  133. #define PIN_JTAG2_TRST 123
  134. #define PIN_JTAG2_SRST 124
  135. #define PIN_GPIO0 125
  136. #define PIN_GPIO1 126
  137. #define PIN_GPIO2 127
  138. #define PIN_GPIO3 128
  139. #define PIN_GPIO4 129
  140. #define PIN_GPIO5 130
  141. #define PIN_GPIO6 131
  142. #define PIN_GPIO7 132
  143. #define PIN_GPIO8 133
  144. #define PIN_GPIO9 134
  145. #define PIN_GPIO10 135
  146. #define PIN_GPIO11 136
  147. #define PIN_GPIO12 137
  148. #define PIN_GPIO13 138
  149. #define PIN_GPIO14 139
  150. #define PIN_GPIO15 140
  151. #define PIN_GPIO16 141
  152. #define PIN_GPIO17 142
  153. #define PIN_GPIO18 143
  154. #define PIN_GPIO19 144
  155. #define PIN_GPIO20 145
  156. #define PIN_GPIO21 146
  157. #define PIN_GPIO22 147
  158. #define PIN_GPIO23 148
  159. #define PIN_GPIO24 149
  160. #define PIN_GPIO25 150
  161. #define PIN_GPIO26 151
  162. #define PIN_GPIO27 152
  163. #define PIN_GPIO28 153
  164. #define PIN_GPIO29 154
  165. #define PIN_GPIO30 155
  166. #define PIN_GPIO31 156
  167. #define PIN_MODE_SEL0 157
  168. #define PIN_MODE_SEL1 158
  169. #define PIN_MODE_SEL2 159
  170. #define PIN_BOOT_SEL0 160
  171. #define PIN_BOOT_SEL1 161
  172. #define PIN_BOOT_SEL2 162
  173. #define PIN_BOOT_SEL3 163
  174. #define PIN_BOOT_SEL4 164
  175. #define PIN_BOOT_SEL5 165
  176. #define PIN_BOOT_SEL6 166
  177. #define PIN_BOOT_SEL7 167
  178. #define PIN_MULTI_SCKT 168
  179. #define PIN_SCKT_ID0 169
  180. #define PIN_SCKT_ID1 170
  181. #define PIN_PLL_CLK_IN_MAIN 171
  182. #define PIN_PLL_CLK_IN_DDR_L 172
  183. #define PIN_PLL_CLK_IN_DDR_R 173
  184. #define PIN_XTAL_32K 174
  185. #define PIN_SYS_RST 175
  186. #define PIN_PWR_BUTTON 176
  187. #define PIN_TEST_EN 177
  188. #define PIN_TEST_MODE_MBIST 178
  189. #define PIN_TEST_MODE_SCAN 179
  190. #define PIN_TEST_MODE_BSD 180
  191. #define PIN_BISR_BYP 181
  192. #endif /* _DT_BINDINGS_PINCTRL_SG2042_H */