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