ste,nomadik.txt 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. ST Ericsson Nomadik pinmux controller
  2. Required properties:
  3. - compatible: "stericsson,db8500-pinctrl", "stericsson,db8540-pinctrl",
  4. "stericsson,stn8815-pinctrl"
  5. - nomadik-gpio-chips: array of phandles to the corresponding GPIO chips
  6. (these have the register ranges used by the pin controller).
  7. - prcm: phandle to the PRCMU managing the back end of this pin controller
  8. Please refer to pinctrl-bindings.txt in this directory for details of the
  9. common pinctrl bindings used by client devices, including the meaning of the
  10. phrase "pin configuration node".
  11. ST Ericsson's pin configuration nodes act as a container for an arbitrary number of
  12. subnodes. Each of these subnodes represents some desired configuration for a
  13. pin, a group, or a list of pins or groups. This configuration can include the
  14. mux function to select on those pin(s)/group(s), and various pin configuration
  15. parameters, such as input, output, pull up, pull down...
  16. The name of each subnode is not important; all subnodes should be enumerated
  17. and processed purely based on their content. The subnodes use the generic
  18. pin multiplexing node layout from the standard pin control bindings
  19. (see pinctrl-bindings.txt):
  20. Required pin multiplexing subnode properties:
  21. - function: A string containing the name of the function to mux to the
  22. pin or group.
  23. - groups : An array of strings. Each string contains the name of a pin
  24. group that will be combined with the function to form a multiplexing
  25. set-up.
  26. Required pin configuration subnode properties:
  27. - pins: A string array describing the pins affected by the configuration
  28. in the node.
  29. - ste,config: Handle of pin configuration node
  30. (e.g. ste,config = <&slpm_in_wkup_pdis>)
  31. - ste,input : <0/1/2>
  32. 0: input with no pull
  33. 1: input with pull up,
  34. 2: input with pull down,
  35. - ste,output: <0/1/2>
  36. 0: output low,
  37. 1: output high,
  38. 2: output (value is not specified).
  39. - ste,sleep: <0/1>
  40. 0: sleep mode disable,
  41. 1: sleep mode enable.
  42. - ste,sleep-input: <0/1/2/3>
  43. 0: sleep input with no pull,
  44. 1: sleep input with pull up,
  45. 2: sleep input with pull down.
  46. 3: sleep input and keep last input configuration (no pull, pull up or pull down).
  47. - ste,sleep-output: <0/1/2>
  48. 0: sleep output low,
  49. 1: sleep output high,
  50. 2: sleep output (value is not specified).
  51. - ste,sleep-gpio: <0/1>
  52. 0: disable sleep gpio mode,
  53. 1: enable sleep gpio mode.
  54. - ste,sleep-wakeup: <0/1>
  55. 0: wake-up detection enabled,
  56. 1: wake-up detection disabled.
  57. - ste,sleep-pull-disable: <0/1>
  58. 0: GPIO pull-up or pull-down resistor is enabled, when pin is an input,
  59. 1: GPIO pull-up and pull-down resistor are disabled.
  60. Example board file extract:
  61. pinctrl@80157000 {
  62. compatible = "stericsson,db8500-pinctrl";
  63. nomadik-gpio-chips = <&gpio0>, <&gpio1>, <&gpio2>, <&gpio3>;
  64. prcm = <&prcmu>;
  65. pinctrl-names = "default";
  66. slpm_in_wkup_pdis: slpm_in_wkup_pdis {
  67. ste,sleep = <1>;
  68. ste,sleep-input = <3>;
  69. ste,sleep-wakeup = <1>;
  70. ste,sleep-pull-disable = <0>;
  71. };
  72. slpm_out_hi_wkup_pdis: slpm_out_hi_wkup_pdis {
  73. ste,sleep = <1>;
  74. ste,sleep-output = <1>;
  75. ste,sleep-wakeup = <1>;
  76. ste,sleep-pull-disable = <0>;
  77. };
  78. slpm_out_wkup_pdis: slpm_out_wkup_pdis {
  79. ste,sleep = <1>;
  80. ste,sleep-output = <2>;
  81. ste,sleep-wakeup = <1>;
  82. ste,sleep-pull-disable = <0>;
  83. };
  84. uart0 {
  85. uart0_default_mux: uart0_mux {
  86. u0_default_mux {
  87. function = "u0";
  88. pins = "u0_a_1";
  89. };
  90. };
  91. uart0_default_mode: uart0_default {
  92. uart0_default_cfg1 {
  93. pins = "GPIO0", "GPIO2";
  94. ste,input = <1>;
  95. };
  96. uart0_default_cfg2 {
  97. pins = "GPIO1", "GPIO3";
  98. ste,output = <1>;
  99. };
  100. };
  101. uart0_sleep_mode: uart0_sleep {
  102. uart0_sleep_cfg1 {
  103. pins = "GPIO0", "GPIO2";
  104. ste,config = <&slpm_in_wkup_pdis>;
  105. };
  106. uart0_sleep_cfg2 {
  107. pins = "GPIO1";
  108. ste,config = <&slpm_out_hi_wkup_pdis>;
  109. };
  110. uart0_sleep_cfg3 {
  111. pins = "GPIO3";
  112. ste,config = <&slpm_out_wkup_pdis>;
  113. };
  114. };
  115. };
  116. };
  117. uart@80120000 {
  118. compatible = "arm,pl011", "arm,primecell";
  119. reg = <0x80120000 0x1000>;
  120. interrupts = <0 11 0x4>;
  121. pinctrl-names = "default","sleep";
  122. pinctrl-0 = <&uart0_default_mux>, <&uart0_default_mode>;
  123. pinctrl-1 = <&uart0_sleep_mode>;
  124. };