lantiq,pinctrl-xway.txt 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. Lantiq XWAY pinmux controller
  2. Required properties:
  3. - compatible: "lantiq,pinctrl-xway", (DEPRECATED: Use "lantiq,pinctrl-danube")
  4. "lantiq,pinctrl-xr9", (DEPRECATED: Use "lantiq,xrx100-pinctrl" or
  5. "lantiq,xrx200-pinctrl")
  6. "lantiq,pinctrl-ase", (DEPRECATED: Use "lantiq,ase-pinctrl")
  7. "lantiq,<chip>-pinctrl", where <chip> is:
  8. "ase" (XWAY AMAZON Family)
  9. "danube" (XWAY DANUBE Family)
  10. "xrx100" (XWAY xRX100 Family)
  11. "xrx200" (XWAY xRX200 Family)
  12. "xrx300" (XWAY xRX300 Family)
  13. - reg: Should contain the physical address and length of the gpio/pinmux
  14. register range
  15. Please refer to pinctrl-bindings.txt in this directory for details of the
  16. common pinctrl bindings used by client devices, including the meaning of the
  17. phrase "pin configuration node".
  18. Lantiq's pin configuration nodes act as a container for an arbitrary number of
  19. subnodes. Each of these subnodes represents some desired configuration for a
  20. pin, a group, or a list of pins or groups. This configuration can include the
  21. mux function to select on those group(s), and two pin configuration parameters:
  22. pull-up and open-drain
  23. The name of each subnode is not important as long as it is unique; all subnodes
  24. should be enumerated and processed purely based on their content.
  25. Each subnode only affects those parameters that are explicitly listed. In
  26. other words, a subnode that lists a mux function but no pin configuration
  27. parameters implies no information about any pin configuration parameters.
  28. Similarly, a pin subnode that describes a pullup parameter implies no
  29. information about e.g. the mux function.
  30. We support 2 types of nodes.
  31. Definition of mux function groups:
  32. Required subnode-properties:
  33. - lantiq,groups : An array of strings. Each string contains the name of a group.
  34. Valid values for these names are listed below.
  35. - lantiq,function: A string containing the name of the function to mux to the
  36. group. Valid values for function names are listed below.
  37. Valid values for group and function names:
  38. XWAY: (DEPRECATED: Use DANUBE)
  39. mux groups:
  40. exin0, exin1, exin2, jtag, ebu a23, ebu a24, ebu a25, ebu clk, ebu cs1,
  41. ebu wait, nand ale, nand cs1, nand cle, spi, spi_cs1, spi_cs2, spi_cs3,
  42. spi_cs4, spi_cs5, spi_cs6, asc0, asc0 cts rts, stp, nmi, gpt1, gpt2,
  43. gpt3, clkout0, clkout1, clkout2, clkout3, gnt1, gnt2, gnt3, req1, req2,
  44. req3
  45. functions:
  46. spi, asc, cgu, jtag, exin, stp, gpt, nmi, pci, ebu
  47. XR9: ( DEPRECATED: Use xRX100/xRX200)
  48. mux groups:
  49. exin0, exin1, exin2, exin3, exin4, jtag, ebu a23, ebu a24, ebu a25,
  50. ebu clk, ebu cs1, ebu wait, nand ale, nand cs1, nand cle, nand rdy,
  51. nand rd, spi, spi_cs1, spi_cs2, spi_cs3, spi_cs4, spi_cs5, spi_cs6,
  52. asc0, asc0 cts rts, stp, nmi, gpt1, gpt2, gpt3, clkout0, clkout1,
  53. clkout2, clkout3, gnt1, gnt2, gnt3, gnt4, req1, req2, req3, req4, mdio,
  54. gphy0 led0, gphy0 led1, gphy0 led2, gphy1 led0, gphy1 led1, gphy1 led2
  55. functions:
  56. spi, asc, cgu, jtag, exin, stp, gpt, nmi, pci, ebu, mdio, gphy
  57. AMAZON:
  58. mux groups:
  59. exin0, exin1, exin2, jtag, spi_di, spi_do, spi_clk, spi_cs1, spi_cs2,
  60. spi_cs3, spi_cs4, spi_cs5, spi_cs6, asc, stp, gpt1, gpt2, gpt3, clkout0,
  61. clkout1, clkout2, mdio, dfe led0, dfe led1, ephy led0, ephy led1, ephy led2
  62. functions:
  63. spi, asc, cgu, jtag, exin, stp, gpt, mdio, ephy, dfe
  64. DANUBE:
  65. mux groups:
  66. exin0, exin1, exin2, jtag, ebu a23, ebu a24, ebu a25, ebu clk, ebu cs1,
  67. ebu wait, nand ale, nand cs1, nand cle, spi_di, spi_do, spi_clk, spi_cs1,
  68. spi_cs2, spi_cs3, spi_cs4, spi_cs5, spi_cs6, asc0, asc0 cts rts, stp, nmi,
  69. gpt1, gpt2, gpt3, clkout0, clkout1, clkout2, clkout3, gnt1, gnt2, gnt3,
  70. req1, req2, req3, dfe led0, dfe led1
  71. functions:
  72. spi, asc, cgu, jtag, exin, stp, gpt, nmi, pci, ebu, dfe
  73. xRX100:
  74. mux groups:
  75. exin0, exin1, exin2, exin3, exin4, ebu a23, ebu a24, ebu a25, ebu clk,
  76. ebu cs1, ebu wait, nand ale, nand cs1, nand cle, nand rdy, nand rd,
  77. spi_di, spi_do, spi_clk, spi_cs1, spi_cs2, spi_cs3, spi_cs4, spi_cs5,
  78. spi_cs6, asc0, asc0 cts rts, stp, nmi, gpt1, gpt2, gpt3, clkout0, clkout1,
  79. clkout2, clkout3, gnt1, gnt2, gnt3, gnt4, req1, req2, req3, req4, mdio,
  80. dfe led0, dfe led1
  81. functions:
  82. spi, asc, cgu, exin, stp, gpt, nmi, pci, ebu, mdio, dfe
  83. xRX200:
  84. mux groups:
  85. exin0, exin1, exin2, exin3, exin4, ebu a23, ebu a24, ebu a25, ebu clk,
  86. ebu cs1, ebu wait, nand ale, nand cs1, nand cle, nand rdy, nand rd,
  87. spi_di, spi_do, spi_clk, spi_cs1, spi_cs2, spi_cs3, spi_cs4, spi_cs5,
  88. spi_cs6, usif uart_rx, usif uart_tx, usif uart_rts, usif uart_cts,
  89. usif uart_dtr, usif uart_dsr, usif uart_dcd, usif uart_ri, usif spi_di,
  90. usif spi_do, usif spi_clk, usif spi_cs0, usif spi_cs1, usif spi_cs2,
  91. stp, nmi, gpt1, gpt2, gpt3, clkout0, clkout1, clkout2, clkout3, gnt1,
  92. gnt2, gnt3, gnt4, req1, req2, req3, req4, mdio, dfe led0, dfe led1,
  93. gphy0 led0, gphy0 led1, gphy0 led2, gphy1 led0, gphy1 led1, gphy1 led2
  94. functions:
  95. spi, usif, cgu, exin, stp, gpt, nmi, pci, ebu, mdio, dfe, gphy
  96. xRX300:
  97. mux groups:
  98. exin0, exin1, exin2, exin4, nand ale, nand cs0, nand cs1, nand cle,
  99. nand rdy, nand rd, nand_d0, nand_d1, nand_d2, nand_d3, nand_d4, nand_d5,
  100. nand_d6, nand_d7, nand_d1, nand wr, nand wp, nand se, spi_di, spi_do,
  101. spi_clk, spi_cs1, spi_cs4, spi_cs6, usif uart_rx, usif uart_tx,
  102. usif spi_di, usif spi_do, usif spi_clk, usif spi_cs0, stp, clkout2,
  103. mdio, dfe led0, dfe led1, ephy0 led0, ephy0 led1, ephy1 led0, ephy1 led1
  104. functions:
  105. spi, usif, cgu, exin, stp, ebu, mdio, dfe, ephy
  106. Definition of pin configurations:
  107. Required subnode-properties:
  108. - lantiq,pins : An array of strings. Each string contains the name of a pin.
  109. Valid values for these names are listed below.
  110. Optional subnode-properties:
  111. - lantiq,pull: Integer, representing the pull-down/up to apply to the pin.
  112. 0: none, 1: down, 2: up.
  113. - lantiq,open-drain: Boolean, enables open-drain on the defined pin.
  114. Valid values for XWAY pin names: (DEPRECATED: Use DANUBE)
  115. Pinconf pins can be referenced via the names io0-io31.
  116. Valid values for XR9 pin names: (DEPRECATED: Use xrX100/xRX200)
  117. Pinconf pins can be referenced via the names io0-io55.
  118. Valid values for AMAZON pin names:
  119. Pinconf pins can be referenced via the names io0-io31.
  120. Valid values for DANUBE pin names:
  121. Pinconf pins can be referenced via the names io0-io31.
  122. Valid values for xRX100 pin names:
  123. Pinconf pins can be referenced via the names io0-io55.
  124. Valid values for xRX200 pin names:
  125. Pinconf pins can be referenced via the names io0-io49.
  126. Valid values for xRX300 pin names:
  127. Pinconf pins can be referenced via the names io0-io1,io3-io6,io8-io11,
  128. io13-io19,io23-io27,io34-io36,
  129. io42-io43,io48-io61.
  130. Example:
  131. gpio: pinmux@E100B10 {
  132. compatible = "lantiq,danube-pinctrl";
  133. pinctrl-names = "default";
  134. pinctrl-0 = <&state_default>;
  135. #gpio-cells = <2>;
  136. gpio-controller;
  137. reg = <0xE100B10 0xA0>;
  138. state_default: pinmux {
  139. stp {
  140. lantiq,groups = "stp";
  141. lantiq,function = "stp";
  142. };
  143. pci {
  144. lantiq,groups = "gnt1";
  145. lantiq,function = "pci";
  146. };
  147. conf_out {
  148. lantiq,pins = "io4", "io5", "io6"; /* stp */
  149. lantiq,open-drain;
  150. lantiq,pull = <0>;
  151. };
  152. };
  153. };