1 /* $NetBSD: meson-gxbb-gpio.h,v 1.1.1.2 2017/11/30 19:40:51 jmcneill Exp $ */ 2 3 /* 4 * GPIO definitions for Amlogic Meson GXBB SoCs 5 * 6 * Copyright (C) 2016 Endless Mobile, Inc. 7 * Author: Carlo Caione <carlo (at) 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_GXBB_GPIO_H 18 #define _DT_BINDINGS_MESON_GXBB_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 GPIOAO_10 10 31 #define GPIOAO_11 11 32 #define GPIOAO_12 12 33 #define GPIOAO_13 13 34 #define GPIO_TEST_N 14 35 36 #define GPIOZ_0 0 37 #define GPIOZ_1 1 38 #define GPIOZ_2 2 39 #define GPIOZ_3 3 40 #define GPIOZ_4 4 41 #define GPIOZ_5 5 42 #define GPIOZ_6 6 43 #define GPIOZ_7 7 44 #define GPIOZ_8 8 45 #define GPIOZ_9 9 46 #define GPIOZ_10 10 47 #define GPIOZ_11 11 48 #define GPIOZ_12 12 49 #define GPIOZ_13 13 50 #define GPIOZ_14 14 51 #define GPIOZ_15 15 52 #define GPIOH_0 16 53 #define GPIOH_1 17 54 #define GPIOH_2 18 55 #define GPIOH_3 19 56 #define BOOT_0 20 57 #define BOOT_1 21 58 #define BOOT_2 22 59 #define BOOT_3 23 60 #define BOOT_4 24 61 #define BOOT_5 25 62 #define BOOT_6 26 63 #define BOOT_7 27 64 #define BOOT_8 28 65 #define BOOT_9 29 66 #define BOOT_10 30 67 #define BOOT_11 31 68 #define BOOT_12 32 69 #define BOOT_13 33 70 #define BOOT_14 34 71 #define BOOT_15 35 72 #define BOOT_16 36 73 #define BOOT_17 37 74 #define CARD_0 38 75 #define CARD_1 39 76 #define CARD_2 40 77 #define CARD_3 41 78 #define CARD_4 42 79 #define CARD_5 43 80 #define CARD_6 44 81 #define GPIODV_0 45 82 #define GPIODV_1 46 83 #define GPIODV_2 47 84 #define GPIODV_3 48 85 #define GPIODV_4 49 86 #define GPIODV_5 50 87 #define GPIODV_6 51 88 #define GPIODV_7 52 89 #define GPIODV_8 53 90 #define GPIODV_9 54 91 #define GPIODV_10 55 92 #define GPIODV_11 56 93 #define GPIODV_12 57 94 #define GPIODV_13 58 95 #define GPIODV_14 59 96 #define GPIODV_15 60 97 #define GPIODV_16 61 98 #define GPIODV_17 62 99 #define GPIODV_18 63 100 #define GPIODV_19 64 101 #define GPIODV_20 65 102 #define GPIODV_21 66 103 #define GPIODV_22 67 104 #define GPIODV_23 68 105 #define GPIODV_24 69 106 #define GPIODV_25 70 107 #define GPIODV_26 71 108 #define GPIODV_27 72 109 #define GPIODV_28 73 110 #define GPIODV_29 74 111 #define GPIOY_0 75 112 #define GPIOY_1 76 113 #define GPIOY_2 77 114 #define GPIOY_3 78 115 #define GPIOY_4 79 116 #define GPIOY_5 80 117 #define GPIOY_6 81 118 #define GPIOY_7 82 119 #define GPIOY_8 83 120 #define GPIOY_9 84 121 #define GPIOY_10 85 122 #define GPIOY_11 86 123 #define GPIOY_12 87 124 #define GPIOY_13 88 125 #define GPIOY_14 89 126 #define GPIOY_15 90 127 #define GPIOY_16 91 128 #define GPIOX_0 92 129 #define GPIOX_1 93 130 #define GPIOX_2 94 131 #define GPIOX_3 95 132 #define GPIOX_4 96 133 #define GPIOX_5 97 134 #define GPIOX_6 98 135 #define GPIOX_7 99 136 #define GPIOX_8 100 137 #define GPIOX_9 101 138 #define GPIOX_10 102 139 #define GPIOX_11 103 140 #define GPIOX_12 104 141 #define GPIOX_13 105 142 #define GPIOX_14 106 143 #define GPIOX_15 107 144 #define GPIOX_16 108 145 #define GPIOX_17 109 146 #define GPIOX_18 110 147 #define GPIOX_19 111 148 #define GPIOX_20 112 149 #define GPIOX_21 113 150 #define GPIOX_22 114 151 #define GPIOCLK_0 115 152 #define GPIOCLK_1 116 153 #define GPIOCLK_2 117 154 #define GPIOCLK_3 118 155 156 #endif 157