xref: /linux/include/dt-bindings/pinctrl/pinctrl-starfive-jh7100.h (revision ba99b756da178aa8c608c4499a91074466050c10)
1*ba99b756SJianlong Huang /* SPDX-License-Identifier: GPL-2.0 OR MIT */
2*ba99b756SJianlong Huang /*
3*ba99b756SJianlong Huang  * Copyright (C) 2021 Emil Renner Berthing <kernel@esmil.dk>
4*ba99b756SJianlong Huang  */
5*ba99b756SJianlong Huang 
6*ba99b756SJianlong Huang #ifndef __DT_BINDINGS_PINCTRL_STARFIVE_JH7100_H__
7*ba99b756SJianlong Huang #define __DT_BINDINGS_PINCTRL_STARFIVE_JH7100_H__
8*ba99b756SJianlong Huang 
9*ba99b756SJianlong Huang #define PAD_GPIO_OFFSET		0
10*ba99b756SJianlong Huang #define PAD_FUNC_SHARE_OFFSET	64
11*ba99b756SJianlong Huang #define PAD_GPIO(x)		(PAD_GPIO_OFFSET + (x))
12*ba99b756SJianlong Huang #define PAD_FUNC_SHARE(x)	(PAD_FUNC_SHARE_OFFSET + (x))
13*ba99b756SJianlong Huang 
14*ba99b756SJianlong Huang /*
15*ba99b756SJianlong Huang  * GPIOMUX bits:
16*ba99b756SJianlong Huang  *  | 31 - 24 | 23 - 16 | 15 - 8 |     7    |     6    |  5 - 0  |
17*ba99b756SJianlong Huang  *  |  dout   |  doen   |  din   | dout rev | doen rev | gpio nr |
18*ba99b756SJianlong Huang  *
19*ba99b756SJianlong Huang  * dout:     output signal
20*ba99b756SJianlong Huang  * doen:     output enable signal
21*ba99b756SJianlong Huang  * din:      optional input signal, 0xff = none
22*ba99b756SJianlong Huang  * dout rev: output signal reverse bit
23*ba99b756SJianlong Huang  * doen rev: output enable signal reverse bit
24*ba99b756SJianlong Huang  * gpio nr:  gpio number, 0 - 63
25*ba99b756SJianlong Huang  */
26*ba99b756SJianlong Huang #define GPIOMUX(n, dout, doen, din) ( \
27*ba99b756SJianlong Huang 		(((dout) & 0x80000000) >> (31 - 7)) | (((dout) & 0xff) << 24) | \
28*ba99b756SJianlong Huang 		(((doen) & 0x80000000) >> (31 - 6)) | (((doen) & 0xff) << 16) | \
29*ba99b756SJianlong Huang 		(((din) & 0xff) << 8) | \
30*ba99b756SJianlong Huang 		((n) & 0x3f))
31*ba99b756SJianlong Huang 
32*ba99b756SJianlong Huang #define GPO_REVERSE				0x80000000
33*ba99b756SJianlong Huang 
34*ba99b756SJianlong Huang #define GPO_LOW					0
35*ba99b756SJianlong Huang #define GPO_HIGH				1
36*ba99b756SJianlong Huang #define GPO_ENABLE				0
37*ba99b756SJianlong Huang #define GPO_DISABLE				1
38*ba99b756SJianlong Huang #define GPO_CLK_GMAC_PAPHYREF			2
39*ba99b756SJianlong Huang #define GPO_JTAG_TDO				3
40*ba99b756SJianlong Huang #define GPO_JTAG_TDO_OEN			4
41*ba99b756SJianlong Huang #define GPO_DMIC_CLK_OUT			5
42*ba99b756SJianlong Huang #define GPO_DSP_JTDOEN_PAD			6
43*ba99b756SJianlong Huang #define GPO_DSP_JTDO_PAD			7
44*ba99b756SJianlong Huang #define GPO_I2C0_PAD_SCK_OE			8
45*ba99b756SJianlong Huang #define GPO_I2C0_PAD_SCK_OEN			(GPO_I2C0_PAD_SCK_OE | GPO_REVERSE)
46*ba99b756SJianlong Huang #define GPO_I2C0_PAD_SDA_OE			9
47*ba99b756SJianlong Huang #define GPO_I2C0_PAD_SDA_OEN			(GPO_I2C0_PAD_SDA_OE | GPO_REVERSE)
48*ba99b756SJianlong Huang #define GPO_I2C1_PAD_SCK_OE			10
49*ba99b756SJianlong Huang #define GPO_I2C1_PAD_SCK_OEN			(GPO_I2C1_PAD_SCK_OE | GPO_REVERSE)
50*ba99b756SJianlong Huang #define GPO_I2C1_PAD_SDA_OE			11
51*ba99b756SJianlong Huang #define GPO_I2C1_PAD_SDA_OEN			(GPO_I2C1_PAD_SDA_OE | GPO_REVERSE)
52*ba99b756SJianlong Huang #define GPO_I2C2_PAD_SCK_OE			12
53*ba99b756SJianlong Huang #define GPO_I2C2_PAD_SCK_OEN			(GPO_I2C2_PAD_SCK_OE | GPO_REVERSE)
54*ba99b756SJianlong Huang #define GPO_I2C2_PAD_SDA_OE			13
55*ba99b756SJianlong Huang #define GPO_I2C2_PAD_SDA_OEN			(GPO_I2C2_PAD_SDA_OE | GPO_REVERSE)
56*ba99b756SJianlong Huang #define GPO_I2C3_PAD_SCK_OE			14
57*ba99b756SJianlong Huang #define GPO_I2C3_PAD_SCK_OEN			(GPO_I2C3_PAD_SCK_OE | GPO_REVERSE)
58*ba99b756SJianlong Huang #define GPO_I2C3_PAD_SDA_OE			15
59*ba99b756SJianlong Huang #define GPO_I2C3_PAD_SDA_OEN			(GPO_I2C3_PAD_SDA_OE | GPO_REVERSE)
60*ba99b756SJianlong Huang #define GPO_I2SRX_BCLK_OUT			16
61*ba99b756SJianlong Huang #define GPO_I2SRX_BCLK_OUT_OEN			17
62*ba99b756SJianlong Huang #define GPO_I2SRX_LRCK_OUT			18
63*ba99b756SJianlong Huang #define GPO_I2SRX_LRCK_OUT_OEN			19
64*ba99b756SJianlong Huang #define GPO_I2SRX_MCLK_OUT			20
65*ba99b756SJianlong Huang #define GPO_I2STX_BCLK_OUT			21
66*ba99b756SJianlong Huang #define GPO_I2STX_BCLK_OUT_OEN			22
67*ba99b756SJianlong Huang #define GPO_I2STX_LRCK_OUT			23
68*ba99b756SJianlong Huang #define GPO_I2STX_LRCK_OUT_OEN			24
69*ba99b756SJianlong Huang #define GPO_I2STX_MCLK_OUT			25
70*ba99b756SJianlong Huang #define GPO_I2STX_SDOUT0			26
71*ba99b756SJianlong Huang #define GPO_I2STX_SDOUT1			27
72*ba99b756SJianlong Huang #define GPO_LCD_PAD_CSM_N			28
73*ba99b756SJianlong Huang #define GPO_PWM_PAD_OE_N_BIT0			29
74*ba99b756SJianlong Huang #define GPO_PWM_PAD_OE_N_BIT1			30
75*ba99b756SJianlong Huang #define GPO_PWM_PAD_OE_N_BIT2			31
76*ba99b756SJianlong Huang #define GPO_PWM_PAD_OE_N_BIT3			32
77*ba99b756SJianlong Huang #define GPO_PWM_PAD_OE_N_BIT4			33
78*ba99b756SJianlong Huang #define GPO_PWM_PAD_OE_N_BIT5			34
79*ba99b756SJianlong Huang #define GPO_PWM_PAD_OE_N_BIT6			35
80*ba99b756SJianlong Huang #define GPO_PWM_PAD_OE_N_BIT7			36
81*ba99b756SJianlong Huang #define GPO_PWM_PAD_OUT_BIT0			37
82*ba99b756SJianlong Huang #define GPO_PWM_PAD_OUT_BIT1			38
83*ba99b756SJianlong Huang #define GPO_PWM_PAD_OUT_BIT2			39
84*ba99b756SJianlong Huang #define GPO_PWM_PAD_OUT_BIT3			40
85*ba99b756SJianlong Huang #define GPO_PWM_PAD_OUT_BIT4			41
86*ba99b756SJianlong Huang #define GPO_PWM_PAD_OUT_BIT5			42
87*ba99b756SJianlong Huang #define GPO_PWM_PAD_OUT_BIT6			43
88*ba99b756SJianlong Huang #define GPO_PWM_PAD_OUT_BIT7			44
89*ba99b756SJianlong Huang #define GPO_PWMDAC_LEFT_OUT			45
90*ba99b756SJianlong Huang #define GPO_PWMDAC_RIGHT_OUT			46
91*ba99b756SJianlong Huang #define GPO_QSPI_CSN1_OUT			47
92*ba99b756SJianlong Huang #define GPO_QSPI_CSN2_OUT			48
93*ba99b756SJianlong Huang #define GPO_QSPI_CSN3_OUT			49
94*ba99b756SJianlong Huang #define GPO_REGISTER23_SCFG_CMSENSOR_RST0	50
95*ba99b756SJianlong Huang #define GPO_REGISTER23_SCFG_CMSENSOR_RST1	51
96*ba99b756SJianlong Huang #define GPO_REGISTER32_SCFG_GMAC_PHY_RSTN	52
97*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CARD_POWER_EN		53
98*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CCLK_OUT			54
99*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CCMD_OE			55
100*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CCMD_OEN			(GPO_SDIO0_PAD_CCMD_OE | GPO_REVERSE)
101*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CCMD_OUT			56
102*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OE_BIT0		57
103*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OEN_BIT0		(GPO_SDIO0_PAD_CDATA_OE_BIT0 | GPO_REVERSE)
104*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OE_BIT1		58
105*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OEN_BIT1		(GPO_SDIO0_PAD_CDATA_OE_BIT1 | GPO_REVERSE)
106*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OE_BIT2		59
107*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OEN_BIT2		(GPO_SDIO0_PAD_CDATA_OE_BIT2 | GPO_REVERSE)
108*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OE_BIT3		60
109*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OEN_BIT3		(GPO_SDIO0_PAD_CDATA_OE_BIT3 | GPO_REVERSE)
110*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OE_BIT4		61
111*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OEN_BIT4		(GPO_SDIO0_PAD_CDATA_OE_BIT4 | GPO_REVERSE)
112*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OE_BIT5		62
113*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OEN_BIT5		(GPO_SDIO0_PAD_CDATA_OE_BIT5 | GPO_REVERSE)
114*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OE_BIT6		63
115*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OEN_BIT6		(GPO_SDIO0_PAD_CDATA_OE_BIT6 | GPO_REVERSE)
116*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OE_BIT7		64
117*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OEN_BIT7		(GPO_SDIO0_PAD_CDATA_OE_BIT7 | GPO_REVERSE)
118*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OUT_BIT0		65
119*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OUT_BIT1		66
120*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OUT_BIT2		67
121*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OUT_BIT3		68
122*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OUT_BIT4		69
123*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OUT_BIT5		70
124*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OUT_BIT6		71
125*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_CDATA_OUT_BIT7		72
126*ba99b756SJianlong Huang #define GPO_SDIO0_PAD_RST_N			73
127*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CARD_POWER_EN		74
128*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CCLK_OUT			75
129*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CCMD_OE			76
130*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CCMD_OEN			(GPO_SDIO1_PAD_CCMD_OE | GPO_REVERSE)
131*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CCMD_OUT			77
132*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OE_BIT0		78
133*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OEN_BIT0		(GPO_SDIO1_PAD_CDATA_OE_BIT0 | GPO_REVERSE)
134*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OE_BIT1		79
135*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OEN_BIT1		(GPO_SDIO1_PAD_CDATA_OE_BIT1 | GPO_REVERSE)
136*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OE_BIT2		80
137*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OEN_BIT2		(GPO_SDIO1_PAD_CDATA_OE_BIT2 | GPO_REVERSE)
138*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OE_BIT3		81
139*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OEN_BIT3		(GPO_SDIO1_PAD_CDATA_OE_BIT3 | GPO_REVERSE)
140*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OE_BIT4		82
141*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OEN_BIT4		(GPO_SDIO1_PAD_CDATA_OE_BIT4 | GPO_REVERSE)
142*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OE_BIT5		83
143*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OEN_BIT5		(GPO_SDIO1_PAD_CDATA_OE_BIT5 | GPO_REVERSE)
144*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OE_BIT6		84
145*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OEN_BIT6		(GPO_SDIO1_PAD_CDATA_OE_BIT6 | GPO_REVERSE)
146*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OE_BIT7		85
147*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OEN_BIT7		(GPO_SDIO1_PAD_CDATA_OE_BIT7 | GPO_REVERSE)
148*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OUT_BIT0		86
149*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OUT_BIT1		87
150*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OUT_BIT2		88
151*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OUT_BIT3		89
152*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OUT_BIT4		90
153*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OUT_BIT5		91
154*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OUT_BIT6		92
155*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_CDATA_OUT_BIT7		93
156*ba99b756SJianlong Huang #define GPO_SDIO1_PAD_RST_N			94
157*ba99b756SJianlong Huang #define GPO_SPDIF_TX_SDOUT			95
158*ba99b756SJianlong Huang #define GPO_SPDIF_TX_SDOUT_OEN			96
159*ba99b756SJianlong Huang #define GPO_SPI0_PAD_OE_N			97
160*ba99b756SJianlong Huang #define GPO_SPI0_PAD_SCK_OUT			98
161*ba99b756SJianlong Huang #define GPO_SPI0_PAD_SS_0_N			99
162*ba99b756SJianlong Huang #define GPO_SPI0_PAD_SS_1_N			100
163*ba99b756SJianlong Huang #define GPO_SPI0_PAD_TXD			101
164*ba99b756SJianlong Huang #define GPO_SPI1_PAD_OE_N			102
165*ba99b756SJianlong Huang #define GPO_SPI1_PAD_SCK_OUT			103
166*ba99b756SJianlong Huang #define GPO_SPI1_PAD_SS_0_N			104
167*ba99b756SJianlong Huang #define GPO_SPI1_PAD_SS_1_N			105
168*ba99b756SJianlong Huang #define GPO_SPI1_PAD_TXD			106
169*ba99b756SJianlong Huang #define GPO_SPI2_PAD_OE_N			107
170*ba99b756SJianlong Huang #define GPO_SPI2_PAD_SCK_OUT			108
171*ba99b756SJianlong Huang #define GPO_SPI2_PAD_SS_0_N			109
172*ba99b756SJianlong Huang #define GPO_SPI2_PAD_SS_1_N			110
173*ba99b756SJianlong Huang #define GPO_SPI2_PAD_TXD			111
174*ba99b756SJianlong Huang #define GPO_SPI2AHB_PAD_OE_N_BIT0		112
175*ba99b756SJianlong Huang #define GPO_SPI2AHB_PAD_OE_N_BIT1		113
176*ba99b756SJianlong Huang #define GPO_SPI2AHB_PAD_OE_N_BIT2		114
177*ba99b756SJianlong Huang #define GPO_SPI2AHB_PAD_OE_N_BIT3		115
178*ba99b756SJianlong Huang #define GPO_SPI2AHB_PAD_TXD_BIT0		116
179*ba99b756SJianlong Huang #define GPO_SPI2AHB_PAD_TXD_BIT1		117
180*ba99b756SJianlong Huang #define GPO_SPI2AHB_PAD_TXD_BIT2		118
181*ba99b756SJianlong Huang #define GPO_SPI2AHB_PAD_TXD_BIT3		119
182*ba99b756SJianlong Huang #define GPO_SPI3_PAD_OE_N			120
183*ba99b756SJianlong Huang #define GPO_SPI3_PAD_SCK_OUT			121
184*ba99b756SJianlong Huang #define GPO_SPI3_PAD_SS_0_N			122
185*ba99b756SJianlong Huang #define GPO_SPI3_PAD_SS_1_N			123
186*ba99b756SJianlong Huang #define GPO_SPI3_PAD_TXD			124
187*ba99b756SJianlong Huang #define GPO_UART0_PAD_DTRN			125
188*ba99b756SJianlong Huang #define GPO_UART0_PAD_RTSN			126
189*ba99b756SJianlong Huang #define GPO_UART0_PAD_SOUT			127
190*ba99b756SJianlong Huang #define GPO_UART1_PAD_SOUT			128
191*ba99b756SJianlong Huang #define GPO_UART2_PAD_DTR_N			129
192*ba99b756SJianlong Huang #define GPO_UART2_PAD_RTS_N			130
193*ba99b756SJianlong Huang #define GPO_UART2_PAD_SOUT			131
194*ba99b756SJianlong Huang #define GPO_UART3_PAD_SOUT			132
195*ba99b756SJianlong Huang #define GPO_USB_DRV_BUS				133
196*ba99b756SJianlong Huang 
197*ba99b756SJianlong Huang #define GPI_CPU_JTAG_TCK			0
198*ba99b756SJianlong Huang #define GPI_CPU_JTAG_TDI			1
199*ba99b756SJianlong Huang #define GPI_CPU_JTAG_TMS			2
200*ba99b756SJianlong Huang #define GPI_CPU_JTAG_TRST			3
201*ba99b756SJianlong Huang #define GPI_DMIC_SDIN_BIT0			4
202*ba99b756SJianlong Huang #define GPI_DMIC_SDIN_BIT1			5
203*ba99b756SJianlong Huang #define GPI_DSP_JTCK_PAD			6
204*ba99b756SJianlong Huang #define GPI_DSP_JTDI_PAD			7
205*ba99b756SJianlong Huang #define GPI_DSP_JTMS_PAD			8
206*ba99b756SJianlong Huang #define GPI_DSP_TRST_PAD			9
207*ba99b756SJianlong Huang #define GPI_I2C0_PAD_SCK_IN			10
208*ba99b756SJianlong Huang #define GPI_I2C0_PAD_SDA_IN			11
209*ba99b756SJianlong Huang #define GPI_I2C1_PAD_SCK_IN			12
210*ba99b756SJianlong Huang #define GPI_I2C1_PAD_SDA_IN			13
211*ba99b756SJianlong Huang #define GPI_I2C2_PAD_SCK_IN			14
212*ba99b756SJianlong Huang #define GPI_I2C2_PAD_SDA_IN			15
213*ba99b756SJianlong Huang #define GPI_I2C3_PAD_SCK_IN			16
214*ba99b756SJianlong Huang #define GPI_I2C3_PAD_SDA_IN			17
215*ba99b756SJianlong Huang #define GPI_I2SRX_BCLK_IN			18
216*ba99b756SJianlong Huang #define GPI_I2SRX_LRCK_IN			19
217*ba99b756SJianlong Huang #define GPI_I2SRX_SDIN_BIT0			20
218*ba99b756SJianlong Huang #define GPI_I2SRX_SDIN_BIT1			21
219*ba99b756SJianlong Huang #define GPI_I2SRX_SDIN_BIT2			22
220*ba99b756SJianlong Huang #define GPI_I2STX_BCLK_IN			23
221*ba99b756SJianlong Huang #define GPI_I2STX_LRCK_IN			24
222*ba99b756SJianlong Huang #define GPI_SDIO0_PAD_CARD_DETECT_N		25
223*ba99b756SJianlong Huang #define GPI_SDIO0_PAD_CARD_WRITE_PRT		26
224*ba99b756SJianlong Huang #define GPI_SDIO0_PAD_CCMD_IN			27
225*ba99b756SJianlong Huang #define GPI_SDIO0_PAD_CDATA_IN_BIT0		28
226*ba99b756SJianlong Huang #define GPI_SDIO0_PAD_CDATA_IN_BIT1		29
227*ba99b756SJianlong Huang #define GPI_SDIO0_PAD_CDATA_IN_BIT2		30
228*ba99b756SJianlong Huang #define GPI_SDIO0_PAD_CDATA_IN_BIT3		31
229*ba99b756SJianlong Huang #define GPI_SDIO0_PAD_CDATA_IN_BIT4		32
230*ba99b756SJianlong Huang #define GPI_SDIO0_PAD_CDATA_IN_BIT5		33
231*ba99b756SJianlong Huang #define GPI_SDIO0_PAD_CDATA_IN_BIT6		34
232*ba99b756SJianlong Huang #define GPI_SDIO0_PAD_CDATA_IN_BIT7		35
233*ba99b756SJianlong Huang #define GPI_SDIO1_PAD_CARD_DETECT_N		36
234*ba99b756SJianlong Huang #define GPI_SDIO1_PAD_CARD_WRITE_PRT		37
235*ba99b756SJianlong Huang #define GPI_SDIO1_PAD_CCMD_IN			38
236*ba99b756SJianlong Huang #define GPI_SDIO1_PAD_CDATA_IN_BIT0		39
237*ba99b756SJianlong Huang #define GPI_SDIO1_PAD_CDATA_IN_BIT1		40
238*ba99b756SJianlong Huang #define GPI_SDIO1_PAD_CDATA_IN_BIT2		41
239*ba99b756SJianlong Huang #define GPI_SDIO1_PAD_CDATA_IN_BIT3		42
240*ba99b756SJianlong Huang #define GPI_SDIO1_PAD_CDATA_IN_BIT4		43
241*ba99b756SJianlong Huang #define GPI_SDIO1_PAD_CDATA_IN_BIT5		44
242*ba99b756SJianlong Huang #define GPI_SDIO1_PAD_CDATA_IN_BIT6		45
243*ba99b756SJianlong Huang #define GPI_SDIO1_PAD_CDATA_IN_BIT7		46
244*ba99b756SJianlong Huang #define GPI_SPDIF_RX_SDIN			47
245*ba99b756SJianlong Huang #define GPI_SPI0_PAD_RXD			48
246*ba99b756SJianlong Huang #define GPI_SPI0_PAD_SS_IN_N			49
247*ba99b756SJianlong Huang #define GPI_SPI1_PAD_RXD			50
248*ba99b756SJianlong Huang #define GPI_SPI1_PAD_SS_IN_N			51
249*ba99b756SJianlong Huang #define GPI_SPI2_PAD_RXD			52
250*ba99b756SJianlong Huang #define GPI_SPI2_PAD_SS_IN_N			53
251*ba99b756SJianlong Huang #define GPI_SPI2AHB_PAD_RXD_BIT0		54
252*ba99b756SJianlong Huang #define GPI_SPI2AHB_PAD_RXD_BIT1		55
253*ba99b756SJianlong Huang #define GPI_SPI2AHB_PAD_RXD_BIT2		56
254*ba99b756SJianlong Huang #define GPI_SPI2AHB_PAD_RXD_BIT3		57
255*ba99b756SJianlong Huang #define GPI_SPI2AHB_PAD_SS_N			58
256*ba99b756SJianlong Huang #define GPI_SPI2AHB_SLV_SCLKIN			59
257*ba99b756SJianlong Huang #define GPI_SPI3_PAD_RXD			60
258*ba99b756SJianlong Huang #define GPI_SPI3_PAD_SS_IN_N			61
259*ba99b756SJianlong Huang #define GPI_UART0_PAD_CTSN			62
260*ba99b756SJianlong Huang #define GPI_UART0_PAD_DCDN			63
261*ba99b756SJianlong Huang #define GPI_UART0_PAD_DSRN			64
262*ba99b756SJianlong Huang #define GPI_UART0_PAD_RIN			65
263*ba99b756SJianlong Huang #define GPI_UART0_PAD_SIN			66
264*ba99b756SJianlong Huang #define GPI_UART1_PAD_SIN			67
265*ba99b756SJianlong Huang #define GPI_UART2_PAD_CTS_N			68
266*ba99b756SJianlong Huang #define GPI_UART2_PAD_DCD_N			69
267*ba99b756SJianlong Huang #define GPI_UART2_PAD_DSR_N			70
268*ba99b756SJianlong Huang #define GPI_UART2_PAD_RI_N			71
269*ba99b756SJianlong Huang #define GPI_UART2_PAD_SIN			72
270*ba99b756SJianlong Huang #define GPI_UART3_PAD_SIN			73
271*ba99b756SJianlong Huang #define GPI_USB_OVER_CURRENT			74
272*ba99b756SJianlong Huang 
273*ba99b756SJianlong Huang #define GPI_NONE				0xff
274*ba99b756SJianlong Huang 
275*ba99b756SJianlong Huang #endif /* __DT_BINDINGS_PINCTRL_STARFIVE_JH7100_H__ */
276