1dd83840eSBeniamino Galvani /*
2dd83840eSBeniamino Galvani  * GPIO definitions for Amlogic Meson GXBB SoCs
3dd83840eSBeniamino Galvani  *
4dd83840eSBeniamino Galvani  * Copyright (C) 2016 Endless Mobile, Inc.
5dd83840eSBeniamino Galvani  * Author: Carlo Caione <carlo@endlessm.com>
6dd83840eSBeniamino Galvani  *
7dd83840eSBeniamino Galvani  * This program is free software; you can redistribute it and/or
8dd83840eSBeniamino Galvani  * modify it under the terms of the GNU General Public License
9dd83840eSBeniamino Galvani  * version 2 as published by the Free Software Foundation.
10dd83840eSBeniamino Galvani  *
11dd83840eSBeniamino Galvani  * You should have received a copy of the GNU General Public License
12dd83840eSBeniamino Galvani  * along with this program. If not, see <http://www.gnu.org/licenses/>.
13dd83840eSBeniamino Galvani  */
14dd83840eSBeniamino Galvani 
15dd83840eSBeniamino Galvani #ifndef _DT_BINDINGS_MESON_GXBB_GPIO_H
16dd83840eSBeniamino Galvani #define _DT_BINDINGS_MESON_GXBB_GPIO_H
17dd83840eSBeniamino Galvani 
18dd83840eSBeniamino Galvani #define	GPIOAO_0	0
19dd83840eSBeniamino Galvani #define	GPIOAO_1	1
20dd83840eSBeniamino Galvani #define	GPIOAO_2	2
21dd83840eSBeniamino Galvani #define	GPIOAO_3	3
22dd83840eSBeniamino Galvani #define	GPIOAO_4	4
23dd83840eSBeniamino Galvani #define	GPIOAO_5	5
24dd83840eSBeniamino Galvani #define	GPIOAO_6	6
25dd83840eSBeniamino Galvani #define	GPIOAO_7	7
26dd83840eSBeniamino Galvani #define	GPIOAO_8	8
27dd83840eSBeniamino Galvani #define	GPIOAO_9	9
28dd83840eSBeniamino Galvani #define	GPIOAO_10	10
29dd83840eSBeniamino Galvani #define	GPIOAO_11	11
30dd83840eSBeniamino Galvani #define	GPIOAO_12	12
31dd83840eSBeniamino Galvani #define	GPIOAO_13	13
32*7d750c35SNeil Armstrong #define	GPIO_TEST_N	14
33dd83840eSBeniamino Galvani 
34dd83840eSBeniamino Galvani #define	GPIOZ_0		0
35dd83840eSBeniamino Galvani #define	GPIOZ_1		1
36dd83840eSBeniamino Galvani #define	GPIOZ_2		2
37dd83840eSBeniamino Galvani #define	GPIOZ_3		3
38dd83840eSBeniamino Galvani #define	GPIOZ_4		4
39dd83840eSBeniamino Galvani #define	GPIOZ_5		5
40dd83840eSBeniamino Galvani #define	GPIOZ_6		6
41dd83840eSBeniamino Galvani #define	GPIOZ_7		7
42dd83840eSBeniamino Galvani #define	GPIOZ_8		8
43dd83840eSBeniamino Galvani #define	GPIOZ_9		9
44dd83840eSBeniamino Galvani #define	GPIOZ_10	10
45dd83840eSBeniamino Galvani #define	GPIOZ_11	11
46dd83840eSBeniamino Galvani #define	GPIOZ_12	12
47dd83840eSBeniamino Galvani #define	GPIOZ_13	13
48dd83840eSBeniamino Galvani #define	GPIOZ_14	14
49dd83840eSBeniamino Galvani #define	GPIOZ_15	15
50dd83840eSBeniamino Galvani #define	GPIOH_0		16
51dd83840eSBeniamino Galvani #define	GPIOH_1		17
52dd83840eSBeniamino Galvani #define	GPIOH_2		18
53dd83840eSBeniamino Galvani #define	GPIOH_3		19
54dd83840eSBeniamino Galvani #define	BOOT_0		20
55dd83840eSBeniamino Galvani #define	BOOT_1		21
56dd83840eSBeniamino Galvani #define	BOOT_2		22
57dd83840eSBeniamino Galvani #define	BOOT_3		23
58dd83840eSBeniamino Galvani #define	BOOT_4		24
59dd83840eSBeniamino Galvani #define	BOOT_5		25
60dd83840eSBeniamino Galvani #define	BOOT_6		26
61dd83840eSBeniamino Galvani #define	BOOT_7		27
62dd83840eSBeniamino Galvani #define	BOOT_8		28
63dd83840eSBeniamino Galvani #define	BOOT_9		29
64dd83840eSBeniamino Galvani #define	BOOT_10		30
65dd83840eSBeniamino Galvani #define	BOOT_11		31
66dd83840eSBeniamino Galvani #define	BOOT_12		32
67dd83840eSBeniamino Galvani #define	BOOT_13		33
68dd83840eSBeniamino Galvani #define	BOOT_14		34
69dd83840eSBeniamino Galvani #define	BOOT_15		35
70dd83840eSBeniamino Galvani #define	BOOT_16		36
71dd83840eSBeniamino Galvani #define	BOOT_17		37
72dd83840eSBeniamino Galvani #define	CARD_0		38
73dd83840eSBeniamino Galvani #define	CARD_1		39
74dd83840eSBeniamino Galvani #define	CARD_2		40
75dd83840eSBeniamino Galvani #define	CARD_3		41
76dd83840eSBeniamino Galvani #define	CARD_4		42
77dd83840eSBeniamino Galvani #define	CARD_5		43
78dd83840eSBeniamino Galvani #define	CARD_6		44
79dd83840eSBeniamino Galvani #define	GPIODV_0	45
80dd83840eSBeniamino Galvani #define	GPIODV_1	46
81dd83840eSBeniamino Galvani #define	GPIODV_2	47
82dd83840eSBeniamino Galvani #define	GPIODV_3	48
83dd83840eSBeniamino Galvani #define	GPIODV_4	49
84dd83840eSBeniamino Galvani #define	GPIODV_5	50
85dd83840eSBeniamino Galvani #define	GPIODV_6	51
86dd83840eSBeniamino Galvani #define	GPIODV_7	52
87dd83840eSBeniamino Galvani #define	GPIODV_8	53
88dd83840eSBeniamino Galvani #define	GPIODV_9	54
89dd83840eSBeniamino Galvani #define	GPIODV_10	55
90dd83840eSBeniamino Galvani #define	GPIODV_11	56
91dd83840eSBeniamino Galvani #define	GPIODV_12	57
92dd83840eSBeniamino Galvani #define	GPIODV_13	58
93dd83840eSBeniamino Galvani #define	GPIODV_14	59
94dd83840eSBeniamino Galvani #define	GPIODV_15	60
95dd83840eSBeniamino Galvani #define	GPIODV_16	61
96dd83840eSBeniamino Galvani #define	GPIODV_17	62
97dd83840eSBeniamino Galvani #define	GPIODV_18	63
98dd83840eSBeniamino Galvani #define	GPIODV_19	64
99dd83840eSBeniamino Galvani #define	GPIODV_20	65
100dd83840eSBeniamino Galvani #define	GPIODV_21	66
101dd83840eSBeniamino Galvani #define	GPIODV_22	67
102dd83840eSBeniamino Galvani #define	GPIODV_23	68
103dd83840eSBeniamino Galvani #define	GPIODV_24	69
104dd83840eSBeniamino Galvani #define	GPIODV_25	70
105dd83840eSBeniamino Galvani #define	GPIODV_26	71
106dd83840eSBeniamino Galvani #define	GPIODV_27	72
107dd83840eSBeniamino Galvani #define	GPIODV_28	73
108dd83840eSBeniamino Galvani #define	GPIODV_29	74
109dd83840eSBeniamino Galvani #define	GPIOY_0		75
110dd83840eSBeniamino Galvani #define	GPIOY_1		76
111dd83840eSBeniamino Galvani #define	GPIOY_2		77
112dd83840eSBeniamino Galvani #define	GPIOY_3		78
113dd83840eSBeniamino Galvani #define	GPIOY_4		79
114dd83840eSBeniamino Galvani #define	GPIOY_5		80
115dd83840eSBeniamino Galvani #define	GPIOY_6		81
116dd83840eSBeniamino Galvani #define	GPIOY_7		82
117dd83840eSBeniamino Galvani #define	GPIOY_8		83
118dd83840eSBeniamino Galvani #define	GPIOY_9		84
119dd83840eSBeniamino Galvani #define	GPIOY_10	85
120dd83840eSBeniamino Galvani #define	GPIOY_11	86
121dd83840eSBeniamino Galvani #define	GPIOY_12	87
122dd83840eSBeniamino Galvani #define	GPIOY_13	88
123dd83840eSBeniamino Galvani #define	GPIOY_14	89
124dd83840eSBeniamino Galvani #define	GPIOY_15	90
125dd83840eSBeniamino Galvani #define	GPIOY_16	91
126dd83840eSBeniamino Galvani #define	GPIOX_0		92
127dd83840eSBeniamino Galvani #define	GPIOX_1		93
128dd83840eSBeniamino Galvani #define	GPIOX_2		94
129dd83840eSBeniamino Galvani #define	GPIOX_3		95
130dd83840eSBeniamino Galvani #define	GPIOX_4		96
131dd83840eSBeniamino Galvani #define	GPIOX_5		97
132dd83840eSBeniamino Galvani #define	GPIOX_6		98
133dd83840eSBeniamino Galvani #define	GPIOX_7		99
134dd83840eSBeniamino Galvani #define	GPIOX_8		100
135dd83840eSBeniamino Galvani #define	GPIOX_9		101
136dd83840eSBeniamino Galvani #define	GPIOX_10	102
137dd83840eSBeniamino Galvani #define	GPIOX_11	103
138dd83840eSBeniamino Galvani #define	GPIOX_12	104
139dd83840eSBeniamino Galvani #define	GPIOX_13	105
140dd83840eSBeniamino Galvani #define	GPIOX_14	106
141dd83840eSBeniamino Galvani #define	GPIOX_15	107
142dd83840eSBeniamino Galvani #define	GPIOX_16	108
143dd83840eSBeniamino Galvani #define	GPIOX_17	109
144dd83840eSBeniamino Galvani #define	GPIOX_18	110
145dd83840eSBeniamino Galvani #define	GPIOX_19	111
146dd83840eSBeniamino Galvani #define	GPIOX_20	112
147dd83840eSBeniamino Galvani #define	GPIOX_21	113
148dd83840eSBeniamino Galvani #define	GPIOX_22	114
149dd83840eSBeniamino Galvani #define	GPIOCLK_0	115
150dd83840eSBeniamino Galvani #define	GPIOCLK_1	116
151dd83840eSBeniamino Galvani #define	GPIOCLK_2	117
152dd83840eSBeniamino Galvani #define	GPIOCLK_3	118
153dd83840eSBeniamino Galvani 
154dd83840eSBeniamino Galvani #endif
155