1*78a08019SNeil Armstrong /*
2*78a08019SNeil Armstrong  * Copyright (c) 2017 Amlogic, Inc. All rights reserved.
3*78a08019SNeil Armstrong  * Author: Xingyu Chen <xingyu.chen@amlogic.com>
4*78a08019SNeil Armstrong  *
5*78a08019SNeil Armstrong  * SPDX-License-Identifier: GPL-2.0+
6*78a08019SNeil Armstrong  */
7*78a08019SNeil Armstrong 
8*78a08019SNeil Armstrong #ifndef _DT_BINDINGS_MESON_AXG_GPIO_H
9*78a08019SNeil Armstrong #define _DT_BINDINGS_MESON_AXG_GPIO_H
10*78a08019SNeil Armstrong 
11*78a08019SNeil Armstrong /* First GPIO chip */
12*78a08019SNeil Armstrong #define GPIOAO_0	0
13*78a08019SNeil Armstrong #define GPIOAO_1	1
14*78a08019SNeil Armstrong #define GPIOAO_2	2
15*78a08019SNeil Armstrong #define GPIOAO_3	3
16*78a08019SNeil Armstrong #define GPIOAO_4	4
17*78a08019SNeil Armstrong #define GPIOAO_5	5
18*78a08019SNeil Armstrong #define GPIOAO_6	6
19*78a08019SNeil Armstrong #define GPIOAO_7	7
20*78a08019SNeil Armstrong #define GPIOAO_8	8
21*78a08019SNeil Armstrong #define GPIOAO_9	9
22*78a08019SNeil Armstrong #define GPIOAO_10	10
23*78a08019SNeil Armstrong #define GPIOAO_11	11
24*78a08019SNeil Armstrong #define GPIOAO_12	12
25*78a08019SNeil Armstrong #define GPIOAO_13	13
26*78a08019SNeil Armstrong #define GPIO_TEST_N 14
27*78a08019SNeil Armstrong 
28*78a08019SNeil Armstrong /* Second GPIO chip */
29*78a08019SNeil Armstrong #define GPIOZ_0		0
30*78a08019SNeil Armstrong #define GPIOZ_1		1
31*78a08019SNeil Armstrong #define GPIOZ_2		2
32*78a08019SNeil Armstrong #define GPIOZ_3		3
33*78a08019SNeil Armstrong #define GPIOZ_4		4
34*78a08019SNeil Armstrong #define GPIOZ_5		5
35*78a08019SNeil Armstrong #define GPIOZ_6		6
36*78a08019SNeil Armstrong #define GPIOZ_7		7
37*78a08019SNeil Armstrong #define GPIOZ_8		8
38*78a08019SNeil Armstrong #define GPIOZ_9		9
39*78a08019SNeil Armstrong #define GPIOZ_10	10
40*78a08019SNeil Armstrong #define BOOT_0		11
41*78a08019SNeil Armstrong #define BOOT_1		12
42*78a08019SNeil Armstrong #define BOOT_2		13
43*78a08019SNeil Armstrong #define BOOT_3		14
44*78a08019SNeil Armstrong #define BOOT_4		15
45*78a08019SNeil Armstrong #define BOOT_5		16
46*78a08019SNeil Armstrong #define BOOT_6		17
47*78a08019SNeil Armstrong #define BOOT_7		18
48*78a08019SNeil Armstrong #define BOOT_8		19
49*78a08019SNeil Armstrong #define BOOT_9		20
50*78a08019SNeil Armstrong #define BOOT_10		21
51*78a08019SNeil Armstrong #define BOOT_11		22
52*78a08019SNeil Armstrong #define BOOT_12		23
53*78a08019SNeil Armstrong #define BOOT_13		24
54*78a08019SNeil Armstrong #define BOOT_14		25
55*78a08019SNeil Armstrong #define GPIOA_0	    26
56*78a08019SNeil Armstrong #define GPIOA_1		27
57*78a08019SNeil Armstrong #define GPIOA_2		28
58*78a08019SNeil Armstrong #define GPIOA_3		29
59*78a08019SNeil Armstrong #define GPIOA_4		30
60*78a08019SNeil Armstrong #define GPIOA_5		31
61*78a08019SNeil Armstrong #define GPIOA_6		32
62*78a08019SNeil Armstrong #define GPIOA_7		33
63*78a08019SNeil Armstrong #define GPIOA_8		34
64*78a08019SNeil Armstrong #define GPIOA_9		35
65*78a08019SNeil Armstrong #define GPIOA_10	36
66*78a08019SNeil Armstrong #define GPIOA_11	37
67*78a08019SNeil Armstrong #define GPIOA_12	38
68*78a08019SNeil Armstrong #define GPIOA_13	39
69*78a08019SNeil Armstrong #define GPIOA_14	40
70*78a08019SNeil Armstrong #define GPIOA_15	41
71*78a08019SNeil Armstrong #define GPIOA_16	42
72*78a08019SNeil Armstrong #define GPIOA_17	43
73*78a08019SNeil Armstrong #define GPIOA_18	44
74*78a08019SNeil Armstrong #define GPIOA_19	45
75*78a08019SNeil Armstrong #define GPIOA_20	46
76*78a08019SNeil Armstrong #define GPIOX_0		47
77*78a08019SNeil Armstrong #define GPIOX_1		48
78*78a08019SNeil Armstrong #define GPIOX_2		49
79*78a08019SNeil Armstrong #define GPIOX_3		50
80*78a08019SNeil Armstrong #define GPIOX_4		51
81*78a08019SNeil Armstrong #define GPIOX_5		52
82*78a08019SNeil Armstrong #define GPIOX_6		53
83*78a08019SNeil Armstrong #define GPIOX_7		54
84*78a08019SNeil Armstrong #define GPIOX_8		55
85*78a08019SNeil Armstrong #define GPIOX_9		56
86*78a08019SNeil Armstrong #define GPIOX_10	57
87*78a08019SNeil Armstrong #define GPIOX_11	58
88*78a08019SNeil Armstrong #define GPIOX_12	59
89*78a08019SNeil Armstrong #define GPIOX_13	60
90*78a08019SNeil Armstrong #define GPIOX_14	61
91*78a08019SNeil Armstrong #define GPIOX_15	62
92*78a08019SNeil Armstrong #define GPIOX_16	63
93*78a08019SNeil Armstrong #define GPIOX_17	64
94*78a08019SNeil Armstrong #define GPIOX_18	65
95*78a08019SNeil Armstrong #define GPIOX_19	66
96*78a08019SNeil Armstrong #define GPIOX_20	67
97*78a08019SNeil Armstrong #define GPIOX_21	68
98*78a08019SNeil Armstrong #define GPIOX_22	69
99*78a08019SNeil Armstrong #define GPIOY_0		70
100*78a08019SNeil Armstrong #define GPIOY_1		71
101*78a08019SNeil Armstrong #define GPIOY_2		72
102*78a08019SNeil Armstrong #define GPIOY_3		73
103*78a08019SNeil Armstrong #define GPIOY_4		74
104*78a08019SNeil Armstrong #define GPIOY_5		75
105*78a08019SNeil Armstrong #define GPIOY_6		76
106*78a08019SNeil Armstrong #define GPIOY_7		77
107*78a08019SNeil Armstrong #define GPIOY_8		78
108*78a08019SNeil Armstrong #define GPIOY_9		79
109*78a08019SNeil Armstrong #define GPIOY_10	80
110*78a08019SNeil Armstrong #define GPIOY_11	81
111*78a08019SNeil Armstrong #define GPIOY_12	82
112*78a08019SNeil Armstrong #define GPIOY_13	83
113*78a08019SNeil Armstrong #define GPIOY_14	84
114*78a08019SNeil Armstrong #define GPIOY_15	85
115*78a08019SNeil Armstrong 
116*78a08019SNeil Armstrong #endif /* _DT_BINDINGS_MESON_AXG_GPIO_H */
117