xref: /linux/scripts/dtc/include-prefixes/riscv/starfive/jh7110-pinfunc.h (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1e22f09e5SJianlong Huang /* SPDX-License-Identifier: GPL-2.0 OR MIT */
2e22f09e5SJianlong Huang /*
3e22f09e5SJianlong Huang  * Copyright (C) 2022 Emil Renner Berthing <kernel@esmil.dk>
4e22f09e5SJianlong Huang  * Copyright (C) 2022 StarFive Technology Co., Ltd.
5e22f09e5SJianlong Huang  */
6e22f09e5SJianlong Huang 
7e22f09e5SJianlong Huang #ifndef __JH7110_PINFUNC_H__
8e22f09e5SJianlong Huang #define __JH7110_PINFUNC_H__
9e22f09e5SJianlong Huang 
10e22f09e5SJianlong Huang /*
11e22f09e5SJianlong Huang  * mux bits:
12e22f09e5SJianlong Huang  *  | 31 - 24 | 23 - 16 | 15 - 10 |  9 - 8   |  7 - 0  |
13e22f09e5SJianlong Huang  *  |  din    |  dout   |  doen   | function | gpio nr |
14e22f09e5SJianlong Huang  *
15e22f09e5SJianlong Huang  * dout:     output signal
16e22f09e5SJianlong Huang  * doen:     output enable signal
17e22f09e5SJianlong Huang  * din:      optional input signal, 0xff = none
18e22f09e5SJianlong Huang  * function: function selector
19e22f09e5SJianlong Huang  * gpio nr:  gpio number, 0 - 63
20e22f09e5SJianlong Huang  */
21e22f09e5SJianlong Huang #define GPIOMUX(n, dout, doen, din) ( \
22e22f09e5SJianlong Huang 		(((din)  & 0xff) << 24) | \
23e22f09e5SJianlong Huang 		(((dout) & 0xff) << 16) | \
24e22f09e5SJianlong Huang 		(((doen) & 0x3f) << 10) | \
25e22f09e5SJianlong Huang 		((n) & 0x3f))
26e22f09e5SJianlong Huang 
27e22f09e5SJianlong Huang #define PINMUX(n, func) ((1 << 10) | (((func) & 0x3) << 8) | ((n) & 0xff))
28e22f09e5SJianlong Huang 
29e22f09e5SJianlong Huang /* sys_iomux dout */
30e22f09e5SJianlong Huang #define GPOUT_LOW				0
31e22f09e5SJianlong Huang #define GPOUT_HIGH				1
32e22f09e5SJianlong Huang #define GPOUT_SYS_WAVE511_UART_TX		2
33e22f09e5SJianlong Huang #define GPOUT_SYS_CAN0_STBY			3
34e22f09e5SJianlong Huang #define GPOUT_SYS_CAN0_TST_NEXT_BIT		4
35e22f09e5SJianlong Huang #define GPOUT_SYS_CAN0_TST_SAMPLE_POINT		5
36e22f09e5SJianlong Huang #define GPOUT_SYS_CAN0_TXD			6
37e22f09e5SJianlong Huang #define GPOUT_SYS_USB_DRIVE_VBUS		7
38e22f09e5SJianlong Huang #define GPOUT_SYS_QSPI_CS1			8
39e22f09e5SJianlong Huang #define GPOUT_SYS_SPDIF				9
40e22f09e5SJianlong Huang #define GPOUT_SYS_HDMI_CEC_SDA			10
41e22f09e5SJianlong Huang #define GPOUT_SYS_HDMI_DDC_SCL			11
42e22f09e5SJianlong Huang #define GPOUT_SYS_HDMI_DDC_SDA			12
43e22f09e5SJianlong Huang #define GPOUT_SYS_WATCHDOG			13
44e22f09e5SJianlong Huang #define GPOUT_SYS_I2C0_CLK			14
45e22f09e5SJianlong Huang #define GPOUT_SYS_I2C0_DATA			15
46e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO0_BACK_END_POWER		16
47e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO0_CARD_POWER_EN		17
48e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO0_CCMD_OD_PULLUP_EN	18
49e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO0_RST			19
50e22f09e5SJianlong Huang #define GPOUT_SYS_UART0_TX			20
51e22f09e5SJianlong Huang #define GPOUT_SYS_HIFI4_JTAG_TDO		21
52e22f09e5SJianlong Huang #define GPOUT_SYS_JTAG_TDO			22
53e22f09e5SJianlong Huang #define GPOUT_SYS_PDM_MCLK			23
54e22f09e5SJianlong Huang #define GPOUT_SYS_PWM_CHANNEL0			24
55e22f09e5SJianlong Huang #define GPOUT_SYS_PWM_CHANNEL1			25
56e22f09e5SJianlong Huang #define GPOUT_SYS_PWM_CHANNEL2			26
57e22f09e5SJianlong Huang #define GPOUT_SYS_PWM_CHANNEL3			27
58e22f09e5SJianlong Huang #define GPOUT_SYS_PWMDAC_LEFT			28
59e22f09e5SJianlong Huang #define GPOUT_SYS_PWMDAC_RIGHT			29
60e22f09e5SJianlong Huang #define GPOUT_SYS_SPI0_CLK			30
61e22f09e5SJianlong Huang #define GPOUT_SYS_SPI0_FSS			31
62e22f09e5SJianlong Huang #define GPOUT_SYS_SPI0_TXD			32
63e22f09e5SJianlong Huang #define GPOUT_SYS_GMAC_PHYCLK			33
64e22f09e5SJianlong Huang #define GPOUT_SYS_I2SRX_BCLK			34
65e22f09e5SJianlong Huang #define GPOUT_SYS_I2SRX_LRCK			35
66e22f09e5SJianlong Huang #define GPOUT_SYS_I2STX0_BCLK			36
67e22f09e5SJianlong Huang #define GPOUT_SYS_I2STX0_LRCK			37
68e22f09e5SJianlong Huang #define GPOUT_SYS_MCLK				38
69e22f09e5SJianlong Huang #define GPOUT_SYS_TDM_CLK			39
70e22f09e5SJianlong Huang #define GPOUT_SYS_TDM_SYNC			40
71e22f09e5SJianlong Huang #define GPOUT_SYS_TDM_TXD			41
72e22f09e5SJianlong Huang #define GPOUT_SYS_TRACE_DATA0			42
73e22f09e5SJianlong Huang #define GPOUT_SYS_TRACE_DATA1			43
74e22f09e5SJianlong Huang #define GPOUT_SYS_TRACE_DATA2			44
75e22f09e5SJianlong Huang #define GPOUT_SYS_TRACE_DATA3			45
76e22f09e5SJianlong Huang #define GPOUT_SYS_TRACE_REF			46
77e22f09e5SJianlong Huang #define GPOUT_SYS_CAN1_STBY			47
78e22f09e5SJianlong Huang #define GPOUT_SYS_CAN1_TST_NEXT_BIT		48
79e22f09e5SJianlong Huang #define GPOUT_SYS_CAN1_TST_SAMPLE_POINT		49
80e22f09e5SJianlong Huang #define GPOUT_SYS_CAN1_TXD			50
81e22f09e5SJianlong Huang #define GPOUT_SYS_I2C1_CLK			51
82e22f09e5SJianlong Huang #define GPOUT_SYS_I2C1_DATA			52
83e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO1_BACK_END_POWER		53
84e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO1_CARD_POWER_EN		54
85e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO1_CLK			55
86e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO1_CMD_OD_PULLUP_EN	56
87e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO1_CMD			57
88e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO1_DATA0			58
89e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO1_DATA1			59
90e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO1_DATA2			60
91e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO1_DATA3			61
92e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO1_DATA4			63
93e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO1_DATA5			63
94e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO1_DATA6			64
95e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO1_DATA7			65
96e22f09e5SJianlong Huang #define GPOUT_SYS_SDIO1_RST			66
97e22f09e5SJianlong Huang #define GPOUT_SYS_UART1_RTS			67
98e22f09e5SJianlong Huang #define GPOUT_SYS_UART1_TX			68
99e22f09e5SJianlong Huang #define GPOUT_SYS_I2STX1_SDO0			69
100e22f09e5SJianlong Huang #define GPOUT_SYS_I2STX1_SDO1			70
101e22f09e5SJianlong Huang #define GPOUT_SYS_I2STX1_SDO2			71
102e22f09e5SJianlong Huang #define GPOUT_SYS_I2STX1_SDO3			72
103e22f09e5SJianlong Huang #define GPOUT_SYS_SPI1_CLK			73
104e22f09e5SJianlong Huang #define GPOUT_SYS_SPI1_FSS			74
105e22f09e5SJianlong Huang #define GPOUT_SYS_SPI1_TXD			75
106e22f09e5SJianlong Huang #define GPOUT_SYS_I2C2_CLK			76
107e22f09e5SJianlong Huang #define GPOUT_SYS_I2C2_DATA			77
108e22f09e5SJianlong Huang #define GPOUT_SYS_UART2_RTS			78
109e22f09e5SJianlong Huang #define GPOUT_SYS_UART2_TX			79
110e22f09e5SJianlong Huang #define GPOUT_SYS_SPI2_CLK			80
111e22f09e5SJianlong Huang #define GPOUT_SYS_SPI2_FSS			81
112e22f09e5SJianlong Huang #define GPOUT_SYS_SPI2_TXD			82
113e22f09e5SJianlong Huang #define GPOUT_SYS_I2C3_CLK			83
114e22f09e5SJianlong Huang #define GPOUT_SYS_I2C3_DATA			84
115e22f09e5SJianlong Huang #define GPOUT_SYS_UART3_TX			85
116e22f09e5SJianlong Huang #define GPOUT_SYS_SPI3_CLK			86
117e22f09e5SJianlong Huang #define GPOUT_SYS_SPI3_FSS			87
118e22f09e5SJianlong Huang #define GPOUT_SYS_SPI3_TXD			88
119e22f09e5SJianlong Huang #define GPOUT_SYS_I2C4_CLK			89
120e22f09e5SJianlong Huang #define GPOUT_SYS_I2C4_DATA			90
121e22f09e5SJianlong Huang #define GPOUT_SYS_UART4_RTS			91
122e22f09e5SJianlong Huang #define GPOUT_SYS_UART4_TX			92
123e22f09e5SJianlong Huang #define GPOUT_SYS_SPI4_CLK			93
124e22f09e5SJianlong Huang #define GPOUT_SYS_SPI4_FSS			94
125e22f09e5SJianlong Huang #define GPOUT_SYS_SPI4_TXD			95
126e22f09e5SJianlong Huang #define GPOUT_SYS_I2C5_CLK			96
127e22f09e5SJianlong Huang #define GPOUT_SYS_I2C5_DATA			97
128e22f09e5SJianlong Huang #define GPOUT_SYS_UART5_RTS			98
129e22f09e5SJianlong Huang #define GPOUT_SYS_UART5_TX			99
130e22f09e5SJianlong Huang #define GPOUT_SYS_SPI5_CLK			100
131e22f09e5SJianlong Huang #define GPOUT_SYS_SPI5_FSS			101
132e22f09e5SJianlong Huang #define GPOUT_SYS_SPI5_TXD			102
133e22f09e5SJianlong Huang #define GPOUT_SYS_I2C6_CLK			103
134e22f09e5SJianlong Huang #define GPOUT_SYS_I2C6_DATA			104
135e22f09e5SJianlong Huang #define GPOUT_SYS_SPI6_CLK			105
136e22f09e5SJianlong Huang #define GPOUT_SYS_SPI6_FSS			106
137e22f09e5SJianlong Huang #define GPOUT_SYS_SPI6_TXD			107
138e22f09e5SJianlong Huang 
139e22f09e5SJianlong Huang /* aon_iomux dout */
140e22f09e5SJianlong Huang #define GPOUT_AON_CLK_32K_OUT			2
141e22f09e5SJianlong Huang #define GPOUT_AON_PTC0_PWM4			3
142e22f09e5SJianlong Huang #define GPOUT_AON_PTC0_PWM5			4
143e22f09e5SJianlong Huang #define GPOUT_AON_PTC0_PWM6			5
144e22f09e5SJianlong Huang #define GPOUT_AON_PTC0_PWM7			6
145e22f09e5SJianlong Huang #define GPOUT_AON_CLK_GCLK0			7
146e22f09e5SJianlong Huang #define GPOUT_AON_CLK_GCLK1			8
147e22f09e5SJianlong Huang #define GPOUT_AON_CLK_GCLK2			9
148e22f09e5SJianlong Huang 
149e22f09e5SJianlong Huang /* sys_iomux doen */
150e22f09e5SJianlong Huang #define GPOEN_ENABLE				0
151e22f09e5SJianlong Huang #define GPOEN_DISABLE				1
152e22f09e5SJianlong Huang #define GPOEN_SYS_HDMI_CEC_SDA			2
153e22f09e5SJianlong Huang #define GPOEN_SYS_HDMI_DDC_SCL			3
154e22f09e5SJianlong Huang #define GPOEN_SYS_HDMI_DDC_SDA			4
155e22f09e5SJianlong Huang #define GPOEN_SYS_I2C0_CLK			5
156e22f09e5SJianlong Huang #define GPOEN_SYS_I2C0_DATA			6
157e22f09e5SJianlong Huang #define GPOEN_SYS_HIFI4_JTAG_TDO		7
158e22f09e5SJianlong Huang #define GPOEN_SYS_JTAG_TDO			8
159e22f09e5SJianlong Huang #define GPOEN_SYS_PWM0_CHANNEL0			9
160e22f09e5SJianlong Huang #define GPOEN_SYS_PWM0_CHANNEL1			10
161e22f09e5SJianlong Huang #define GPOEN_SYS_PWM0_CHANNEL2			11
162e22f09e5SJianlong Huang #define GPOEN_SYS_PWM0_CHANNEL3			12
163e22f09e5SJianlong Huang #define GPOEN_SYS_SPI0_NSSPCTL			13
164e22f09e5SJianlong Huang #define GPOEN_SYS_SPI0_NSSP			14
165e22f09e5SJianlong Huang #define GPOEN_SYS_TDM_SYNC			15
166e22f09e5SJianlong Huang #define GPOEN_SYS_TDM_TXD			16
167e22f09e5SJianlong Huang #define GPOEN_SYS_I2C1_CLK			17
168e22f09e5SJianlong Huang #define GPOEN_SYS_I2C1_DATA			18
169e22f09e5SJianlong Huang #define GPOEN_SYS_SDIO1_CMD			19
170e22f09e5SJianlong Huang #define GPOEN_SYS_SDIO1_DATA0			20
171e22f09e5SJianlong Huang #define GPOEN_SYS_SDIO1_DATA1			21
172e22f09e5SJianlong Huang #define GPOEN_SYS_SDIO1_DATA2			22
173e22f09e5SJianlong Huang #define GPOEN_SYS_SDIO1_DATA3			23
174e22f09e5SJianlong Huang #define GPOEN_SYS_SDIO1_DATA4			24
175e22f09e5SJianlong Huang #define GPOEN_SYS_SDIO1_DATA5			25
176e22f09e5SJianlong Huang #define GPOEN_SYS_SDIO1_DATA6			26
177e22f09e5SJianlong Huang #define GPOEN_SYS_SDIO1_DATA7			27
178e22f09e5SJianlong Huang #define GPOEN_SYS_SPI1_NSSPCTL			28
179e22f09e5SJianlong Huang #define GPOEN_SYS_SPI1_NSSP			29
180e22f09e5SJianlong Huang #define GPOEN_SYS_I2C2_CLK			30
181e22f09e5SJianlong Huang #define GPOEN_SYS_I2C2_DATA			31
182e22f09e5SJianlong Huang #define GPOEN_SYS_SPI2_NSSPCTL			32
183e22f09e5SJianlong Huang #define GPOEN_SYS_SPI2_NSSP			33
184e22f09e5SJianlong Huang #define GPOEN_SYS_I2C3_CLK			34
185e22f09e5SJianlong Huang #define GPOEN_SYS_I2C3_DATA			35
186e22f09e5SJianlong Huang #define GPOEN_SYS_SPI3_NSSPCTL			36
187e22f09e5SJianlong Huang #define GPOEN_SYS_SPI3_NSSP			37
188e22f09e5SJianlong Huang #define GPOEN_SYS_I2C4_CLK			38
189e22f09e5SJianlong Huang #define GPOEN_SYS_I2C4_DATA			39
190e22f09e5SJianlong Huang #define GPOEN_SYS_SPI4_NSSPCTL			40
191e22f09e5SJianlong Huang #define GPOEN_SYS_SPI4_NSSP			41
192e22f09e5SJianlong Huang #define GPOEN_SYS_I2C5_CLK			42
193e22f09e5SJianlong Huang #define GPOEN_SYS_I2C5_DATA			43
194e22f09e5SJianlong Huang #define GPOEN_SYS_SPI5_NSSPCTL			44
195e22f09e5SJianlong Huang #define GPOEN_SYS_SPI5_NSSP			45
196e22f09e5SJianlong Huang #define GPOEN_SYS_I2C6_CLK			46
197e22f09e5SJianlong Huang #define GPOEN_SYS_I2C6_DATA			47
198e22f09e5SJianlong Huang #define GPOEN_SYS_SPI6_NSSPCTL			48
199e22f09e5SJianlong Huang #define GPOEN_SYS_SPI6_NSSP			49
200e22f09e5SJianlong Huang 
201e22f09e5SJianlong Huang /* aon_iomux doen */
202e22f09e5SJianlong Huang #define GPOEN_AON_PTC0_OE_N_4			2
203e22f09e5SJianlong Huang #define GPOEN_AON_PTC0_OE_N_5			3
204e22f09e5SJianlong Huang #define GPOEN_AON_PTC0_OE_N_6			4
205e22f09e5SJianlong Huang #define GPOEN_AON_PTC0_OE_N_7			5
206e22f09e5SJianlong Huang 
207e22f09e5SJianlong Huang /* sys_iomux gin */
208e22f09e5SJianlong Huang #define GPI_NONE				255
209e22f09e5SJianlong Huang 
210e22f09e5SJianlong Huang #define GPI_SYS_WAVE511_UART_RX			0
211e22f09e5SJianlong Huang #define GPI_SYS_CAN0_RXD			1
212e22f09e5SJianlong Huang #define GPI_SYS_USB_OVERCURRENT			2
213e22f09e5SJianlong Huang #define GPI_SYS_SPDIF				3
214e22f09e5SJianlong Huang #define GPI_SYS_JTAG_RST			4
215e22f09e5SJianlong Huang #define GPI_SYS_HDMI_CEC_SDA			5
216e22f09e5SJianlong Huang #define GPI_SYS_HDMI_DDC_SCL			6
217e22f09e5SJianlong Huang #define GPI_SYS_HDMI_DDC_SDA			7
218e22f09e5SJianlong Huang #define GPI_SYS_HDMI_HPD			8
219e22f09e5SJianlong Huang #define GPI_SYS_I2C0_CLK			9
220e22f09e5SJianlong Huang #define GPI_SYS_I2C0_DATA			10
221e22f09e5SJianlong Huang #define GPI_SYS_SDIO0_CD			11
222e22f09e5SJianlong Huang #define GPI_SYS_SDIO0_INT			12
223e22f09e5SJianlong Huang #define GPI_SYS_SDIO0_WP			13
224e22f09e5SJianlong Huang #define GPI_SYS_UART0_RX			14
225e22f09e5SJianlong Huang #define GPI_SYS_HIFI4_JTAG_TCK			15
226e22f09e5SJianlong Huang #define GPI_SYS_HIFI4_JTAG_TDI			16
227e22f09e5SJianlong Huang #define GPI_SYS_HIFI4_JTAG_TMS			17
228e22f09e5SJianlong Huang #define GPI_SYS_HIFI4_JTAG_RST			18
229e22f09e5SJianlong Huang #define GPI_SYS_JTAG_TDI			19
230e22f09e5SJianlong Huang #define GPI_SYS_JTAG_TMS			20
231e22f09e5SJianlong Huang #define GPI_SYS_PDM_DMIC0			21
232e22f09e5SJianlong Huang #define GPI_SYS_PDM_DMIC1			22
233e22f09e5SJianlong Huang #define GPI_SYS_I2SRX_SDIN0			23
234e22f09e5SJianlong Huang #define GPI_SYS_I2SRX_SDIN1			24
235e22f09e5SJianlong Huang #define GPI_SYS_I2SRX_SDIN2			25
236e22f09e5SJianlong Huang #define GPI_SYS_SPI0_CLK			26
237e22f09e5SJianlong Huang #define GPI_SYS_SPI0_FSS			27
238e22f09e5SJianlong Huang #define GPI_SYS_SPI0_RXD			28
239e22f09e5SJianlong Huang #define GPI_SYS_JTAG_TCK			29
240e22f09e5SJianlong Huang #define GPI_SYS_MCLK_EXT			30
241e22f09e5SJianlong Huang #define GPI_SYS_I2SRX_BCLK			31
242e22f09e5SJianlong Huang #define GPI_SYS_I2SRX_LRCK			32
243*4e1abae5SXingyu Wu #define GPI_SYS_I2STX1_BCLK			33
244*4e1abae5SXingyu Wu #define GPI_SYS_I2STX1_LRCK			34
245e22f09e5SJianlong Huang #define GPI_SYS_TDM_CLK				35
246e22f09e5SJianlong Huang #define GPI_SYS_TDM_RXD				36
247e22f09e5SJianlong Huang #define GPI_SYS_TDM_SYNC			37
248e22f09e5SJianlong Huang #define GPI_SYS_CAN1_RXD			38
249e22f09e5SJianlong Huang #define GPI_SYS_I2C1_CLK			39
250e22f09e5SJianlong Huang #define GPI_SYS_I2C1_DATA			40
251e22f09e5SJianlong Huang #define GPI_SYS_SDIO1_CD			41
252e22f09e5SJianlong Huang #define GPI_SYS_SDIO1_INT			42
253e22f09e5SJianlong Huang #define GPI_SYS_SDIO1_WP			43
254e22f09e5SJianlong Huang #define GPI_SYS_SDIO1_CMD			44
255e22f09e5SJianlong Huang #define GPI_SYS_SDIO1_DATA0			45
256e22f09e5SJianlong Huang #define GPI_SYS_SDIO1_DATA1			46
257e22f09e5SJianlong Huang #define GPI_SYS_SDIO1_DATA2			47
258e22f09e5SJianlong Huang #define GPI_SYS_SDIO1_DATA3			48
259e22f09e5SJianlong Huang #define GPI_SYS_SDIO1_DATA4			49
260e22f09e5SJianlong Huang #define GPI_SYS_SDIO1_DATA5			50
261e22f09e5SJianlong Huang #define GPI_SYS_SDIO1_DATA6			51
262e22f09e5SJianlong Huang #define GPI_SYS_SDIO1_DATA7			52
263e22f09e5SJianlong Huang #define GPI_SYS_SDIO1_STRB			53
264e22f09e5SJianlong Huang #define GPI_SYS_UART1_CTS			54
265e22f09e5SJianlong Huang #define GPI_SYS_UART1_RX			55
266e22f09e5SJianlong Huang #define GPI_SYS_SPI1_CLK			56
267e22f09e5SJianlong Huang #define GPI_SYS_SPI1_FSS			57
268e22f09e5SJianlong Huang #define GPI_SYS_SPI1_RXD			58
269e22f09e5SJianlong Huang #define GPI_SYS_I2C2_CLK			59
270e22f09e5SJianlong Huang #define GPI_SYS_I2C2_DATA			60
271e22f09e5SJianlong Huang #define GPI_SYS_UART2_CTS			61
272e22f09e5SJianlong Huang #define GPI_SYS_UART2_RX			62
273e22f09e5SJianlong Huang #define GPI_SYS_SPI2_CLK			63
274e22f09e5SJianlong Huang #define GPI_SYS_SPI2_FSS			64
275e22f09e5SJianlong Huang #define GPI_SYS_SPI2_RXD			65
276e22f09e5SJianlong Huang #define GPI_SYS_I2C3_CLK			66
277e22f09e5SJianlong Huang #define GPI_SYS_I2C3_DATA			67
278e22f09e5SJianlong Huang #define GPI_SYS_UART3_RX			68
279e22f09e5SJianlong Huang #define GPI_SYS_SPI3_CLK			69
280e22f09e5SJianlong Huang #define GPI_SYS_SPI3_FSS			70
281e22f09e5SJianlong Huang #define GPI_SYS_SPI3_RXD			71
282e22f09e5SJianlong Huang #define GPI_SYS_I2C4_CLK			72
283e22f09e5SJianlong Huang #define GPI_SYS_I2C4_DATA			73
284e22f09e5SJianlong Huang #define GPI_SYS_UART4_CTS			74
285e22f09e5SJianlong Huang #define GPI_SYS_UART4_RX			75
286e22f09e5SJianlong Huang #define GPI_SYS_SPI4_CLK			76
287e22f09e5SJianlong Huang #define GPI_SYS_SPI4_FSS			77
288e22f09e5SJianlong Huang #define GPI_SYS_SPI4_RXD			78
289e22f09e5SJianlong Huang #define GPI_SYS_I2C5_CLK			79
290e22f09e5SJianlong Huang #define GPI_SYS_I2C5_DATA			80
291e22f09e5SJianlong Huang #define GPI_SYS_UART5_CTS			81
292e22f09e5SJianlong Huang #define GPI_SYS_UART5_RX			82
293e22f09e5SJianlong Huang #define GPI_SYS_SPI5_CLK			83
294e22f09e5SJianlong Huang #define GPI_SYS_SPI5_FSS			84
295e22f09e5SJianlong Huang #define GPI_SYS_SPI5_RXD			85
296e22f09e5SJianlong Huang #define GPI_SYS_I2C6_CLK			86
297e22f09e5SJianlong Huang #define GPI_SYS_I2C6_DATA			87
298e22f09e5SJianlong Huang #define GPI_SYS_SPI6_CLK			88
299e22f09e5SJianlong Huang #define GPI_SYS_SPI6_FSS			89
300e22f09e5SJianlong Huang #define GPI_SYS_SPI6_RXD			90
301e22f09e5SJianlong Huang 
302e22f09e5SJianlong Huang /* aon_iomux gin */
303e22f09e5SJianlong Huang #define GPI_AON_PMU_GPIO_WAKEUP_0		0
304e22f09e5SJianlong Huang #define GPI_AON_PMU_GPIO_WAKEUP_1		1
305e22f09e5SJianlong Huang #define GPI_AON_PMU_GPIO_WAKEUP_2		2
306e22f09e5SJianlong Huang #define GPI_AON_PMU_GPIO_WAKEUP_3		3
307e22f09e5SJianlong Huang 
308e22f09e5SJianlong Huang #endif
309