nvidia,tegra124-xusb-padctl.txt 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. Device tree binding for NVIDIA Tegra XUSB pad controller
  2. ========================================================
  3. The Tegra XUSB pad controller manages a set of lanes, each of which can be
  4. assigned to one out of a set of different pads. Some of these pads have an
  5. associated PHY that must be powered up before the pad can be used.
  6. This document defines the device-specific binding for the XUSB pad controller.
  7. Refer to pinctrl-bindings.txt in this directory for generic information about
  8. pin controller device tree bindings and ../phy/phy-bindings.txt for details on
  9. how to describe and reference PHYs in device trees.
  10. Required properties:
  11. --------------------
  12. - compatible: For Tegra124, must contain "nvidia,tegra124-xusb-padctl".
  13. Otherwise, must contain '"nvidia,<chip>-xusb-padctl",
  14. "nvidia-tegra124-xusb-padctl"', where <chip> is tegra132 or tegra210.
  15. - reg: Physical base address and length of the controller's registers.
  16. - resets: Must contain an entry for each entry in reset-names.
  17. See ../reset/reset.txt for details.
  18. - reset-names: Must include the following entries:
  19. - padctl
  20. - #phy-cells: Should be 1. The specifier is the index of the PHY to reference.
  21. See <dt-bindings/pinctrl/pinctrl-tegra-xusb.h> for the list of valid values.
  22. Lane muxing:
  23. ------------
  24. Child nodes contain the pinmux configurations following the conventions from
  25. the pinctrl-bindings.txt document. Typically a single, static configuration is
  26. given and applied at boot time.
  27. Each subnode describes groups of lanes along with parameters and pads that
  28. they should be assigned to. The name of these subnodes is not important. All
  29. subnodes should be parsed solely based on their content.
  30. Each subnode only applies the parameters that are explicitly listed. In other
  31. words, if a subnode that lists a function but no pin configuration parameters
  32. implies no information about any pin configuration parameters. Similarly, a
  33. subnode that describes only an IDDQ parameter implies no information about
  34. what function the pins are assigned to. For this reason even seemingly boolean
  35. values are actually tristates in this binding: unspecified, off or on.
  36. Unspecified is represented as an absent property, and off/on are represented
  37. as integer values 0 and 1.
  38. Required properties:
  39. - nvidia,lanes: An array of strings. Each string is the name of a lane.
  40. Optional properties:
  41. - nvidia,function: A string that is the name of the function (pad) that the
  42. pin or group should be assigned to. Valid values for function names are
  43. listed below.
  44. - nvidia,iddq: Enables IDDQ mode of the lane. (0: no, 1: yes)
  45. Note that not all of these properties are valid for all lanes. Lanes can be
  46. divided into three groups:
  47. - otg-0, otg-1, otg-2:
  48. Valid functions for this group are: "snps", "xusb", "uart", "rsvd".
  49. The nvidia,iddq property does not apply to this group.
  50. - ulpi-0, hsic-0, hsic-1:
  51. Valid functions for this group are: "snps", "xusb".
  52. The nvidia,iddq property does not apply to this group.
  53. - pcie-0, pcie-1, pcie-2, pcie-3, pcie-4, sata-0:
  54. Valid functions for this group are: "pcie", "usb3", "sata", "rsvd".
  55. Example:
  56. ========
  57. SoC file extract:
  58. -----------------
  59. padctl@0,7009f000 {
  60. compatible = "nvidia,tegra124-xusb-padctl";
  61. reg = <0x0 0x7009f000 0x0 0x1000>;
  62. resets = <&tegra_car 142>;
  63. reset-names = "padctl";
  64. #phy-cells = <1>;
  65. };
  66. Board file extract:
  67. -------------------
  68. pcie-controller@0,01003000 {
  69. ...
  70. phys = <&padctl 0>;
  71. phy-names = "pcie";
  72. ...
  73. };
  74. ...
  75. padctl: padctl@0,7009f000 {
  76. pinctrl-0 = <&padctl_default>;
  77. pinctrl-names = "default";
  78. padctl_default: pinmux {
  79. usb3 {
  80. nvidia,lanes = "pcie-0", "pcie-1";
  81. nvidia,function = "usb3";
  82. nvidia,iddq = <0>;
  83. };
  84. pcie {
  85. nvidia,lanes = "pcie-2", "pcie-3",
  86. "pcie-4";
  87. nvidia,function = "pcie";
  88. nvidia,iddq = <0>;
  89. };
  90. sata {
  91. nvidia,lanes = "sata-0";
  92. nvidia,function = "sata";
  93. nvidia,iddq = <0>;
  94. };
  95. };
  96. };