ste-nomadik-pinctrl.dtsi 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. /*
  2. * Copyright 2012 ST-Ericsson
  3. *
  4. * The code contained herein is licensed under the GNU General Public
  5. * License. You may obtain a copy of the GNU General Public License
  6. * Version 2 or later at the following locations:
  7. *
  8. * http://www.opensource.org/licenses/gpl-license.html
  9. * http://www.gnu.org/copyleft/gpl.html
  10. */
  11. #include <dt-bindings/pinctrl/nomadik.h>
  12. / {
  13. in_nopull: in_nopull {
  14. ste,input = <INPUT_NOPULL>;
  15. };
  16. in_pu: input_pull_up {
  17. ste,input = <INPUT_PULLUP>;
  18. };
  19. in_pd: input_pull_down {
  20. ste,input = <INPUT_PULLDOWN>;
  21. };
  22. out_hi: output_high {
  23. ste,output = <OUTPUT_HIGH>;
  24. };
  25. out_lo: output_low {
  26. ste,output = <OUTPUT_LOW>;
  27. };
  28. gpio_in_pu: gpio_input_pull_up {
  29. ste,gpio = <GPIOMODE_ENABLED>;
  30. ste,input = <INPUT_PULLUP>;
  31. };
  32. gpio_in_pd: gpio_input_pull_down {
  33. ste,gpio = <GPIOMODE_ENABLED>;
  34. ste,input = <INPUT_PULLDOWN>;
  35. };
  36. gpio_out_lo: gpio_output_low {
  37. ste,gpio = <GPIOMODE_ENABLED>;
  38. ste,output = <OUTPUT_LOW>;
  39. };
  40. gpio_out_hi: gpio_output_high {
  41. ste,gpio = <GPIOMODE_ENABLED>;
  42. ste,output = <OUTPUT_HIGH>;
  43. };
  44. slpm_pdis: slpm_pdis {
  45. ste,sleep = <SLPM_ENABLED>;
  46. ste,sleep-wakeup = <SLPM_WAKEUP_DISABLE>;
  47. ste,sleep-pull-disable = <SLPM_PDIS_DISABLED>;
  48. };
  49. slpm_wkup_pdis: slpm_wkup_pdis {
  50. ste,sleep = <SLPM_ENABLED>;
  51. ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
  52. ste,sleep-pull-disable = <SLPM_PDIS_DISABLED>;
  53. };
  54. slpm_wkup_pdis_en: slpm_wkup_pdis_en {
  55. ste,sleep = <SLPM_ENABLED>;
  56. ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
  57. ste,sleep-pull-disable = <SLPM_PDIS_ENABLED>;
  58. };
  59. slpm_in_pu: slpm_in_pu {
  60. ste,sleep = <SLPM_ENABLED>;
  61. ste,sleep-input = <SLPM_INPUT_PULLUP>;
  62. ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
  63. };
  64. slpm_in_pdis: slpm_in_pdis {
  65. ste,sleep = <SLPM_ENABLED>;
  66. ste,sleep-input = <SLPM_DIR_INPUT>;
  67. ste,sleep-wakeup = <SLPM_WAKEUP_DISABLE>;
  68. ste,sleep-pull-disable = <SLPM_PDIS_DISABLED>;
  69. };
  70. slpm_in_wkup_pdis: slpm_in_wkup_pdis {
  71. ste,sleep = <SLPM_ENABLED>;
  72. ste,sleep-input = <SLPM_DIR_INPUT>;
  73. ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
  74. ste,sleep-pull-disable = <SLPM_PDIS_DISABLED>;
  75. };
  76. slpm_in_wkup_pdis_en: slpm_in_wkup_pdis_en {
  77. ste,sleep = <SLPM_ENABLED>;
  78. ste,sleep-input = <SLPM_DIR_INPUT>;
  79. ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
  80. ste,sleep-pull-disable = <SLPM_PDIS_ENABLED>;
  81. };
  82. slpm_in_pu_wkup_pdis_en: slpm_in_wkup_pdis_en {
  83. ste,sleep = <SLPM_ENABLED>;
  84. ste,sleep-input = <SLPM_INPUT_PULLUP>;
  85. ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
  86. ste,sleep-pull-disable = <SLPM_PDIS_ENABLED>;
  87. };
  88. slpm_out_lo: slpm_out_lo {
  89. ste,sleep = <SLPM_ENABLED>;
  90. ste,sleep-output = <SLPM_OUTPUT_LOW>;
  91. ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
  92. };
  93. slpm_out_hi: slpm_out_hi {
  94. ste,sleep = <SLPM_ENABLED>;
  95. ste,sleep-output = <SLPM_OUTPUT_HIGH>;
  96. ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
  97. };
  98. slpm_out_hi_wkup_pdis: slpm_out_hi_wkup_pdis {
  99. ste,sleep = <SLPM_ENABLED>;
  100. ste,sleep-output = <SLPM_OUTPUT_HIGH>;
  101. ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
  102. ste,sleep-pull-disable = <SLPM_PDIS_DISABLED>;
  103. };
  104. slpm_out_lo_pdis: slpm_out_lo_pdis {
  105. ste,sleep = <SLPM_ENABLED>;
  106. ste,sleep-output = <SLPM_OUTPUT_LOW>;
  107. ste,sleep-wakeup = <SLPM_WAKEUP_DISABLE>;
  108. ste,sleep-pull-disable = <SLPM_PDIS_DISABLED>;
  109. };
  110. slpm_out_lo_wkup_pdis: slpm_out_lo_wkup_pdis {
  111. ste,sleep = <SLPM_ENABLED>;
  112. ste,sleep-output = <SLPM_OUTPUT_LOW>;
  113. ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
  114. ste,sleep-pull-disable = <SLPM_PDIS_DISABLED>;
  115. };
  116. slpm_out_wkup_pdis: slpm_out_wkup_pdis {
  117. ste,sleep = <SLPM_ENABLED>;
  118. ste,sleep-output = <SLPM_DIR_OUTPUT>;
  119. ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
  120. ste,sleep-pull-disable = <SLPM_PDIS_DISABLED>;
  121. };
  122. in_wkup_pdis: in_wkup_pdis {
  123. ste,sleep-input = <SLPM_DIR_INPUT>;
  124. ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
  125. ste,sleep-pull-disable = <SLPM_PDIS_DISABLED>;
  126. };
  127. in_wkup_pdis_en: in_wkup_pdis_en {
  128. ste,sleep-input = <SLPM_DIR_INPUT>;
  129. ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
  130. ste,sleep-pull-disable = <SLPM_PDIS_ENABLED>;
  131. };
  132. out_lo_wkup_pdis: out_lo_wkup_pdis {
  133. ste,sleep-output = <SLPM_OUTPUT_LOW>;
  134. ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
  135. ste,sleep-pull-disable = <SLPM_PDIS_DISABLED>;
  136. };
  137. out_hi_wkup_pdis: out_hi_wkup_pdis {
  138. ste,sleep-output = <SLPM_OUTPUT_HIGH>;
  139. ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
  140. ste,sleep-pull-disable = <SLPM_PDIS_DISABLED>;
  141. };
  142. out_wkup_pdis: out_wkup_pdis {
  143. ste,sleep-output = <SLPM_DIR_OUTPUT>;
  144. ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
  145. ste,sleep-pull-disable = <SLPM_PDIS_DISABLED>;
  146. };
  147. };