pinmux.rst 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. .. SPDX-License-Identifier: GPL-2.0+:
  2. pinmux command
  3. ==============
  4. Synopsis
  5. --------
  6. ::
  7. pinmux list
  8. pinmux dev [pincontroller-name]
  9. pinmux status [-a | pin-name]
  10. Description
  11. -----------
  12. The pinmux command is used to show the pin-controller muxing.
  13. The 'pinmux list' command diplays the available pin-controller.
  14. The 'pinmux dev' command selects the pin-controller for next commands.
  15. pincontroller-name
  16. name of the pin-controller to select
  17. The 'pinmux status' command displays the pin muxing information.
  18. \-a
  19. display pin muxing of all pin-controllers.
  20. pin-name
  21. name of the pin to display
  22. Example
  23. -------
  24. ::
  25. => pinmux list
  26. | Device | Driver | Parent
  27. | pinctrl-gpio | sandbox_pinctrl_gpio | root_driver
  28. | pinctrl | sandbox_pinctrl | root_driver
  29. =>
  30. => pinmux dev pinctrl
  31. dev: pinctrl
  32. =>
  33. => pinmux status
  34. P0 : UART TX.
  35. P1 : UART RX.
  36. P2 : I2S SCK.
  37. P3 : I2S SD.
  38. P4 : I2S WS.
  39. P5 : GPIO0 bias-pull-up input-disable.
  40. P6 : GPIO1 drive-open-drain.
  41. P7 : GPIO2 bias-pull-down input-enable.
  42. P8 : GPIO3 bias-disable.
  43. =>
  44. => pinmux status P0
  45. P0 : UART TX.
  46. =>
  47. => pinmux status -a
  48. --------------------------
  49. pinctrl-gpio:
  50. a0 : gpio input .
  51. a1 : gpio input .
  52. a2 : gpio input .
  53. a3 : gpio input .
  54. a4 : gpio input .
  55. a5 : gpio output .
  56. a6 : gpio output .
  57. a7 : gpio input .
  58. a8 : gpio input .
  59. a9 : gpio input .
  60. --------------------------
  61. pinctrl:
  62. P0 : UART TX.
  63. P1 : UART RX.
  64. P2 : I2S SCK.
  65. P3 : I2S SD.
  66. P4 : I2S WS.
  67. P5 : GPIO0 bias-pull-up input-disable.
  68. P6 : GPIO1 drive-open-drain.
  69. P7 : GPIO2 bias-pull-down input-enable.
  70. P8 : GPIO3 bias-disable.
  71. Configuration
  72. -------------
  73. The pinmux command is only available if CONFIG_CMD_PINMUX=y.
  74. Return value
  75. ------------
  76. The return value $? is set to 0 (true) if the command succeded and to 1 (false)
  77. otherwise.