meson-gxl-gpio.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /*
  2. * GPIO definitions for Amlogic Meson GXL 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_GXL_GPIO_H
  15. #define _DT_BINDINGS_MESON_GXL_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 GPIO_TEST_N 10
  27. #define GPIOZ_0 0
  28. #define GPIOZ_1 1
  29. #define GPIOZ_2 2
  30. #define GPIOZ_3 3
  31. #define GPIOZ_4 4
  32. #define GPIOZ_5 5
  33. #define GPIOZ_6 6
  34. #define GPIOZ_7 7
  35. #define GPIOZ_8 8
  36. #define GPIOZ_9 9
  37. #define GPIOZ_10 10
  38. #define GPIOZ_11 11
  39. #define GPIOZ_12 12
  40. #define GPIOZ_13 13
  41. #define GPIOZ_14 14
  42. #define GPIOZ_15 15
  43. #define GPIOH_0 16
  44. #define GPIOH_1 17
  45. #define GPIOH_2 18
  46. #define GPIOH_3 19
  47. #define GPIOH_4 20
  48. #define GPIOH_5 21
  49. #define GPIOH_6 22
  50. #define GPIOH_7 23
  51. #define GPIOH_8 24
  52. #define GPIOH_9 25
  53. #define BOOT_0 26
  54. #define BOOT_1 27
  55. #define BOOT_2 28
  56. #define BOOT_3 29
  57. #define BOOT_4 30
  58. #define BOOT_5 31
  59. #define BOOT_6 32
  60. #define BOOT_7 33
  61. #define BOOT_8 34
  62. #define BOOT_9 35
  63. #define BOOT_10 36
  64. #define BOOT_11 37
  65. #define BOOT_12 38
  66. #define BOOT_13 39
  67. #define BOOT_14 40
  68. #define BOOT_15 41
  69. #define CARD_0 42
  70. #define CARD_1 43
  71. #define CARD_2 44
  72. #define CARD_3 45
  73. #define CARD_4 46
  74. #define CARD_5 47
  75. #define CARD_6 48
  76. #define GPIODV_0 49
  77. #define GPIODV_1 50
  78. #define GPIODV_2 51
  79. #define GPIODV_3 52
  80. #define GPIODV_4 53
  81. #define GPIODV_5 54
  82. #define GPIODV_6 55
  83. #define GPIODV_7 56
  84. #define GPIODV_8 57
  85. #define GPIODV_9 58
  86. #define GPIODV_10 59
  87. #define GPIODV_11 60
  88. #define GPIODV_12 61
  89. #define GPIODV_13 62
  90. #define GPIODV_14 63
  91. #define GPIODV_15 64
  92. #define GPIODV_16 65
  93. #define GPIODV_17 66
  94. #define GPIODV_18 67
  95. #define GPIODV_19 68
  96. #define GPIODV_20 69
  97. #define GPIODV_21 70
  98. #define GPIODV_22 71
  99. #define GPIODV_23 72
  100. #define GPIODV_24 73
  101. #define GPIODV_25 74
  102. #define GPIODV_26 75
  103. #define GPIODV_27 76
  104. #define GPIODV_28 77
  105. #define GPIODV_29 78
  106. #define GPIOX_0 79
  107. #define GPIOX_1 80
  108. #define GPIOX_2 81
  109. #define GPIOX_3 82
  110. #define GPIOX_4 83
  111. #define GPIOX_5 84
  112. #define GPIOX_6 85
  113. #define GPIOX_7 86
  114. #define GPIOX_8 87
  115. #define GPIOX_9 88
  116. #define GPIOX_10 89
  117. #define GPIOX_11 90
  118. #define GPIOX_12 91
  119. #define GPIOX_13 92
  120. #define GPIOX_14 93
  121. #define GPIOX_15 94
  122. #define GPIOX_16 95
  123. #define GPIOX_17 96
  124. #define GPIOX_18 97
  125. #define GPIOCLK_0 98
  126. #define GPIOCLK_1 99
  127. #endif