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