1 /* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ 2 /* 3 * Copyright (c) 2023 Amlogic, Inc. All rights reserved. 4 * Author: Huqiang Qin <huqiang.qin@amlogic.com> 5 */ 6 7 #ifndef _DT_BINDINGS_IRQ_MESON_G12A_GPIO_H 8 #define _DT_BINDINGS_IRQ_MESON_G12A_GPIO_H 9 10 /* IRQID[11:0] - GPIOAO[11:0] */ 11 #define IRQID_GPIOAO_0 0 12 #define IRQID_GPIOAO_1 1 13 #define IRQID_GPIOAO_2 2 14 #define IRQID_GPIOAO_3 3 15 #define IRQID_GPIOAO_4 4 16 #define IRQID_GPIOAO_5 5 17 #define IRQID_GPIOAO_6 6 18 #define IRQID_GPIOAO_7 7 19 #define IRQID_GPIOAO_8 8 20 #define IRQID_GPIOAO_9 9 21 #define IRQID_GPIOAO_10 10 22 #define IRQID_GPIOAO_11 11 23 24 /* IRQID[27:12] - GPIOZ[15:0] */ 25 #define IRQID_GPIOZ_0 12 26 #define IRQID_GPIOZ_1 13 27 #define IRQID_GPIOZ_2 14 28 #define IRQID_GPIOZ_3 15 29 #define IRQID_GPIOZ_4 16 30 #define IRQID_GPIOZ_5 17 31 #define IRQID_GPIOZ_6 18 32 #define IRQID_GPIOZ_7 19 33 #define IRQID_GPIOZ_8 20 34 #define IRQID_GPIOZ_9 21 35 #define IRQID_GPIOZ_10 22 36 #define IRQID_GPIOZ_11 23 37 #define IRQID_GPIOZ_12 24 38 #define IRQID_GPIOZ_13 25 39 #define IRQID_GPIOZ_14 26 40 #define IRQID_GPIOZ_15 27 41 42 /* IRQID[36:28] - GPIOH[8:0] */ 43 #define IRQID_GPIOH_0 28 44 #define IRQID_GPIOH_1 29 45 #define IRQID_GPIOH_2 30 46 #define IRQID_GPIOH_3 31 47 #define IRQID_GPIOH_4 32 48 #define IRQID_GPIOH_5 33 49 #define IRQID_GPIOH_6 34 50 #define IRQID_GPIOH_7 35 51 #define IRQID_GPIOH_8 36 52 53 /* IRQID[52:37] - BOOT[15:0] */ 54 #define IRQID_BOOT_0 37 55 #define IRQID_BOOT_1 38 56 #define IRQID_BOOT_2 39 57 #define IRQID_BOOT_3 40 58 #define IRQID_BOOT_4 41 59 #define IRQID_BOOT_5 42 60 #define IRQID_BOOT_6 43 61 #define IRQID_BOOT_7 44 62 #define IRQID_BOOT_8 45 63 #define IRQID_BOOT_9 46 64 #define IRQID_BOOT_10 47 65 #define IRQID_BOOT_11 48 66 #define IRQID_BOOT_12 49 67 #define IRQID_BOOT_13 50 68 #define IRQID_BOOT_14 51 69 #define IRQID_BOOT_15 52 70 71 /* IRQID[60:53] - GPIOC[7:0] */ 72 #define IRQID_GPIOC_0 53 73 #define IRQID_GPIOC_1 54 74 #define IRQID_GPIOC_2 55 75 #define IRQID_GPIOC_3 56 76 #define IRQID_GPIOC_4 57 77 #define IRQID_GPIOC_5 58 78 #define IRQID_GPIOC_6 59 79 #define IRQID_GPIOC_7 60 80 81 /* IRQID[76:61] - GPIOA[15:0] */ 82 #define IRQID_GPIOA_0 61 83 #define IRQID_GPIOA_1 62 84 #define IRQID_GPIOA_2 63 85 #define IRQID_GPIOA_3 64 86 #define IRQID_GPIOA_4 65 87 #define IRQID_GPIOA_5 66 88 #define IRQID_GPIOA_6 67 89 #define IRQID_GPIOA_7 68 90 #define IRQID_GPIOA_8 69 91 #define IRQID_GPIOA_9 70 92 #define IRQID_GPIOA_10 71 93 #define IRQID_GPIOA_11 72 94 #define IRQID_GPIOA_12 73 95 #define IRQID_GPIOA_13 74 96 #define IRQID_GPIOA_14 75 97 #define IRQID_GPIOA_15 76 98 99 /* IRQID[96:77] - GPIOX[19:0] */ 100 #define IRQID_GPIOX_0 77 101 #define IRQID_GPIOX_1 78 102 #define IRQID_GPIOX_2 79 103 #define IRQID_GPIOX_3 80 104 #define IRQID_GPIOX_4 81 105 #define IRQID_GPIOX_5 82 106 #define IRQID_GPIOX_6 83 107 #define IRQID_GPIOX_7 84 108 #define IRQID_GPIOX_8 85 109 #define IRQID_GPIOX_9 86 110 #define IRQID_GPIOX_10 87 111 #define IRQID_GPIOX_11 88 112 #define IRQID_GPIOX_12 89 113 #define IRQID_GPIOX_13 90 114 #define IRQID_GPIOX_14 91 115 #define IRQID_GPIOX_15 92 116 #define IRQID_GPIOX_16 93 117 #define IRQID_GPIOX_17 94 118 #define IRQID_GPIOX_18 95 119 #define IRQID_GPIOX_19 96 120 121 /* IRQID[99:97] - GPIOE[2:0] */ 122 #define IRQID_GPIOE_0 97 123 #define IRQID_GPIOE_1 98 124 #define IRQID_GPIOE_2 99 125 126 #endif /* _DT_BINDINGS_IRQ_MESON_G12A_GPIO_H */ 127
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.