1 /* SPDX-License-Identifier: GPL-2.0-only */ << 2 /* 1 /* 3 * GPIO definitions for Amlogic Meson8b SoCs 2 * GPIO definitions for Amlogic Meson8b SoCs 4 * 3 * 5 * Copyright (C) 2015 Endless Mobile, Inc. 4 * Copyright (C) 2015 Endless Mobile, Inc. 6 * Author: Carlo Caione <carlo@endlessm.com> 5 * Author: Carlo Caione <carlo@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/>. 7 */ 13 */ 8 14 9 #ifndef _DT_BINDINGS_MESON8B_GPIO_H 15 #ifndef _DT_BINDINGS_MESON8B_GPIO_H 10 #define _DT_BINDINGS_MESON8B_GPIO_H 16 #define _DT_BINDINGS_MESON8B_GPIO_H 11 17 12 /* EE (CBUS) GPIO chip */ 18 /* EE (CBUS) GPIO chip */ 13 #define GPIOX_0 0 19 #define GPIOX_0 0 14 #define GPIOX_1 1 20 #define GPIOX_1 1 15 #define GPIOX_2 2 21 #define GPIOX_2 2 16 #define GPIOX_3 3 22 #define GPIOX_3 3 17 #define GPIOX_4 4 23 #define GPIOX_4 4 18 #define GPIOX_5 5 24 #define GPIOX_5 5 19 #define GPIOX_6 6 25 #define GPIOX_6 6 20 #define GPIOX_7 7 26 #define GPIOX_7 7 21 #define GPIOX_8 8 27 #define GPIOX_8 8 22 #define GPIOX_9 9 28 #define GPIOX_9 9 23 #define GPIOX_10 10 29 #define GPIOX_10 10 24 #define GPIOX_11 11 30 #define GPIOX_11 11 25 #define GPIOX_16 12 31 #define GPIOX_16 12 26 #define GPIOX_17 13 32 #define GPIOX_17 13 27 #define GPIOX_18 14 33 #define GPIOX_18 14 28 #define GPIOX_19 15 34 #define GPIOX_19 15 29 #define GPIOX_20 16 35 #define GPIOX_20 16 30 #define GPIOX_21 17 36 #define GPIOX_21 17 31 37 32 #define GPIOY_0 18 38 #define GPIOY_0 18 33 #define GPIOY_1 19 39 #define GPIOY_1 19 34 #define GPIOY_3 20 40 #define GPIOY_3 20 35 #define GPIOY_6 21 41 #define GPIOY_6 21 36 #define GPIOY_7 22 42 #define GPIOY_7 22 37 #define GPIOY_8 23 43 #define GPIOY_8 23 38 #define GPIOY_9 24 44 #define GPIOY_9 24 39 #define GPIOY_10 25 45 #define GPIOY_10 25 40 #define GPIOY_11 26 46 #define GPIOY_11 26 41 #define GPIOY_12 27 47 #define GPIOY_12 27 42 #define GPIOY_13 28 48 #define GPIOY_13 28 43 #define GPIOY_14 29 49 #define GPIOY_14 29 44 50 45 #define GPIODV_9 30 51 #define GPIODV_9 30 46 #define GPIODV_24 31 52 #define GPIODV_24 31 47 #define GPIODV_25 32 53 #define GPIODV_25 32 48 #define GPIODV_26 33 54 #define GPIODV_26 33 49 #define GPIODV_27 34 55 #define GPIODV_27 34 50 #define GPIODV_28 35 56 #define GPIODV_28 35 51 #define GPIODV_29 36 57 #define GPIODV_29 36 52 58 53 #define GPIOH_0 37 59 #define GPIOH_0 37 54 #define GPIOH_1 38 60 #define GPIOH_1 38 55 #define GPIOH_2 39 61 #define GPIOH_2 39 56 #define GPIOH_3 40 62 #define GPIOH_3 40 57 #define GPIOH_4 41 63 #define GPIOH_4 41 58 #define GPIOH_5 42 64 #define GPIOH_5 42 59 #define GPIOH_6 43 65 #define GPIOH_6 43 60 #define GPIOH_7 44 66 #define GPIOH_7 44 61 #define GPIOH_8 45 67 #define GPIOH_8 45 62 #define GPIOH_9 46 68 #define GPIOH_9 46 63 69 64 #define CARD_0 47 70 #define CARD_0 47 65 #define CARD_1 48 71 #define CARD_1 48 66 #define CARD_2 49 72 #define CARD_2 49 67 #define CARD_3 50 73 #define CARD_3 50 68 #define CARD_4 51 74 #define CARD_4 51 69 #define CARD_5 52 75 #define CARD_5 52 70 #define CARD_6 53 76 #define CARD_6 53 71 77 72 #define BOOT_0 54 78 #define BOOT_0 54 73 #define BOOT_1 55 79 #define BOOT_1 55 74 #define BOOT_2 56 80 #define BOOT_2 56 75 #define BOOT_3 57 81 #define BOOT_3 57 76 #define BOOT_4 58 82 #define BOOT_4 58 77 #define BOOT_5 59 83 #define BOOT_5 59 78 #define BOOT_6 60 84 #define BOOT_6 60 79 #define BOOT_7 61 85 #define BOOT_7 61 80 #define BOOT_8 62 86 #define BOOT_8 62 81 #define BOOT_9 63 87 #define BOOT_9 63 82 #define BOOT_10 64 88 #define BOOT_10 64 83 #define BOOT_11 65 89 #define BOOT_11 65 84 #define BOOT_12 66 90 #define BOOT_12 66 85 #define BOOT_13 67 91 #define BOOT_13 67 86 #define BOOT_14 68 92 #define BOOT_14 68 87 #define BOOT_15 69 93 #define BOOT_15 69 88 #define BOOT_16 70 94 #define BOOT_16 70 89 #define BOOT_17 71 95 #define BOOT_17 71 90 #define BOOT_18 72 96 #define BOOT_18 72 91 97 92 #define DIF_0_P 73 98 #define DIF_0_P 73 93 #define DIF_0_N 74 99 #define DIF_0_N 74 94 #define DIF_1_P 75 100 #define DIF_1_P 75 95 #define DIF_1_N 76 101 #define DIF_1_N 76 96 #define DIF_2_P 77 102 #define DIF_2_P 77 97 #define DIF_2_N 78 103 #define DIF_2_N 78 98 #define DIF_3_P 79 104 #define DIF_3_P 79 99 #define DIF_3_N 80 105 #define DIF_3_N 80 100 #define DIF_4_P 81 106 #define DIF_4_P 81 101 #define DIF_4_N 82 107 #define DIF_4_N 82 102 108 103 /* AO GPIO chip */ 109 /* AO GPIO chip */ 104 #define GPIOAO_0 0 110 #define GPIOAO_0 0 105 #define GPIOAO_1 1 111 #define GPIOAO_1 1 106 #define GPIOAO_2 2 112 #define GPIOAO_2 2 107 #define GPIOAO_3 3 113 #define GPIOAO_3 3 108 #define GPIOAO_4 4 114 #define GPIOAO_4 4 109 #define GPIOAO_5 5 115 #define GPIOAO_5 5 110 #define GPIOAO_6 6 116 #define GPIOAO_6 6 111 #define GPIOAO_7 7 117 #define GPIOAO_7 7 112 #define GPIOAO_8 8 118 #define GPIOAO_8 8 113 #define GPIOAO_9 9 119 #define GPIOAO_9 9 114 #define GPIOAO_10 10 120 #define GPIOAO_10 10 115 #define GPIOAO_11 11 121 #define GPIOAO_11 11 116 #define GPIOAO_12 12 122 #define GPIOAO_12 12 117 #define GPIOAO_13 13 123 #define GPIOAO_13 13 118 #define GPIO_BSD_EN 14 124 #define GPIO_BSD_EN 14 119 #define GPIO_TEST_N 15 125 #define GPIO_TEST_N 15 120 126 121 #endif /* _DT_BINDINGS_MESON8B_GPIO_H */ 127 #endif /* _DT_BINDINGS_MESON8B_GPIO_H */ 122 128
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.