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

#ifndef __DT_BINDINGS_MESON_T3X_GPIO_H
#define __DT_BINDINGS_MESON_T3X_GPIO_H
#define	GPIOW_0			0
#define	GPIOW_1			1
#define	GPIOW_2			2
#define	GPIOW_3			3
#define	GPIOW_4			4
#define	GPIOW_5			5
#define	GPIOW_6			6
#define	GPIOW_7			7
#define	GPIOW_8			8
#define	GPIOW_9			9
#define	GPIOW_10		10
#define	GPIOW_11		11
#define	GPIOW_12		12
#define	GPIOW_13		13
#define	GPIOW_14		14
#define	GPIOW_15		15
#define	GPIOW_16		16

#define	GPIOD_0			17
#define	GPIOD_1			18
#define	GPIOD_2			19
#define	GPIOD_3			20
#define	GPIOD_4			21
#define	GPIOD_5			22
#define	GPIOD_6			23
#define	GPIOD_7			24
#define	GPIOD_8			25
#define	GPIOD_9			26
#define	GPIOD_10		27
#define	GPIOD_11		28
#define	GPIOD_12		29
#define	GPIOD_13		30
#define	GPIOD_14		31

#define	GPIOE_0			32
#define	GPIOE_1			33
#define	GPIOE_2			34

#define	GPIOB_0			35
#define	GPIOB_1			36
#define	GPIOB_2			37
#define	GPIOB_3			38
#define	GPIOB_4			39
#define	GPIOB_5			40
#define	GPIOB_6			41
#define	GPIOB_7			42
#define	GPIOB_8			43
#define	GPIOB_9			44
#define	GPIOB_10		45
#define	GPIOB_11		46
#define	GPIOB_12		47
#define	GPIOB_13		48

#define	GPIOC_0			49
#define	GPIOC_1			50
#define	GPIOC_2			51
#define	GPIOC_3			52
#define	GPIOC_4			53
#define	GPIOC_5			54
#define	GPIOC_6			55
#define	GPIOC_7			56
#define	GPIOC_8			57
#define	GPIOC_9			58
#define	GPIOC_10		59

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

#define	GPIOH_0			80
#define	GPIOH_1			81
#define	GPIOH_2			82
#define	GPIOH_3			83
#define	GPIOH_4			84
#define	GPIOH_5			85
#define	GPIOH_6			86
#define	GPIOH_7			87
#define	GPIOH_8			88
#define	GPIOH_9			89
#define	GPIOH_10		90
#define	GPIOH_11		91
#define	GPIOH_12		92
#define	GPIOH_13		93
#define	GPIOH_14		94
#define	GPIOH_15		95
#define	GPIOH_16		96
#define	GPIOH_17		97
#define	GPIOH_18		98
#define	GPIOH_19		99
#define	GPIOH_20		100
#define	GPIOH_21		101
#define	GPIOH_22		102
#define	GPIOH_23		103
#define	GPIOH_24		104
#define	GPIOH_25		105
#define	GPIOH_26		106
#define	GPIOH_27		107
#define	GPIOH_28		108
#define	GPIOH_29		109

#define	GPIOP_0			110
#define	GPIOP_1			111
#define	GPIOP_2			112
#define	GPIOP_3			113
#define	GPIOP_4			114
#define	GPIOP_5			115
#define	GPIOP_6			116
#define	GPIOP_7			117
#define	GPIOP_8			118
#define	GPIOP_9			119

#define	GPIOM_0			120
#define	GPIOM_1			121
#define	GPIOM_2			122
#define	GPIOM_3			123
#define	GPIOM_4			124
#define	GPIOM_5			125
#define	GPIOM_6			126
#define	GPIOM_7			127
#define	GPIOM_8			128
#define	GPIOM_9			129
#define	GPIOM_10		130
#define	GPIOM_11		131
#define	GPIOM_12		132
#define	GPIOM_13		133
#define	GPIOM_14		134
#define	GPIOM_15		135
#define	GPIOM_16		136
#define	GPIOM_17		137
#define	GPIOM_18		138
#define	GPIOM_19		139
#define	GPIOM_20		140
#define	GPIOM_21		141
#define	GPIOM_22		142
#define	GPIOM_23		143
#define	GPIOM_24		144
#define	GPIOM_25		145
#define	GPIOM_26		146
#define	GPIOM_27		147
#define	GPIOM_28		148
#define	GPIOM_29		149

#define	GPIO_TEST_N		150

/* Analog Bank */
#define	CDAC_IOUT		0
#define	CVBS0			1
#define	CVBS1			2
#define	SARADC_CH0_IO		3
#define	SARADC_CH1_IO		4
#define	SARADC_CH2_IO		5
#define	SARADC_CH3_IO		6
#define	SARADC_CH4_IO		7
#endif
