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

#ifndef __DT_BINDINGS_MESON_T5M_GPIO_H
#define __DT_BINDINGS_MESON_T5M_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	GPIOB_0			34
#define	GPIOB_1			35
#define	GPIOB_2			36
#define	GPIOB_3			37
#define	GPIOB_4			38
#define	GPIOB_5			39
#define	GPIOB_6			40
#define	GPIOB_7			41
#define	GPIOB_8			42
#define	GPIOB_9			43
#define	GPIOB_10		44
#define	GPIOB_11		45
#define	GPIOB_12		46
#define	GPIOB_13		47

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

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

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

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

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

#define	GPIO_TEST_N		149

/* 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
