meson8-gpio.h 3.3 KB

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