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

#ifndef _DT_BINDINGS_MESON_SC2_GPIO_H
#define _DT_BINDINGS_MESON_SC2_GPIO_H
#define	GPIOA_14	0
#define	GPIOA_15	1

#define	GPIOB_0		2
#define	GPIOB_1		3
#define	GPIOB_2		4
#define	GPIOB_3		5
#define	GPIOB_4		6
#define	GPIOB_5		7
#define	GPIOB_6		8
#define	GPIOB_7		9
#define	GPIOB_8		10
#define	GPIOB_9		11
#define	GPIOB_10	12
#define	GPIOB_11	13
#define	GPIOB_12	14
#define	GPIOB_13	15
#define	GPIOB_14	16
#define	GPIOB_15	17

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

#define	GPIOE_0		26
#define	GPIOE_1		27
#define	GPIOE_2		28

#define	GPIOD_0		29
#define	GPIOD_1		30
#define	GPIOD_2		31
#define	GPIOD_3		32
#define	GPIOD_4		33
#define	GPIOD_5		34
#define	GPIOD_6		35
#define	GPIOD_7		36
#define	GPIOD_8		37
#define	GPIOD_9		38
#define	GPIOD_10	39
#define	GPIOD_11	40

#define	GPIOH_0		41
#define	GPIOH_1		42
#define	GPIOH_2		43
#define	GPIOH_3		44
#define	GPIOH_4		45
#define	GPIOH_5		46
#define	GPIOH_6		47
#define	GPIOH_7		48
#define	GPIOH_8		49

#define	GPIOX_0		50
#define	GPIOX_1		51
#define	GPIOX_2		52
#define	GPIOX_3		53
#define	GPIOX_4		54
#define	GPIOX_5		55
#define	GPIOX_6		56
#define	GPIOX_7		57
#define	GPIOX_8		58
#define	GPIOX_9		59
#define	GPIOX_10	60
#define	GPIOX_11	61
#define	GPIOX_12	62
#define	GPIOX_13	63
#define	GPIOX_14	64
#define	GPIOX_15	65
#define	GPIOX_16	66
#define	GPIOX_17	67
#define	GPIOX_18	68
#define	GPIOX_19	69

#define	GPIOZ_0		70
#define	GPIOZ_1		71
#define	GPIOZ_2		72
#define	GPIOZ_3		73
#define	GPIOZ_4		74
#define	GPIOZ_5		75
#define	GPIOZ_6		76
#define	GPIOZ_7		77
#define	GPIOZ_8		78
#define	GPIOZ_9		79
#define	GPIOZ_10	80
#define	GPIOZ_11	81
#define	GPIOZ_12	82
#define	GPIOZ_13	83
#define	GPIOZ_14	84
#define	GPIOZ_15	85

#define	GPIO_TEST_N	86
#endif /* _DT_BINDINGS_MESON_SC2_GPIO_H */
