^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * GPIO definitions for Amlogic Meson8 SoCs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Copyright (C) 2014 Beniamino Galvani <b.galvani@gmail.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #ifndef _DT_BINDINGS_MESON8_GPIO_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #define _DT_BINDINGS_MESON8_GPIO_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) /* First GPIO chip */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define GPIOX_0 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define GPIOX_1 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #define GPIOX_2 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define GPIOX_3 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #define GPIOX_4 4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define GPIOX_5 5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define GPIOX_6 6
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define GPIOX_7 7
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define GPIOX_8 8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #define GPIOX_9 9
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define GPIOX_10 10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #define GPIOX_11 11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define GPIOX_12 12
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #define GPIOX_13 13
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #define GPIOX_14 14
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define GPIOX_15 15
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define GPIOX_16 16
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define GPIOX_17 17
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define GPIOX_18 18
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define GPIOX_19 19
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define GPIOX_20 20
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define GPIOX_21 21
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #define GPIOY_0 22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #define GPIOY_1 23
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #define GPIOY_2 24
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #define GPIOY_3 25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #define GPIOY_4 26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #define GPIOY_5 27
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #define GPIOY_6 28
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #define GPIOY_7 29
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #define GPIOY_8 30
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #define GPIOY_9 31
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #define GPIOY_10 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #define GPIOY_11 33
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #define GPIOY_12 34
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #define GPIOY_13 35
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #define GPIOY_14 36
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) #define GPIOY_15 37
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) #define GPIOY_16 38
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #define GPIODV_0 39
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) #define GPIODV_1 40
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) #define GPIODV_2 41
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #define GPIODV_3 42
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) #define GPIODV_4 43
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) #define GPIODV_5 44
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) #define GPIODV_6 45
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) #define GPIODV_7 46
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #define GPIODV_8 47
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) #define GPIODV_9 48
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) #define GPIODV_10 49
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) #define GPIODV_11 50
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) #define GPIODV_12 51
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) #define GPIODV_13 52
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) #define GPIODV_14 53
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) #define GPIODV_15 54
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) #define GPIODV_16 55
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) #define GPIODV_17 56
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) #define GPIODV_18 57
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) #define GPIODV_19 58
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) #define GPIODV_20 59
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) #define GPIODV_21 60
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) #define GPIODV_22 61
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) #define GPIODV_23 62
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) #define GPIODV_24 63
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) #define GPIODV_25 64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) #define GPIODV_26 65
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) #define GPIODV_27 66
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) #define GPIODV_28 67
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) #define GPIODV_29 68
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) #define GPIOH_0 69
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) #define GPIOH_1 70
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) #define GPIOH_2 71
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) #define GPIOH_3 72
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) #define GPIOH_4 73
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) #define GPIOH_5 74
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) #define GPIOH_6 75
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) #define GPIOH_7 76
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) #define GPIOH_8 77
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) #define GPIOH_9 78
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) #define GPIOZ_0 79
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) #define GPIOZ_1 80
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) #define GPIOZ_2 81
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) #define GPIOZ_3 82
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) #define GPIOZ_4 83
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) #define GPIOZ_5 84
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) #define GPIOZ_6 85
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) #define GPIOZ_7 86
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) #define GPIOZ_8 87
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) #define GPIOZ_9 88
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) #define GPIOZ_10 89
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) #define GPIOZ_11 90
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) #define GPIOZ_12 91
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) #define GPIOZ_13 92
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) #define GPIOZ_14 93
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) #define CARD_0 94
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) #define CARD_1 95
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) #define CARD_2 96
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) #define CARD_3 97
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) #define CARD_4 98
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) #define CARD_5 99
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) #define CARD_6 100
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) #define BOOT_0 101
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) #define BOOT_1 102
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) #define BOOT_2 103
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) #define BOOT_3 104
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) #define BOOT_4 105
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) #define BOOT_5 106
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) #define BOOT_6 107
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) #define BOOT_7 108
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) #define BOOT_8 109
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) #define BOOT_9 110
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) #define BOOT_10 111
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) #define BOOT_11 112
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) #define BOOT_12 113
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) #define BOOT_13 114
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) #define BOOT_14 115
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) #define BOOT_15 116
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) #define BOOT_16 117
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) #define BOOT_17 118
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) #define BOOT_18 119
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) /* Second GPIO chip */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) #define GPIOAO_0 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) #define GPIOAO_1 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) #define GPIOAO_2 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) #define GPIOAO_3 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) #define GPIOAO_4 4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) #define GPIOAO_5 5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) #define GPIOAO_6 6
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) #define GPIOAO_7 7
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) #define GPIOAO_8 8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) #define GPIOAO_9 9
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) #define GPIOAO_10 10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) #define GPIOAO_11 11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) #define GPIOAO_12 12
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) #define GPIOAO_13 13
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) #define GPIO_BSD_EN 14
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) #define GPIO_TEST_N 15
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) #endif /* _DT_BINDINGS_MESON8_GPIO_H */