blob: 46e87f14c356cae639f5dfded01e8b5be47dbcdb [file] [log] [blame]
/*
* GPIO definitions for Amlogic Meson8b SoCs
*
* Copyright (C) 2015 Endless Mobile, Inc.
* Author: Carlo Caione <carlo@endlessm.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _DT_BINDINGS_MESON8B_GPIO_H
#define _DT_BINDINGS_MESON8B_GPIO_H
/* First GPIO chip */
#define GPIOAO_0 0
#define GPIOAO_1 1
#define GPIOAO_2 2
#define GPIOAO_3 3
#define GPIOAO_4 4
#define GPIOAO_5 5
#define GPIOAO_6 6
#define GPIOAO_7 7
#define GPIOAO_8 8
#define GPIOAO_9 9
#define GPIOAO_10 10
#define GPIOAO_11 11
#define GPIOAO_12 12
#define GPIOAO_13 13
/* Second GPIO chip */
#define GPIOH_0 0
#define GPIOH_1 1
#define GPIOH_2 2
#define GPIOH_3 3
#define GPIOH_4 4
#define GPIOH_5 5
#define GPIOH_6 6
#define GPIOH_7 7
#define GPIOH_8 8
#define GPIOH_9 9
#define BOOT_0 10
#define BOOT_1 11
#define BOOT_2 12
#define BOOT_3 13
#define BOOT_4 14
#define BOOT_5 15
#define BOOT_6 16
#define BOOT_7 17
#define BOOT_8 18
#define BOOT_9 19
#define BOOT_10 20
#define BOOT_11 21
#define BOOT_12 22
#define BOOT_13 23
#define BOOT_14 24
#define BOOT_15 25
#define BOOT_16 26
#define BOOT_17 27
#define BOOT_18 28
#define CARD_0 29
#define CARD_1 30
#define CARD_2 31
#define CARD_3 32
#define CARD_4 33
#define CARD_5 34
#define CARD_6 35
#define GPIODV_0 36
#define GPIODV_1 37
#define GPIODV_2 38
#define GPIODV_3 39
#define GPIODV_4 40
#define GPIODV_5 41
#define GPIODV_6 42
#define GPIODV_7 43
#define GPIODV_8 44
#define GPIODV_9 45
#define GPIODV_10 46
#define GPIODV_11 47
#define GPIODV_12 48
#define GPIODV_13 49
#define GPIODV_14 50
#define GPIODV_15 51
#define GPIODV_16 52
#define GPIODV_17 53
#define GPIODV_18 54
#define GPIODV_19 55
#define GPIODV_20 56
#define GPIODV_21 57
#define GPIODV_22 58
#define GPIODV_23 59
#define GPIODV_24 60
#define GPIODV_25 61
#define GPIODV_26 62
#define GPIODV_27 63
#define GPIODV_28 64
#define GPIODV_29 65
#define GPIOY_0 66
#define GPIOY_1 67
#define GPIOY_2 68
#define GPIOY_3 69
#define GPIOY_4 70
#define GPIOY_5 71
#define GPIOY_6 72
#define GPIOY_7 73
#define GPIOY_8 74
#define GPIOY_9 75
#define GPIOY_10 76
#define GPIOY_11 77
#define GPIOY_12 78
#define GPIOY_13 79
#define GPIOY_14 80
#define GPIOY_15 81
#define GPIOY_16 82
#define GPIOX_0 83
#define GPIOX_1 84
#define GPIOX_2 85
#define GPIOX_3 86
#define GPIOX_4 87
#define GPIOX_5 88
#define GPIOX_6 89
#define GPIOX_7 90
#define GPIOX_8 91
#define GPIOX_9 92
#define GPIOX_10 93
#define GPIOX_11 94
#define GPIOX_12 95
#define GPIOX_13 96
#define GPIOX_14 97
#define GPIOX_15 98
#define GPIOX_16 99
#define GPIOX_17 100
#define GPIOX_18 101
#define GPIOX_19 102
#define GPIOX_20 103
#define GPIOX_21 104
/* GPIO Bank DIF */
#define DIF_0_P 105
#define DIF_0_N 106
#define DIF_1_P 107
#define DIF_1_N 108
#define DIF_2_P 109
#define DIF_2_N 110
#define DIF_3_P 111
#define DIF_3_N 112
#define DIF_4_P 113
#define DIF_4_N 114
#endif /* _DT_BINDINGS_MESON8B_GPIO_H */