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