/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
 * Copyright (c) 2019 Amlogic, Inc. All rights reserved.
 */

#ifndef __DT_BINDINGS_MESON_T5W_GPIO_H
#define __DT_BINDINGS_MESON_T5W_GPIO_H

/* Analog Bank */
#define	CDAC_IOUT		0
#define	CVBS0			1
#define	CVBS1			2

/* AO Bank */
#define	GPIOD_0			0
#define	GPIOD_1			1
#define	GPIOD_2			2
#define	GPIOD_3			3
#define	GPIOD_4			4
#define	GPIOD_5			5
#define	GPIOD_6			6
#define	GPIOD_7			7
#define	GPIOD_8			8
#define	GPIOD_9			9
#define	GPIOD_10		10
#define	GPIOE_0			11
#define	GPIOE_1			12

/* EE Bank */
#define	GPIOB_0			0
#define	GPIOB_1			1
#define	GPIOB_2			2
#define	GPIOB_3			3
#define	GPIOB_4			4
#define	GPIOB_5			5
#define	GPIOB_6			6
#define	GPIOB_7			7
#define	GPIOB_8			8
#define	GPIOB_9			9
#define	GPIOB_10		10
#define	GPIOB_11		11
#define	GPIOB_12		12
#define	GPIOB_13		13

#define	GPIOW_0			14
#define	GPIOW_1			15
#define	GPIOW_2			16
#define	GPIOW_3			17
#define	GPIOW_4			18
#define	GPIOW_5			19
#define	GPIOW_6			20
#define	GPIOW_7			21
#define	GPIOW_8			22
#define	GPIOW_9			23
#define	GPIOW_10		24
#define	GPIOW_11		25
#define	GPIOW_12		26

#define	GPIOZ_0			27
#define	GPIOZ_1			28
#define	GPIOZ_2			29
#define	GPIOZ_3			30
#define	GPIOZ_4			31
#define	GPIOZ_5			32
#define	GPIOZ_6			33
#define	GPIOZ_7			34
#define	GPIOZ_8			35
#define	GPIOZ_9			36
#define	GPIOZ_10		37
#define	GPIOZ_11		38
#define	GPIOZ_12		39
#define	GPIOZ_13		40
#define	GPIOZ_14		41
#define	GPIOZ_15		42
#define	GPIOZ_16		43
#define	GPIOZ_17		44
#define	GPIOZ_18		45
#define	GPIOZ_19		46

#define	GPIOH_0			47
#define	GPIOH_1			48
#define	GPIOH_2			49
#define	GPIOH_3			50
#define	GPIOH_4			51
#define	GPIOH_5			52
#define	GPIOH_6			53
#define	GPIOH_7			54
#define	GPIOH_8			55
#define	GPIOH_9			56
#define	GPIOH_10		57
#define	GPIOH_11		58
#define	GPIOH_12		59
#define	GPIOH_13		60
#define	GPIOH_14		61
#define	GPIOH_15		62
#define	GPIOH_16		63
#define	GPIOH_17		64
#define	GPIOH_18		65
#define	GPIOH_19		66
#define	GPIOH_20		67
#define	GPIOH_21		68
#define	GPIOH_22		69
#define	GPIOH_23		70
#define	GPIOH_24		71
#define	GPIOH_25		72

#define	GPIOM_0			73
#define	GPIOM_1			74
#define	GPIOM_2			75
#define	GPIOM_3			76
#define	GPIOM_4			77
#define	GPIOM_5			78
#define	GPIOM_6			79
#define	GPIOM_7			80
#define	GPIOM_8			81
#define	GPIOM_9			82
#define	GPIOM_10		83
#define	GPIOM_11		84
#define	GPIOM_12		85
#define	GPIOM_13		86
#define	GPIOM_14		87
#define	GPIOM_15		88
#define	GPIOM_16		89
#define	GPIOM_17		90
#define	GPIOM_18		91
#define	GPIOM_19		92
#define	GPIOM_20		93
#define	GPIOM_21		94
#define	GPIOM_22		95
#define	GPIOM_23		96
#define	GPIOM_24		97
#define	GPIOM_25		98
#define	GPIOM_26		99
#define	GPIOM_27		100
#define	GPIOM_28		101
#define	GPIOM_29		102

#define GPIOC_0			103
#define GPIOC_1			104
#define GPIOC_2			105
#define GPIOC_3			106
#define GPIOC_4			107
#define GPIOC_5			108
#define GPIOC_6			109
#define GPIOC_7			110
#define GPIOC_8			111
#define GPIOC_9			112
#define GPIOC_10		113
#define GPIOC_11		114
#define GPIOC_12		115
#define GPIOC_13		116
#define GPIOC_14		117

#endif
