xlnx,zynq-pinctrl.txt 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. Binding for Xilinx Zynq Pinctrl
  2. Required properties:
  3. - compatible: "xlnx,zynq-pinctrl"
  4. - syscon: phandle to SLCR
  5. - reg: Offset and length of pinctrl space in SLCR
  6. Please refer to pinctrl-bindings.txt in this directory for details of the
  7. common pinctrl bindings used by client devices, including the meaning of the
  8. phrase "pin configuration node".
  9. Zynq's pin configuration nodes act as a container for an arbitrary number of
  10. subnodes. Each of these subnodes represents some desired configuration for a
  11. pin, a group, or a list of pins or groups. This configuration can include the
  12. mux function to select on those pin(s)/group(s), and various pin configuration
  13. parameters, such as pull-up, slew rate, etc.
  14. Each configuration node can consist of multiple nodes describing the pinmux and
  15. pinconf options. Those nodes can be pinmux nodes or pinconf nodes.
  16. The name of each subnode is not important; all subnodes should be enumerated
  17. and processed purely based on their content.
  18. Required properties for pinmux nodes are:
  19. - groups: A list of pinmux groups.
  20. - function: The name of a pinmux function to activate for the specified set
  21. of groups.
  22. Required properties for configuration nodes:
  23. One of:
  24. - pins: a list of pin names
  25. - groups: A list of pinmux groups.
  26. The following generic properties as defined in pinctrl-bindings.txt are valid
  27. to specify in a pinmux subnode:
  28. groups, function
  29. The following generic properties as defined in pinctrl-bindings.txt are valid
  30. to specify in a pinconf subnode:
  31. groups, pins, bias-disable, bias-high-impedance, bias-pull-up, slew-rate,
  32. low-power-disable, low-power-enable
  33. Valid arguments for 'slew-rate' are '0' and '1' to select between slow and fast
  34. respectively.
  35. Valid values for groups are:
  36. ethernet0_0_grp, ethernet1_0_grp, mdio0_0_grp, mdio1_0_grp,
  37. qspi0_0_grp, qspi1_0_grp, qspi_fbclk, qspi_cs1_grp, spi0_0_grp - spi0_2_grp,
  38. spi0_X_ssY (X=0..2, Y=0..2), spi1_0_grp - spi1_3_grp,
  39. spi1_X_ssY (X=0..3, Y=0..2), sdio0_0_grp - sdio0_2_grp,
  40. sdio1_0_grp - sdio1_3_grp, sdio0_emio_wp, sdio0_emio_cd, sdio1_emio_wp,
  41. sdio1_emio_cd, smc0_nor, smc0_nor_cs1_grp, smc0_nor_addr25_grp, smc0_nand,
  42. can0_0_grp - can0_10_grp, can1_0_grp - can1_11_grp, uart0_0_grp - uart0_10_grp,
  43. uart1_0_grp - uart1_11_grp, i2c0_0_grp - i2c0_10_grp, i2c1_0_grp - i2c1_10_grp,
  44. ttc0_0_grp - ttc0_2_grp, ttc1_0_grp - ttc1_2_grp, swdt0_0_grp - swdt0_4_grp,
  45. gpio0_0_grp - gpio0_53_grp, usb0_0_grp, usb1_0_grp
  46. Valid values for pins are:
  47. MIO0 - MIO53
  48. Valid values for function are:
  49. ethernet0, ethernet1, mdio0, mdio1, qspi0, qspi1, qspi_fbclk, qspi_cs1,
  50. spi0, spi0_ss, spi1, spi1_ss, sdio0, sdio0_pc, sdio0_cd, sdio0_wp,
  51. sdio1, sdio1_pc, sdio1_cd, sdio1_wp,
  52. smc0_nor, smc0_nor_cs1, smc0_nor_addr25, smc0_nand, can0, can1, uart0, uart1,
  53. i2c0, i2c1, ttc0, ttc1, swdt0, gpio0, usb0, usb1
  54. The following driver-specific properties as defined here are valid to specify in
  55. a pin configuration subnode:
  56. - io-standard: Configure the pin to use the selected IO standard according to
  57. this mapping:
  58. 1: LVCMOS18
  59. 2: LVCMOS25
  60. 3: LVCMOS33
  61. 4: HSTL
  62. Example:
  63. pinctrl0: pinctrl@700 {
  64. compatible = "xlnx,pinctrl-zynq";
  65. reg = <0x700 0x200>;
  66. syscon = <&slcr>;
  67. pinctrl_uart1_default: uart1-default {
  68. mux {
  69. groups = "uart1_10_grp";
  70. function = "uart1";
  71. };
  72. conf {
  73. groups = "uart1_10_grp";
  74. slew-rate = <0>;
  75. io-standard = <1>;
  76. };
  77. conf-rx {
  78. pins = "MIO49";
  79. bias-high-impedance;
  80. };
  81. conf-tx {
  82. pins = "MIO48";
  83. bias-disable;
  84. };
  85. };
  86. };