meson-axg-gpio.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*
  2. * Copyright (c) 2017 Amlogic, Inc. All rights reserved.
  3. * Author: Xingyu Chen <xingyu.chen@amlogic.com>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef _DT_BINDINGS_MESON_AXG_GPIO_H
  8. #define _DT_BINDINGS_MESON_AXG_GPIO_H
  9. /* First GPIO chip */
  10. #define GPIOAO_0 0
  11. #define GPIOAO_1 1
  12. #define GPIOAO_2 2
  13. #define GPIOAO_3 3
  14. #define GPIOAO_4 4
  15. #define GPIOAO_5 5
  16. #define GPIOAO_6 6
  17. #define GPIOAO_7 7
  18. #define GPIOAO_8 8
  19. #define GPIOAO_9 9
  20. #define GPIOAO_10 10
  21. #define GPIOAO_11 11
  22. #define GPIOAO_12 12
  23. #define GPIOAO_13 13
  24. #define GPIO_TEST_N 14
  25. /* Second GPIO chip */
  26. #define GPIOZ_0 0
  27. #define GPIOZ_1 1
  28. #define GPIOZ_2 2
  29. #define GPIOZ_3 3
  30. #define GPIOZ_4 4
  31. #define GPIOZ_5 5
  32. #define GPIOZ_6 6
  33. #define GPIOZ_7 7
  34. #define GPIOZ_8 8
  35. #define GPIOZ_9 9
  36. #define GPIOZ_10 10
  37. #define BOOT_0 11
  38. #define BOOT_1 12
  39. #define BOOT_2 13
  40. #define BOOT_3 14
  41. #define BOOT_4 15
  42. #define BOOT_5 16
  43. #define BOOT_6 17
  44. #define BOOT_7 18
  45. #define BOOT_8 19
  46. #define BOOT_9 20
  47. #define BOOT_10 21
  48. #define BOOT_11 22
  49. #define BOOT_12 23
  50. #define BOOT_13 24
  51. #define BOOT_14 25
  52. #define GPIOA_0 26
  53. #define GPIOA_1 27
  54. #define GPIOA_2 28
  55. #define GPIOA_3 29
  56. #define GPIOA_4 30
  57. #define GPIOA_5 31
  58. #define GPIOA_6 32
  59. #define GPIOA_7 33
  60. #define GPIOA_8 34
  61. #define GPIOA_9 35
  62. #define GPIOA_10 36
  63. #define GPIOA_11 37
  64. #define GPIOA_12 38
  65. #define GPIOA_13 39
  66. #define GPIOA_14 40
  67. #define GPIOA_15 41
  68. #define GPIOA_16 42
  69. #define GPIOA_17 43
  70. #define GPIOA_18 44
  71. #define GPIOA_19 45
  72. #define GPIOA_20 46
  73. #define GPIOX_0 47
  74. #define GPIOX_1 48
  75. #define GPIOX_2 49
  76. #define GPIOX_3 50
  77. #define GPIOX_4 51
  78. #define GPIOX_5 52
  79. #define GPIOX_6 53
  80. #define GPIOX_7 54
  81. #define GPIOX_8 55
  82. #define GPIOX_9 56
  83. #define GPIOX_10 57
  84. #define GPIOX_11 58
  85. #define GPIOX_12 59
  86. #define GPIOX_13 60
  87. #define GPIOX_14 61
  88. #define GPIOX_15 62
  89. #define GPIOX_16 63
  90. #define GPIOX_17 64
  91. #define GPIOX_18 65
  92. #define GPIOX_19 66
  93. #define GPIOX_20 67
  94. #define GPIOX_21 68
  95. #define GPIOX_22 69
  96. #define GPIOY_0 70
  97. #define GPIOY_1 71
  98. #define GPIOY_2 72
  99. #define GPIOY_3 73
  100. #define GPIOY_4 74
  101. #define GPIOY_5 75
  102. #define GPIOY_6 76
  103. #define GPIOY_7 77
  104. #define GPIOY_8 78
  105. #define GPIOY_9 79
  106. #define GPIOY_10 80
  107. #define GPIOY_11 81
  108. #define GPIOY_12 82
  109. #define GPIOY_13 83
  110. #define GPIOY_14 84
  111. #define GPIOY_15 85
  112. #endif /* _DT_BINDINGS_MESON_AXG_GPIO_H */