meson-gxbb-gpio.h 3.2 KB

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