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