meson8b-gpio.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /*
  2. * GPIO definitions for Amlogic Meson8b SoCs
  3. *
  4. * Copyright (C) 2015 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_MESON8B_GPIO_H
  15. #define _DT_BINDINGS_MESON8B_GPIO_H
  16. /* EE (CBUS) GPIO chip */
  17. #define GPIOX_0 0
  18. #define GPIOX_1 1
  19. #define GPIOX_2 2
  20. #define GPIOX_3 3
  21. #define GPIOX_4 4
  22. #define GPIOX_5 5
  23. #define GPIOX_6 6
  24. #define GPIOX_7 7
  25. #define GPIOX_8 8
  26. #define GPIOX_9 9
  27. #define GPIOX_10 10
  28. #define GPIOX_11 11
  29. #define GPIOX_16 12
  30. #define GPIOX_17 13
  31. #define GPIOX_18 14
  32. #define GPIOX_19 15
  33. #define GPIOX_20 16
  34. #define GPIOX_21 17
  35. #define GPIOY_0 18
  36. #define GPIOY_1 19
  37. #define GPIOY_3 20
  38. #define GPIOY_6 21
  39. #define GPIOY_7 22
  40. #define GPIOY_8 23
  41. #define GPIOY_9 24
  42. #define GPIOY_10 25
  43. #define GPIOY_11 26
  44. #define GPIOY_12 27
  45. #define GPIOY_13 28
  46. #define GPIOY_14 29
  47. #define GPIODV_9 30
  48. #define GPIODV_24 31
  49. #define GPIODV_25 32
  50. #define GPIODV_26 33
  51. #define GPIODV_27 34
  52. #define GPIODV_28 35
  53. #define GPIODV_29 36
  54. #define GPIOH_0 37
  55. #define GPIOH_1 38
  56. #define GPIOH_2 39
  57. #define GPIOH_3 40
  58. #define GPIOH_4 41
  59. #define GPIOH_5 42
  60. #define GPIOH_6 43
  61. #define GPIOH_7 44
  62. #define GPIOH_8 45
  63. #define GPIOH_9 46
  64. #define CARD_0 47
  65. #define CARD_1 48
  66. #define CARD_2 49
  67. #define CARD_3 50
  68. #define CARD_4 51
  69. #define CARD_5 52
  70. #define CARD_6 53
  71. #define BOOT_0 54
  72. #define BOOT_1 55
  73. #define BOOT_2 56
  74. #define BOOT_3 57
  75. #define BOOT_4 58
  76. #define BOOT_5 59
  77. #define BOOT_6 60
  78. #define BOOT_7 61
  79. #define BOOT_8 62
  80. #define BOOT_9 63
  81. #define BOOT_10 64
  82. #define BOOT_11 65
  83. #define BOOT_12 66
  84. #define BOOT_13 67
  85. #define BOOT_14 68
  86. #define BOOT_15 69
  87. #define BOOT_16 70
  88. #define BOOT_17 71
  89. #define BOOT_18 72
  90. #define DIF_0_P 73
  91. #define DIF_0_N 74
  92. #define DIF_1_P 75
  93. #define DIF_1_N 76
  94. #define DIF_2_P 77
  95. #define DIF_2_N 78
  96. #define DIF_3_P 79
  97. #define DIF_3_N 80
  98. #define DIF_4_P 81
  99. #define DIF_4_N 82
  100. /* AO GPIO chip */
  101. #define GPIOAO_0 0
  102. #define GPIOAO_1 1
  103. #define GPIOAO_2 2
  104. #define GPIOAO_3 3
  105. #define GPIOAO_4 4
  106. #define GPIOAO_5 5
  107. #define GPIOAO_6 6
  108. #define GPIOAO_7 7
  109. #define GPIOAO_8 8
  110. #define GPIOAO_9 9
  111. #define GPIOAO_10 10
  112. #define GPIOAO_11 11
  113. #define GPIOAO_12 12
  114. #define GPIOAO_13 13
  115. #define GPIO_BSD_EN 14
  116. #define GPIO_TEST_N 15
  117. #endif /* _DT_BINDINGS_MESON8B_GPIO_H */