1 /* SPDX-License-Identifier: (GPL-2.0+ or MIT) */
2 /*
3  * Copyright (c) 2018 Amlogic, Inc. All rights reserved.
4  * Author: Xingyu Chen <xingyu.chen@amlogic.com>
5  */
6 
7 #ifndef _DT_BINDINGS_MESON_G12A_GPIO_H
8 #define _DT_BINDINGS_MESON_G12A_GPIO_H
9 
10 /* First GPIO chip */
11 #define GPIOAO_0	0
12 #define GPIOAO_1	1
13 #define GPIOAO_2	2
14 #define GPIOAO_3	3
15 #define GPIOAO_4	4
16 #define GPIOAO_5	5
17 #define GPIOAO_6	6
18 #define GPIOAO_7	7
19 #define GPIOAO_8	8
20 #define GPIOAO_9	9
21 #define GPIOAO_10	10
22 #define GPIOAO_11	11
23 #define GPIOE_0		12
24 #define GPIOE_1		13
25 #define GPIOE_2		14
26 
27 /* Second GPIO chip */
28 #define GPIOZ_0		0
29 #define GPIOZ_1		1
30 #define GPIOZ_2		2
31 #define GPIOZ_3		3
32 #define GPIOZ_4		4
33 #define GPIOZ_5		5
34 #define GPIOZ_6		6
35 #define GPIOZ_7		7
36 #define GPIOZ_8		8
37 #define GPIOZ_9		9
38 #define GPIOZ_10	10
39 #define GPIOZ_11	11
40 #define GPIOZ_12	12
41 #define GPIOZ_13	13
42 #define GPIOZ_14	14
43 #define GPIOZ_15	15
44 #define GPIOH_0		16
45 #define GPIOH_1		17
46 #define GPIOH_2		18
47 #define GPIOH_3		19
48 #define GPIOH_4		20
49 #define GPIOH_5		21
50 #define GPIOH_6		22
51 #define GPIOH_7		23
52 #define GPIOH_8		24
53 #define BOOT_0		25
54 #define BOOT_1		26
55 #define BOOT_2		27
56 #define BOOT_3		28
57 #define BOOT_4		29
58 #define BOOT_5		30
59 #define BOOT_6		31
60 #define BOOT_7		32
61 #define BOOT_8		33
62 #define BOOT_9		34
63 #define BOOT_10		35
64 #define BOOT_11		36
65 #define BOOT_12		37
66 #define BOOT_13		38
67 #define BOOT_14		39
68 #define BOOT_15		40
69 #define GPIOC_0		41
70 #define GPIOC_1		42
71 #define GPIOC_2		43
72 #define GPIOC_3		44
73 #define GPIOC_4		45
74 #define GPIOC_5		46
75 #define GPIOC_6		47
76 #define GPIOC_7		48
77 #define GPIOA_0		49
78 #define GPIOA_1		50
79 #define GPIOA_2		51
80 #define GPIOA_3		52
81 #define GPIOA_4		53
82 #define GPIOA_5		54
83 #define GPIOA_6		55
84 #define GPIOA_7		56
85 #define GPIOA_8		57
86 #define GPIOA_9		58
87 #define GPIOA_10	59
88 #define GPIOA_11	60
89 #define GPIOA_12	61
90 #define GPIOA_13	62
91 #define GPIOA_14	63
92 #define GPIOA_15	64
93 #define GPIOX_0		65
94 #define GPIOX_1		66
95 #define GPIOX_2		67
96 #define GPIOX_3		68
97 #define GPIOX_4		69
98 #define GPIOX_5		70
99 #define GPIOX_6		71
100 #define GPIOX_7		72
101 #define GPIOX_8		73
102 #define GPIOX_9		74
103 #define GPIOX_10	75
104 #define GPIOX_11	76
105 #define GPIOX_12	77
106 #define GPIOX_13	78
107 #define GPIOX_14	79
108 #define GPIOX_15	80
109 #define GPIOX_16	81
110 #define GPIOX_17	82
111 #define GPIOX_18	83
112 #define GPIOX_19	84
113 
114 #endif /* _DT_BINDINGS_MESON_G12A_GPIO_H */
115