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

#ifndef _DT_BINDINGS_MESON_T3_GPIO_H
#define _DT_BINDINGS_MESON_T3_GPIO_H

#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	GPIOC_0		14
#define	GPIOC_1		15
#define	GPIOC_2		16
#define	GPIOC_3		17
#define	GPIOC_4		18
#define	GPIOC_5		19
#define	GPIOC_6		20
#define	GPIOC_7		21
#define	GPIOC_8		22
#define	GPIOC_9		23
#define	GPIOC_10	24
#define	GPIOC_11	25
#define	GPIOC_12	26
#define	GPIOC_13	27
#define	GPIOC_14	28
#define	GPIOC_15	29

#define	GPIOW_0		30
#define	GPIOW_1		31
#define	GPIOW_2		32
#define	GPIOW_3		33
#define	GPIOW_4		34
#define	GPIOW_5		35
#define	GPIOW_6		36
#define	GPIOW_7		37
#define	GPIOW_8		38
#define	GPIOW_9		39
#define	GPIOW_10	40
#define	GPIOW_11	41
#define	GPIOW_12	42

#define	GPIOD_0		43
#define	GPIOD_1		44
#define	GPIOD_2		45
#define	GPIOD_3		46
#define	GPIOD_4		47
#define	GPIOD_5		48
#define	GPIOD_6		49
#define	GPIOD_7		50
#define	GPIOD_8		51
#define	GPIOD_9		52
#define	GPIOD_10	53

#define	GPIOE_0		54
#define	GPIOE_1		55

#define	GPIOZ_0		56
#define	GPIOZ_1		57
#define	GPIOZ_2		58
#define	GPIOZ_3		59
#define	GPIOZ_4		60
#define	GPIOZ_5		61
#define	GPIOZ_6		62
#define	GPIOZ_7		63
#define	GPIOZ_8		64
#define	GPIOZ_9		65
#define	GPIOZ_10	66
#define	GPIOZ_11	67
#define	GPIOZ_12	68
#define	GPIOZ_13	69
#define	GPIOZ_14	70
#define	GPIOZ_15	71
#define	GPIOZ_16	72
#define	GPIOZ_17	73
#define	GPIOZ_18	74
#define	GPIOZ_19	75

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

#define	GPIOH_0		107
#define	GPIOH_1		108
#define	GPIOH_2		109
#define	GPIOH_3		110
#define	GPIOH_4		111
#define	GPIOH_5		112
#define	GPIOH_6		113
#define	GPIOH_7		114
#define	GPIOH_8		115
#define	GPIOH_9		116
#define	GPIOH_10	117
#define	GPIOH_11	118
#define	GPIOH_12	119
#define	GPIOH_13	120
#define	GPIOH_14	121
#define	GPIOH_15	122
#define	GPIOH_16	123
#define	GPIOH_17	124
#define	GPIOH_18	125
#define	GPIOH_19	126
#define	GPIOH_20	127
#define	GPIOH_21	128
#define	GPIOH_22	129
#define	GPIOH_23	130
#define	GPIOH_24	131
#define	GPIOH_25	132
#define	GPIOH_26	133
#define	GPIOH_27	134

#define	GPIO_TEST_N	135

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

#endif /* _DT_BINDINGS_MESON_T3_GPIO_H */
