xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/pinctrl/pinctrl-sg2044.h (revision 8ccc0d235c226d84112561d453c49904398d085c)
1*8ccc0d23SEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
2*8ccc0d23SEmmanuel Vadot /*
3*8ccc0d23SEmmanuel Vadot  * Copyright (C) 2024 Inochi Amaoto <inochiama@outlook.com>
4*8ccc0d23SEmmanuel Vadot  *
5*8ccc0d23SEmmanuel Vadot  */
6*8ccc0d23SEmmanuel Vadot 
7*8ccc0d23SEmmanuel Vadot #ifndef _DT_BINDINGS_PINCTRL_SG2044_H
8*8ccc0d23SEmmanuel Vadot #define _DT_BINDINGS_PINCTRL_SG2044_H
9*8ccc0d23SEmmanuel Vadot 
10*8ccc0d23SEmmanuel Vadot #define PINMUX(pin, mux) \
11*8ccc0d23SEmmanuel Vadot 	(((pin) & 0xffff) | (((mux) & 0xff) << 16))
12*8ccc0d23SEmmanuel Vadot 
13*8ccc0d23SEmmanuel Vadot #define PIN_IIC0_SMBSUS_IN		0
14*8ccc0d23SEmmanuel Vadot #define PIN_IIC0_SMBSUS_OUT		1
15*8ccc0d23SEmmanuel Vadot #define PIN_IIC0_SMBALERT		2
16*8ccc0d23SEmmanuel Vadot #define PIN_IIC1_SMBSUS_IN		3
17*8ccc0d23SEmmanuel Vadot #define PIN_IIC1_SMBSUS_OUT		4
18*8ccc0d23SEmmanuel Vadot #define PIN_IIC1_SMBALERT		5
19*8ccc0d23SEmmanuel Vadot #define PIN_IIC2_SMBSUS_IN		6
20*8ccc0d23SEmmanuel Vadot #define PIN_IIC2_SMBSUS_OUT		7
21*8ccc0d23SEmmanuel Vadot #define PIN_IIC2_SMBALERT		8
22*8ccc0d23SEmmanuel Vadot #define PIN_IIC3_SMBSUS_IN		9
23*8ccc0d23SEmmanuel Vadot #define PIN_IIC3_SMBSUS_OUT		10
24*8ccc0d23SEmmanuel Vadot #define PIN_IIC3_SMBALERT		11
25*8ccc0d23SEmmanuel Vadot #define PIN_PCIE0_L0_RESET		12
26*8ccc0d23SEmmanuel Vadot #define PIN_PCIE0_L1_RESET		13
27*8ccc0d23SEmmanuel Vadot #define PIN_PCIE0_L0_WAKEUP		14
28*8ccc0d23SEmmanuel Vadot #define PIN_PCIE0_L1_WAKEUP		15
29*8ccc0d23SEmmanuel Vadot #define PIN_PCIE0_L0_CLKREQ_IN		16
30*8ccc0d23SEmmanuel Vadot #define PIN_PCIE0_L1_CLKREQ_IN		17
31*8ccc0d23SEmmanuel Vadot #define PIN_PCIE1_L0_RESET		18
32*8ccc0d23SEmmanuel Vadot #define PIN_PCIE1_L1_RESET		19
33*8ccc0d23SEmmanuel Vadot #define PIN_PCIE1_L0_WAKEUP		20
34*8ccc0d23SEmmanuel Vadot #define PIN_PCIE1_L1_WAKEUP		21
35*8ccc0d23SEmmanuel Vadot #define PIN_PCIE1_L0_CLKREQ_IN		22
36*8ccc0d23SEmmanuel Vadot #define PIN_PCIE1_L1_CLKREQ_IN		23
37*8ccc0d23SEmmanuel Vadot #define PIN_PCIE2_L0_RESET		24
38*8ccc0d23SEmmanuel Vadot #define PIN_PCIE2_L1_RESET		25
39*8ccc0d23SEmmanuel Vadot #define PIN_PCIE2_L0_WAKEUP		26
40*8ccc0d23SEmmanuel Vadot #define PIN_PCIE2_L1_WAKEUP		27
41*8ccc0d23SEmmanuel Vadot #define PIN_PCIE2_L0_CLKREQ_IN		28
42*8ccc0d23SEmmanuel Vadot #define PIN_PCIE2_L1_CLKREQ_IN		29
43*8ccc0d23SEmmanuel Vadot #define PIN_PCIE3_L0_RESET		30
44*8ccc0d23SEmmanuel Vadot #define PIN_PCIE3_L1_RESET		31
45*8ccc0d23SEmmanuel Vadot #define PIN_PCIE3_L0_WAKEUP		32
46*8ccc0d23SEmmanuel Vadot #define PIN_PCIE3_L1_WAKEUP		33
47*8ccc0d23SEmmanuel Vadot #define PIN_PCIE3_L0_CLKREQ_IN		34
48*8ccc0d23SEmmanuel Vadot #define PIN_PCIE3_L1_CLKREQ_IN		35
49*8ccc0d23SEmmanuel Vadot #define PIN_PCIE4_L0_RESET		36
50*8ccc0d23SEmmanuel Vadot #define PIN_PCIE4_L1_RESET		37
51*8ccc0d23SEmmanuel Vadot #define PIN_PCIE4_L0_WAKEUP		38
52*8ccc0d23SEmmanuel Vadot #define PIN_PCIE4_L1_WAKEUP		39
53*8ccc0d23SEmmanuel Vadot #define PIN_PCIE4_L0_CLKREQ_IN		40
54*8ccc0d23SEmmanuel Vadot #define PIN_PCIE4_L1_CLKREQ_IN		41
55*8ccc0d23SEmmanuel Vadot #define PIN_SPIF0_CLK_SEL1		42
56*8ccc0d23SEmmanuel Vadot #define PIN_SPIF0_CLK_SEL0		43
57*8ccc0d23SEmmanuel Vadot #define PIN_SPIF0_WP			44
58*8ccc0d23SEmmanuel Vadot #define PIN_SPIF0_HOLD			45
59*8ccc0d23SEmmanuel Vadot #define PIN_SPIF0_SDI			46
60*8ccc0d23SEmmanuel Vadot #define PIN_SPIF0_CS			47
61*8ccc0d23SEmmanuel Vadot #define PIN_SPIF0_SCK			48
62*8ccc0d23SEmmanuel Vadot #define PIN_SPIF0_SDO			49
63*8ccc0d23SEmmanuel Vadot #define PIN_SPIF1_CLK_SEL1		50
64*8ccc0d23SEmmanuel Vadot #define PIN_SPIF1_CLK_SEL0		51
65*8ccc0d23SEmmanuel Vadot #define PIN_SPIF1_WP			52
66*8ccc0d23SEmmanuel Vadot #define PIN_SPIF1_HOLD			53
67*8ccc0d23SEmmanuel Vadot #define PIN_SPIF1_SDI			54
68*8ccc0d23SEmmanuel Vadot #define PIN_SPIF1_CS			55
69*8ccc0d23SEmmanuel Vadot #define PIN_SPIF1_SCK			56
70*8ccc0d23SEmmanuel Vadot #define PIN_SPIF1_SDO			57
71*8ccc0d23SEmmanuel Vadot #define PIN_EMMC_WP			58
72*8ccc0d23SEmmanuel Vadot #define PIN_EMMC_CD			59
73*8ccc0d23SEmmanuel Vadot #define PIN_EMMC_RST			60
74*8ccc0d23SEmmanuel Vadot #define PIN_EMMC_PWR_EN			61
75*8ccc0d23SEmmanuel Vadot #define PIN_SDIO_CD			62
76*8ccc0d23SEmmanuel Vadot #define PIN_SDIO_WP			63
77*8ccc0d23SEmmanuel Vadot #define PIN_SDIO_RST			64
78*8ccc0d23SEmmanuel Vadot #define PIN_SDIO_PWR_EN			65
79*8ccc0d23SEmmanuel Vadot #define PIN_RGMII0_TXD0			66
80*8ccc0d23SEmmanuel Vadot #define PIN_RGMII0_TXD1			67
81*8ccc0d23SEmmanuel Vadot #define PIN_RGMII0_TXD2			68
82*8ccc0d23SEmmanuel Vadot #define PIN_RGMII0_TXD3			69
83*8ccc0d23SEmmanuel Vadot #define PIN_RGMII0_TXCTRL		70
84*8ccc0d23SEmmanuel Vadot #define PIN_RGMII0_RXD0			71
85*8ccc0d23SEmmanuel Vadot #define PIN_RGMII0_RXD1			72
86*8ccc0d23SEmmanuel Vadot #define PIN_RGMII0_RXD2			73
87*8ccc0d23SEmmanuel Vadot #define PIN_RGMII0_RXD3			74
88*8ccc0d23SEmmanuel Vadot #define PIN_RGMII0_RXCTRL		75
89*8ccc0d23SEmmanuel Vadot #define PIN_RGMII0_TXC			76
90*8ccc0d23SEmmanuel Vadot #define PIN_RGMII0_RXC			77
91*8ccc0d23SEmmanuel Vadot #define PIN_RGMII0_REFCLKO		78
92*8ccc0d23SEmmanuel Vadot #define PIN_RGMII0_IRQ			79
93*8ccc0d23SEmmanuel Vadot #define PIN_RGMII0_MDC			80
94*8ccc0d23SEmmanuel Vadot #define PIN_RGMII0_MDIO			81
95*8ccc0d23SEmmanuel Vadot #define PIN_PWM0			82
96*8ccc0d23SEmmanuel Vadot #define PIN_PWM1			83
97*8ccc0d23SEmmanuel Vadot #define PIN_PWM2			84
98*8ccc0d23SEmmanuel Vadot #define PIN_PWM3			85
99*8ccc0d23SEmmanuel Vadot #define PIN_FAN0			86
100*8ccc0d23SEmmanuel Vadot #define PIN_FAN1			87
101*8ccc0d23SEmmanuel Vadot #define PIN_FAN2			88
102*8ccc0d23SEmmanuel Vadot #define PIN_FAN3			89
103*8ccc0d23SEmmanuel Vadot #define PIN_IIC0_SDA			90
104*8ccc0d23SEmmanuel Vadot #define PIN_IIC0_SCL			91
105*8ccc0d23SEmmanuel Vadot #define PIN_IIC1_SDA			92
106*8ccc0d23SEmmanuel Vadot #define PIN_IIC1_SCL			93
107*8ccc0d23SEmmanuel Vadot #define PIN_IIC2_SDA			94
108*8ccc0d23SEmmanuel Vadot #define PIN_IIC2_SCL			95
109*8ccc0d23SEmmanuel Vadot #define PIN_IIC3_SDA			96
110*8ccc0d23SEmmanuel Vadot #define PIN_IIC3_SCL			97
111*8ccc0d23SEmmanuel Vadot #define PIN_UART0_TX			98
112*8ccc0d23SEmmanuel Vadot #define PIN_UART0_RX			99
113*8ccc0d23SEmmanuel Vadot #define PIN_UART0_RTS			100
114*8ccc0d23SEmmanuel Vadot #define PIN_UART0_CTS			101
115*8ccc0d23SEmmanuel Vadot #define PIN_UART1_TX			102
116*8ccc0d23SEmmanuel Vadot #define PIN_UART1_RX			103
117*8ccc0d23SEmmanuel Vadot #define PIN_UART1_RTS			104
118*8ccc0d23SEmmanuel Vadot #define PIN_UART1_CTS			105
119*8ccc0d23SEmmanuel Vadot #define PIN_UART2_TX			106
120*8ccc0d23SEmmanuel Vadot #define PIN_UART2_RX			107
121*8ccc0d23SEmmanuel Vadot #define PIN_UART2_RTS			108
122*8ccc0d23SEmmanuel Vadot #define PIN_UART2_CTS			109
123*8ccc0d23SEmmanuel Vadot #define PIN_UART3_TX			110
124*8ccc0d23SEmmanuel Vadot #define PIN_UART3_RX			111
125*8ccc0d23SEmmanuel Vadot #define PIN_UART3_RTS			112
126*8ccc0d23SEmmanuel Vadot #define PIN_UART3_CTS			113
127*8ccc0d23SEmmanuel Vadot #define PIN_SPI0_CS0			114
128*8ccc0d23SEmmanuel Vadot #define PIN_SPI0_CS1			115
129*8ccc0d23SEmmanuel Vadot #define PIN_SPI0_SDI			116
130*8ccc0d23SEmmanuel Vadot #define PIN_SPI0_SDO			117
131*8ccc0d23SEmmanuel Vadot #define PIN_SPI0_SCK			118
132*8ccc0d23SEmmanuel Vadot #define PIN_SPI1_CS0			119
133*8ccc0d23SEmmanuel Vadot #define PIN_SPI1_CS1			120
134*8ccc0d23SEmmanuel Vadot #define PIN_SPI1_SDI			121
135*8ccc0d23SEmmanuel Vadot #define PIN_SPI1_SDO			122
136*8ccc0d23SEmmanuel Vadot #define PIN_SPI1_SCK			123
137*8ccc0d23SEmmanuel Vadot #define PIN_JTAG0_TDO			124
138*8ccc0d23SEmmanuel Vadot #define PIN_JTAG0_TCK			125
139*8ccc0d23SEmmanuel Vadot #define PIN_JTAG0_TDI			126
140*8ccc0d23SEmmanuel Vadot #define PIN_JTAG0_TMS			127
141*8ccc0d23SEmmanuel Vadot #define PIN_JTAG0_TRST			128
142*8ccc0d23SEmmanuel Vadot #define PIN_JTAG0_SRST			129
143*8ccc0d23SEmmanuel Vadot #define PIN_JTAG1_TDO			130
144*8ccc0d23SEmmanuel Vadot #define PIN_JTAG1_TCK			131
145*8ccc0d23SEmmanuel Vadot #define PIN_JTAG1_TDI			132
146*8ccc0d23SEmmanuel Vadot #define PIN_JTAG1_TMS			133
147*8ccc0d23SEmmanuel Vadot #define PIN_JTAG1_TRST			134
148*8ccc0d23SEmmanuel Vadot #define PIN_JTAG1_SRST			135
149*8ccc0d23SEmmanuel Vadot #define PIN_JTAG2_TDO			136
150*8ccc0d23SEmmanuel Vadot #define PIN_JTAG2_TCK			137
151*8ccc0d23SEmmanuel Vadot #define PIN_JTAG2_TDI			138
152*8ccc0d23SEmmanuel Vadot #define PIN_JTAG2_TMS			139
153*8ccc0d23SEmmanuel Vadot #define PIN_JTAG2_TRST			140
154*8ccc0d23SEmmanuel Vadot #define PIN_JTAG2_SRST			141
155*8ccc0d23SEmmanuel Vadot #define PIN_JTAG3_TDO			142
156*8ccc0d23SEmmanuel Vadot #define PIN_JTAG3_TCK			143
157*8ccc0d23SEmmanuel Vadot #define PIN_JTAG3_TDI			144
158*8ccc0d23SEmmanuel Vadot #define PIN_JTAG3_TMS			145
159*8ccc0d23SEmmanuel Vadot #define PIN_JTAG3_TRST			146
160*8ccc0d23SEmmanuel Vadot #define PIN_JTAG3_SRST			147
161*8ccc0d23SEmmanuel Vadot #define PIN_GPIO0			148
162*8ccc0d23SEmmanuel Vadot #define PIN_GPIO1			149
163*8ccc0d23SEmmanuel Vadot #define PIN_GPIO2			150
164*8ccc0d23SEmmanuel Vadot #define PIN_GPIO3			151
165*8ccc0d23SEmmanuel Vadot #define PIN_GPIO4			152
166*8ccc0d23SEmmanuel Vadot #define PIN_GPIO5			153
167*8ccc0d23SEmmanuel Vadot #define PIN_GPIO6			154
168*8ccc0d23SEmmanuel Vadot #define PIN_GPIO7			155
169*8ccc0d23SEmmanuel Vadot #define PIN_GPIO8			156
170*8ccc0d23SEmmanuel Vadot #define PIN_GPIO9			157
171*8ccc0d23SEmmanuel Vadot #define PIN_GPIO10			158
172*8ccc0d23SEmmanuel Vadot #define PIN_GPIO11			159
173*8ccc0d23SEmmanuel Vadot #define PIN_GPIO12			160
174*8ccc0d23SEmmanuel Vadot #define PIN_GPIO13			161
175*8ccc0d23SEmmanuel Vadot #define PIN_GPIO14			162
176*8ccc0d23SEmmanuel Vadot #define PIN_GPIO15			163
177*8ccc0d23SEmmanuel Vadot #define PIN_GPIO16			164
178*8ccc0d23SEmmanuel Vadot #define PIN_GPIO17			165
179*8ccc0d23SEmmanuel Vadot #define PIN_GPIO18			166
180*8ccc0d23SEmmanuel Vadot #define PIN_GPIO19			167
181*8ccc0d23SEmmanuel Vadot #define PIN_GPIO20			168
182*8ccc0d23SEmmanuel Vadot #define PIN_GPIO21			169
183*8ccc0d23SEmmanuel Vadot #define PIN_GPIO22			170
184*8ccc0d23SEmmanuel Vadot #define PIN_GPIO23			171
185*8ccc0d23SEmmanuel Vadot #define PIN_GPIO24			172
186*8ccc0d23SEmmanuel Vadot #define PIN_GPIO25			173
187*8ccc0d23SEmmanuel Vadot #define PIN_GPIO26			174
188*8ccc0d23SEmmanuel Vadot #define PIN_GPIO27			175
189*8ccc0d23SEmmanuel Vadot #define PIN_GPIO28			176
190*8ccc0d23SEmmanuel Vadot #define PIN_GPIO29			177
191*8ccc0d23SEmmanuel Vadot #define PIN_GPIO30			178
192*8ccc0d23SEmmanuel Vadot #define PIN_GPIO31			179
193*8ccc0d23SEmmanuel Vadot #define PIN_MODE_SEL0			180
194*8ccc0d23SEmmanuel Vadot #define PIN_MODE_SEL1			181
195*8ccc0d23SEmmanuel Vadot #define PIN_MODE_SEL2			182
196*8ccc0d23SEmmanuel Vadot #define PIN_BOOT_SEL0			183
197*8ccc0d23SEmmanuel Vadot #define PIN_BOOT_SEL1			184
198*8ccc0d23SEmmanuel Vadot #define PIN_BOOT_SEL2			185
199*8ccc0d23SEmmanuel Vadot #define PIN_BOOT_SEL3			186
200*8ccc0d23SEmmanuel Vadot #define PIN_BOOT_SEL4			187
201*8ccc0d23SEmmanuel Vadot #define PIN_BOOT_SEL5			188
202*8ccc0d23SEmmanuel Vadot #define PIN_BOOT_SEL6			189
203*8ccc0d23SEmmanuel Vadot #define PIN_BOOT_SEL7			190
204*8ccc0d23SEmmanuel Vadot #define PIN_MULTI_SCKT			191
205*8ccc0d23SEmmanuel Vadot #define PIN_SCKT_ID0			192
206*8ccc0d23SEmmanuel Vadot #define PIN_SCKT_ID1			193
207*8ccc0d23SEmmanuel Vadot #define PIN_PLL_CLK_IN_MAIN		194
208*8ccc0d23SEmmanuel Vadot #define PIN_PLL_CLK_IN_DDR_0		195
209*8ccc0d23SEmmanuel Vadot #define PIN_PLL_CLK_IN_DDR_1		196
210*8ccc0d23SEmmanuel Vadot #define PIN_PLL_CLK_IN_DDR_2		197
211*8ccc0d23SEmmanuel Vadot #define PIN_PLL_CLK_IN_DDR_3		198
212*8ccc0d23SEmmanuel Vadot #define PIN_XTAL_32K			199
213*8ccc0d23SEmmanuel Vadot #define PIN_SYS_RST			200
214*8ccc0d23SEmmanuel Vadot #define PIN_PWR_BUTTON			201
215*8ccc0d23SEmmanuel Vadot #define PIN_TEST_EN			202
216*8ccc0d23SEmmanuel Vadot #define PIN_TEST_MODE_MBIST		203
217*8ccc0d23SEmmanuel Vadot #define PIN_TEST_MODE_SCAN		204
218*8ccc0d23SEmmanuel Vadot #define PIN_TEST_MODE_BSD		205
219*8ccc0d23SEmmanuel Vadot #define PIN_BISR_BYP			206
220*8ccc0d23SEmmanuel Vadot 
221*8ccc0d23SEmmanuel Vadot #endif /* _DT_BINDINGS_PINCTRL_SG2044_H */
222