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