18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * GPIO definitions for Amlogic Meson8 SoCs 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2014 Beniamino Galvani <b.galvani@gmail.com> 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_MESON8_GPIO_H 98c2ecf20Sopenharmony_ci#define _DT_BINDINGS_MESON8_GPIO_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci/* First GPIO chip */ 128c2ecf20Sopenharmony_ci#define GPIOX_0 0 138c2ecf20Sopenharmony_ci#define GPIOX_1 1 148c2ecf20Sopenharmony_ci#define GPIOX_2 2 158c2ecf20Sopenharmony_ci#define GPIOX_3 3 168c2ecf20Sopenharmony_ci#define GPIOX_4 4 178c2ecf20Sopenharmony_ci#define GPIOX_5 5 188c2ecf20Sopenharmony_ci#define GPIOX_6 6 198c2ecf20Sopenharmony_ci#define GPIOX_7 7 208c2ecf20Sopenharmony_ci#define GPIOX_8 8 218c2ecf20Sopenharmony_ci#define GPIOX_9 9 228c2ecf20Sopenharmony_ci#define GPIOX_10 10 238c2ecf20Sopenharmony_ci#define GPIOX_11 11 248c2ecf20Sopenharmony_ci#define GPIOX_12 12 258c2ecf20Sopenharmony_ci#define GPIOX_13 13 268c2ecf20Sopenharmony_ci#define GPIOX_14 14 278c2ecf20Sopenharmony_ci#define GPIOX_15 15 288c2ecf20Sopenharmony_ci#define GPIOX_16 16 298c2ecf20Sopenharmony_ci#define GPIOX_17 17 308c2ecf20Sopenharmony_ci#define GPIOX_18 18 318c2ecf20Sopenharmony_ci#define GPIOX_19 19 328c2ecf20Sopenharmony_ci#define GPIOX_20 20 338c2ecf20Sopenharmony_ci#define GPIOX_21 21 348c2ecf20Sopenharmony_ci#define GPIOY_0 22 358c2ecf20Sopenharmony_ci#define GPIOY_1 23 368c2ecf20Sopenharmony_ci#define GPIOY_2 24 378c2ecf20Sopenharmony_ci#define GPIOY_3 25 388c2ecf20Sopenharmony_ci#define GPIOY_4 26 398c2ecf20Sopenharmony_ci#define GPIOY_5 27 408c2ecf20Sopenharmony_ci#define GPIOY_6 28 418c2ecf20Sopenharmony_ci#define GPIOY_7 29 428c2ecf20Sopenharmony_ci#define GPIOY_8 30 438c2ecf20Sopenharmony_ci#define GPIOY_9 31 448c2ecf20Sopenharmony_ci#define GPIOY_10 32 458c2ecf20Sopenharmony_ci#define GPIOY_11 33 468c2ecf20Sopenharmony_ci#define GPIOY_12 34 478c2ecf20Sopenharmony_ci#define GPIOY_13 35 488c2ecf20Sopenharmony_ci#define GPIOY_14 36 498c2ecf20Sopenharmony_ci#define GPIOY_15 37 508c2ecf20Sopenharmony_ci#define GPIOY_16 38 518c2ecf20Sopenharmony_ci#define GPIODV_0 39 528c2ecf20Sopenharmony_ci#define GPIODV_1 40 538c2ecf20Sopenharmony_ci#define GPIODV_2 41 548c2ecf20Sopenharmony_ci#define GPIODV_3 42 558c2ecf20Sopenharmony_ci#define GPIODV_4 43 568c2ecf20Sopenharmony_ci#define GPIODV_5 44 578c2ecf20Sopenharmony_ci#define GPIODV_6 45 588c2ecf20Sopenharmony_ci#define GPIODV_7 46 598c2ecf20Sopenharmony_ci#define GPIODV_8 47 608c2ecf20Sopenharmony_ci#define GPIODV_9 48 618c2ecf20Sopenharmony_ci#define GPIODV_10 49 628c2ecf20Sopenharmony_ci#define GPIODV_11 50 638c2ecf20Sopenharmony_ci#define GPIODV_12 51 648c2ecf20Sopenharmony_ci#define GPIODV_13 52 658c2ecf20Sopenharmony_ci#define GPIODV_14 53 668c2ecf20Sopenharmony_ci#define GPIODV_15 54 678c2ecf20Sopenharmony_ci#define GPIODV_16 55 688c2ecf20Sopenharmony_ci#define GPIODV_17 56 698c2ecf20Sopenharmony_ci#define GPIODV_18 57 708c2ecf20Sopenharmony_ci#define GPIODV_19 58 718c2ecf20Sopenharmony_ci#define GPIODV_20 59 728c2ecf20Sopenharmony_ci#define GPIODV_21 60 738c2ecf20Sopenharmony_ci#define GPIODV_22 61 748c2ecf20Sopenharmony_ci#define GPIODV_23 62 758c2ecf20Sopenharmony_ci#define GPIODV_24 63 768c2ecf20Sopenharmony_ci#define GPIODV_25 64 778c2ecf20Sopenharmony_ci#define GPIODV_26 65 788c2ecf20Sopenharmony_ci#define GPIODV_27 66 798c2ecf20Sopenharmony_ci#define GPIODV_28 67 808c2ecf20Sopenharmony_ci#define GPIODV_29 68 818c2ecf20Sopenharmony_ci#define GPIOH_0 69 828c2ecf20Sopenharmony_ci#define GPIOH_1 70 838c2ecf20Sopenharmony_ci#define GPIOH_2 71 848c2ecf20Sopenharmony_ci#define GPIOH_3 72 858c2ecf20Sopenharmony_ci#define GPIOH_4 73 868c2ecf20Sopenharmony_ci#define GPIOH_5 74 878c2ecf20Sopenharmony_ci#define GPIOH_6 75 888c2ecf20Sopenharmony_ci#define GPIOH_7 76 898c2ecf20Sopenharmony_ci#define GPIOH_8 77 908c2ecf20Sopenharmony_ci#define GPIOH_9 78 918c2ecf20Sopenharmony_ci#define GPIOZ_0 79 928c2ecf20Sopenharmony_ci#define GPIOZ_1 80 938c2ecf20Sopenharmony_ci#define GPIOZ_2 81 948c2ecf20Sopenharmony_ci#define GPIOZ_3 82 958c2ecf20Sopenharmony_ci#define GPIOZ_4 83 968c2ecf20Sopenharmony_ci#define GPIOZ_5 84 978c2ecf20Sopenharmony_ci#define GPIOZ_6 85 988c2ecf20Sopenharmony_ci#define GPIOZ_7 86 998c2ecf20Sopenharmony_ci#define GPIOZ_8 87 1008c2ecf20Sopenharmony_ci#define GPIOZ_9 88 1018c2ecf20Sopenharmony_ci#define GPIOZ_10 89 1028c2ecf20Sopenharmony_ci#define GPIOZ_11 90 1038c2ecf20Sopenharmony_ci#define GPIOZ_12 91 1048c2ecf20Sopenharmony_ci#define GPIOZ_13 92 1058c2ecf20Sopenharmony_ci#define GPIOZ_14 93 1068c2ecf20Sopenharmony_ci#define CARD_0 94 1078c2ecf20Sopenharmony_ci#define CARD_1 95 1088c2ecf20Sopenharmony_ci#define CARD_2 96 1098c2ecf20Sopenharmony_ci#define CARD_3 97 1108c2ecf20Sopenharmony_ci#define CARD_4 98 1118c2ecf20Sopenharmony_ci#define CARD_5 99 1128c2ecf20Sopenharmony_ci#define CARD_6 100 1138c2ecf20Sopenharmony_ci#define BOOT_0 101 1148c2ecf20Sopenharmony_ci#define BOOT_1 102 1158c2ecf20Sopenharmony_ci#define BOOT_2 103 1168c2ecf20Sopenharmony_ci#define BOOT_3 104 1178c2ecf20Sopenharmony_ci#define BOOT_4 105 1188c2ecf20Sopenharmony_ci#define BOOT_5 106 1198c2ecf20Sopenharmony_ci#define BOOT_6 107 1208c2ecf20Sopenharmony_ci#define BOOT_7 108 1218c2ecf20Sopenharmony_ci#define BOOT_8 109 1228c2ecf20Sopenharmony_ci#define BOOT_9 110 1238c2ecf20Sopenharmony_ci#define BOOT_10 111 1248c2ecf20Sopenharmony_ci#define BOOT_11 112 1258c2ecf20Sopenharmony_ci#define BOOT_12 113 1268c2ecf20Sopenharmony_ci#define BOOT_13 114 1278c2ecf20Sopenharmony_ci#define BOOT_14 115 1288c2ecf20Sopenharmony_ci#define BOOT_15 116 1298c2ecf20Sopenharmony_ci#define BOOT_16 117 1308c2ecf20Sopenharmony_ci#define BOOT_17 118 1318c2ecf20Sopenharmony_ci#define BOOT_18 119 1328c2ecf20Sopenharmony_ci 1338c2ecf20Sopenharmony_ci/* Second GPIO chip */ 1348c2ecf20Sopenharmony_ci#define GPIOAO_0 0 1358c2ecf20Sopenharmony_ci#define GPIOAO_1 1 1368c2ecf20Sopenharmony_ci#define GPIOAO_2 2 1378c2ecf20Sopenharmony_ci#define GPIOAO_3 3 1388c2ecf20Sopenharmony_ci#define GPIOAO_4 4 1398c2ecf20Sopenharmony_ci#define GPIOAO_5 5 1408c2ecf20Sopenharmony_ci#define GPIOAO_6 6 1418c2ecf20Sopenharmony_ci#define GPIOAO_7 7 1428c2ecf20Sopenharmony_ci#define GPIOAO_8 8 1438c2ecf20Sopenharmony_ci#define GPIOAO_9 9 1448c2ecf20Sopenharmony_ci#define GPIOAO_10 10 1458c2ecf20Sopenharmony_ci#define GPIOAO_11 11 1468c2ecf20Sopenharmony_ci#define GPIOAO_12 12 1478c2ecf20Sopenharmony_ci#define GPIOAO_13 13 1488c2ecf20Sopenharmony_ci#define GPIO_BSD_EN 14 1498c2ecf20Sopenharmony_ci#define GPIO_TEST_N 15 1508c2ecf20Sopenharmony_ci 1518c2ecf20Sopenharmony_ci#endif /* _DT_BINDINGS_MESON8_GPIO_H */ 152