1 /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2 /*
3  * Copyright (c) 2021 Amlogic, Inc. All rights reserved.
4  * Author: Qianggui Song <qianggui.song@amlogic.com>
5  */
6 
7 #ifndef _DT_BINDINGS_MESON_S4_GPIO_H
8 #define _DT_BINDINGS_MESON_S4_GPIO_H
9 
10 #define	GPIOB_0		0
11 #define	GPIOB_1		1
12 #define	GPIOB_2		2
13 #define	GPIOB_3		3
14 #define	GPIOB_4		4
15 #define	GPIOB_5		5
16 #define	GPIOB_6		6
17 #define	GPIOB_7		7
18 #define	GPIOB_8		8
19 #define	GPIOB_9		9
20 #define	GPIOB_10	10
21 #define	GPIOB_11	11
22 #define	GPIOB_12	12
23 #define	GPIOB_13	13
24 
25 #define	GPIOC_0		14
26 #define	GPIOC_1		15
27 #define	GPIOC_2		16
28 #define	GPIOC_3		17
29 #define	GPIOC_4		18
30 #define	GPIOC_5		19
31 #define	GPIOC_6		20
32 #define	GPIOC_7		21
33 
34 #define	GPIOE_0		22
35 #define	GPIOE_1		23
36 
37 #define	GPIOD_0		24
38 #define	GPIOD_1		25
39 #define	GPIOD_2		26
40 #define	GPIOD_3		27
41 #define	GPIOD_4		28
42 #define	GPIOD_5		29
43 #define	GPIOD_6		30
44 #define	GPIOD_7		31
45 #define	GPIOD_8		32
46 #define	GPIOD_9		33
47 #define	GPIOD_10	34
48 #define	GPIOD_11	35
49 
50 #define	GPIOH_0		36
51 #define	GPIOH_1		37
52 #define	GPIOH_2		38
53 #define	GPIOH_3		39
54 #define	GPIOH_4		40
55 #define	GPIOH_5		41
56 #define	GPIOH_6		42
57 #define	GPIOH_7		43
58 #define	GPIOH_8		44
59 #define	GPIOH_9		45
60 #define	GPIOH_10	46
61 #define	GPIOH_11	47
62 
63 #define	GPIOX_0		48
64 #define	GPIOX_1		49
65 #define	GPIOX_2		50
66 #define	GPIOX_3		51
67 #define	GPIOX_4		52
68 #define	GPIOX_5		53
69 #define	GPIOX_6		54
70 #define	GPIOX_7		55
71 #define	GPIOX_8		56
72 #define	GPIOX_9		57
73 #define	GPIOX_10	58
74 #define	GPIOX_11	59
75 #define	GPIOX_12	60
76 #define	GPIOX_13	61
77 #define	GPIOX_14	62
78 #define	GPIOX_15	63
79 #define	GPIOX_16	64
80 #define	GPIOX_17	65
81 #define	GPIOX_18	66
82 #define	GPIOX_19	67
83 
84 #define	GPIOZ_0		68
85 #define	GPIOZ_1		69
86 #define	GPIOZ_2		70
87 #define	GPIOZ_3		71
88 #define	GPIOZ_4		72
89 #define	GPIOZ_5		73
90 #define	GPIOZ_6		74
91 #define	GPIOZ_7		75
92 #define	GPIOZ_8		76
93 #define	GPIOZ_9		77
94 #define	GPIOZ_10	78
95 #define	GPIOZ_11	79
96 #define	GPIOZ_12	80
97 
98 #define	GPIO_TEST_N	81
99 #endif /* _DT_BINDINGS_MESON_S4_GPIO_H */
100