nvidia,tegra20-pinmux.txt 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. NVIDIA Tegra20 pinmux controller
  2. Required properties:
  3. - compatible: "nvidia,tegra20-pinmux"
  4. - reg: Should contain the register physical address and length for each of
  5. the tri-state, mux, pull-up/down, and pad control register sets.
  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. Tegra'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, tristate, drive strength, etc.
  14. The name of each subnode is not important; all subnodes should be enumerated
  15. and processed purely based on their content.
  16. Each subnode only affects those parameters that are explicitly listed. In
  17. other words, a subnode that lists a mux function but no pin configuration
  18. parameters implies no information about any pin configuration parameters.
  19. Similarly, a pin subnode that describes a pullup parameter implies no
  20. information about e.g. the mux function or tristate parameter. For this
  21. reason, even seemingly boolean values are actually tristates in this binding:
  22. unspecified, off, or on. Unspecified is represented as an absent property,
  23. and off/on are represented as integer values 0 and 1.
  24. Required subnode-properties:
  25. - nvidia,pins : An array of strings. Each string contains the name of a pin or
  26. group. Valid values for these names are listed below.
  27. Optional subnode-properties:
  28. - nvidia,function: A string containing the name of the function to mux to the
  29. pin or group. Valid values for function names are listed below. See the Tegra
  30. TRM to determine which are valid for each pin or group.
  31. - nvidia,pull: Integer, representing the pull-down/up to apply to the pin.
  32. 0: none, 1: down, 2: up.
  33. - nvidia,tristate: Integer.
  34. 0: drive, 1: tristate.
  35. - nvidia,high-speed-mode: Integer. Enable high speed mode the pins.
  36. 0: no, 1: yes.
  37. - nvidia,schmitt: Integer. Enables Schmitt Trigger on the input.
  38. 0: no, 1: yes.
  39. - nvidia,low-power-mode: Integer. Valid values 0-3. 0 is least power, 3 is
  40. most power. Controls the drive power or current. See "Low Power Mode"
  41. or "LPMD1" and "LPMD0" in the Tegra TRM.
  42. - nvidia,pull-down-strength: Integer. Controls drive strength. 0 is weakest.
  43. The range of valid values depends on the pingroup. See "CAL_DRVDN" in the
  44. Tegra TRM.
  45. - nvidia,pull-up-strength: Integer. Controls drive strength. 0 is weakest.
  46. The range of valid values depends on the pingroup. See "CAL_DRVUP" in the
  47. Tegra TRM.
  48. - nvidia,slew-rate-rising: Integer. Controls rising signal slew rate. 0 is
  49. fastest. The range of valid values depends on the pingroup. See
  50. "DRVDN_SLWR" in the Tegra TRM.
  51. - nvidia,slew-rate-falling: Integer. Controls falling signal slew rate. 0 is
  52. fastest. The range of valid values depends on the pingroup. See
  53. "DRVUP_SLWF" in the Tegra TRM.
  54. Note that many of these properties are only valid for certain specific pins
  55. or groups. See the Tegra TRM and various pinmux spreadsheets for complete
  56. details regarding which groups support which functionality. The Linux pinctrl
  57. driver may also be a useful reference, since it consolidates, disambiguates,
  58. and corrects data from all those sources.
  59. Valid values for pin and group names are:
  60. mux groups:
  61. These all support nvidia,function, nvidia,tristate, and many support
  62. nvidia,pull.
  63. ata, atb, atc, atd, ate, cdev1, cdev2, crtp, csus, dap1, dap2, dap3, dap4,
  64. ddc, dta, dtb, dtc, dtd, dte, dtf, gma, gmb, gmc, gmd, gme, gpu, gpu7,
  65. gpv, hdint, i2cp, irrx, irtx, kbca, kbcb, kbcc, kbcd, kbce, kbcf, lcsn,
  66. ld0, ld1, ld2, ld3, ld4, ld5, ld6, ld7, ld8, ld9, ld10, ld11, ld12, ld13,
  67. ld14, ld15, ld16, ld17, ldc, ldi, lhp0, lhp1, lhp2, lhs, lm0, lm1, lpp,
  68. lpw0, lpw1, lpw2, lsc0, lsc1, lsck, lsda, lsdi, lspi, lvp0, lvp1, lvs,
  69. owc, pmc, pta, rm, sdb, sdc, sdd, sdio1, slxa, slxc, slxd, slxk, spdi,
  70. spdo, spia, spib, spic, spid, spie, spif, spig, spih, uaa, uab, uac, uad,
  71. uca, ucb, uda.
  72. tristate groups:
  73. These only support nvidia,pull.
  74. ck32, ddrc, pmca, pmcb, pmcc, pmcd, pmce, xm2c, xm2d, ls, lc, ld17_0,
  75. ld19_18, ld21_20, ld23_22.
  76. drive groups:
  77. With some exceptions, these support nvidia,high-speed-mode,
  78. nvidia,schmitt, nvidia,low-power-mode, nvidia,pull-down-strength,
  79. nvidia,pull-up-strength, nvidia,slew-rate-rising, nvidia,slew-rate-falling.
  80. drive_ao1, drive_ao2, drive_at1, drive_at2, drive_cdev1, drive_cdev2,
  81. drive_csus, drive_dap1, drive_dap2, drive_dap3, drive_dap4, drive_dbg,
  82. drive_lcd1, drive_lcd2, drive_sdmmc2, drive_sdmmc3, drive_spi, drive_uaa,
  83. drive_uab, drive_uart2, drive_uart3, drive_vi1, drive_vi2, drive_xm2a,
  84. drive_xm2c, drive_xm2d, drive_xm2clk, drive_sdio1, drive_crt, drive_ddc,
  85. drive_gma, drive_gmb, drive_gmc, drive_gmd, drive_gme, drive_owr,
  86. drive_uda.
  87. Valid values for nvidia,functions are:
  88. ahb_clk, apb_clk, audio_sync, crt, dap1, dap2, dap3, dap4, dap5,
  89. displaya, displayb, emc_test0_dll, emc_test1_dll, gmi, gmi_int,
  90. hdmi, i2cp, i2c1, i2c2, i2c3, ide, irda, kbc, mio, mipi_hs, nand,
  91. osc, owr, pcie, plla_out, pllc_out1, pllm_out1, pllp_out2, pllp_out3,
  92. pllp_out4, pwm, pwr_intr, pwr_on, rsvd1, rsvd2, rsvd3, rsvd4, rtck,
  93. sdio1, sdio2, sdio3, sdio4, sflash, spdif, spi1, spi2, spi2_alt,
  94. spi3, spi4, trace, twc, uarta, uartb, uartc, uartd, uarte, ulpi,
  95. vi, vi_sensor_clk, xio
  96. Example:
  97. pinctrl@70000000 {
  98. compatible = "nvidia,tegra20-pinmux";
  99. reg = < 0x70000014 0x10 /* Tri-state registers */
  100. 0x70000080 0x20 /* Mux registers */
  101. 0x700000a0 0x14 /* Pull-up/down registers */
  102. 0x70000868 0xa8 >; /* Pad control registers */
  103. };
  104. Example board file extract:
  105. pinctrl@70000000 {
  106. sdio4_default: sdio4_default {
  107. atb {
  108. nvidia,pins = "atb", "gma", "gme";
  109. nvidia,function = "sdio4";
  110. nvidia,pull = <0>;
  111. nvidia,tristate = <0>;
  112. };
  113. };
  114. };
  115. sdhci@c8000600 {
  116. pinctrl-names = "default";
  117. pinctrl-0 = <&sdio4_default>;
  118. };