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

#ifndef _DT_BINDINGS_MESON_S5_GPIO_H
#define _DT_BINDINGS_MESON_S5_GPIO_H

#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	GPIOD_11	11

#define	GPIOE_0		12
#define	GPIOE_1		13
#define	GPIOE_2		14
#define	GPIOE_3		15
#define	GPIOE_4		16

#define	GPIOC_0		17
#define	GPIOC_1		18
#define	GPIOC_2		19
#define	GPIOC_3		20
#define	GPIOC_4		21
#define	GPIOC_5		22
#define	GPIOC_6		23
#define	GPIOC_7		24

#define	GPIOX_0		25
#define	GPIOX_1		26
#define	GPIOX_2		27
#define	GPIOX_3		28
#define	GPIOX_4		29
#define	GPIOX_5		30
#define	GPIOX_6		31
#define	GPIOX_7		32
#define	GPIOX_8		33
#define	GPIOX_9		34
#define	GPIOX_10	35
#define	GPIOX_11	36
#define	GPIOX_12	37
#define	GPIOX_13	38
#define	GPIOX_14	39
#define	GPIOX_15	40
#define	GPIOX_16	41
#define	GPIOX_17	42
#define	GPIOX_18	43
#define	GPIOX_19	44

#define	GPIOH_0		45
#define	GPIOH_1		46
#define	GPIOH_2		47
#define	GPIOH_3		48
#define	GPIOH_4		49
#define	GPIOH_5		50
#define	GPIOH_6		51
#define	GPIOH_7		52
#define	GPIOH_8		53

#define	GPIOZ_0		54
#define	GPIOZ_1		55
#define	GPIOZ_2		56
#define	GPIOZ_3		57
#define	GPIOZ_4		58
#define	GPIOZ_5		59
#define	GPIOZ_6		60
#define	GPIOZ_7		61
#define	GPIOZ_8		62
#define	GPIOZ_9		63
#define	GPIOZ_10	64
#define	GPIOZ_11	65
#define	GPIOZ_12	66
#define	GPIOZ_13	67
#define	GPIOZ_14	68
#define	GPIOZ_15	69

#define	GPIOT_0		70
#define	GPIOT_1		71
#define	GPIOT_2		72
#define	GPIOT_3		73
#define	GPIOT_4		74
#define	GPIOT_5		75
#define	GPIOT_6		76
#define	GPIOT_7		77
#define	GPIOT_8		78
#define	GPIOT_9		79
#define	GPIOT_10	80
#define	GPIOT_11	81
#define	GPIOT_12	82
#define	GPIOT_13	83
#define	GPIOT_14	84
#define	GPIOT_15	85
#define	GPIOT_16	86
#define	GPIOT_17	87
#define	GPIOT_18	88
#define	GPIOT_19	89
#define	GPIOT_20	90
#define	GPIOT_21	91
#define	GPIOT_22	92
#define	GPIOT_23	93
#define	GPIOT_24	94

#define	GPIOA_0		95
#define	GPIOA_1		96
#define	GPIOA_2		97
#define	GPIOA_3		98
#define	GPIOA_4		99
#define	GPIOA_5		100
#define	GPIOA_6		101
#define	GPIOA_7		102
#define	GPIOA_8		103
#define	GPIOA_9		104
#define	GPIOA_10	105
#define	GPIO_TEST_N	106

#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

#endif /* _DT_BINDINGS_MESON_S5_GPIO_H */
