xref: /freebsd/sys/contrib/device-tree/Bindings/phy/nvidia,tegra20-usb-phy.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotTegra SOC USB PHY
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe device node for Tegra SOC USB PHY:
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel VadotRequired properties :
6*c66ec88fSEmmanuel Vadot - compatible : For Tegra20, must contain "nvidia,tegra20-usb-phy".
7*c66ec88fSEmmanuel Vadot   For Tegra30, must contain "nvidia,tegra30-usb-phy".  Otherwise, must contain
8*c66ec88fSEmmanuel Vadot   "nvidia,<chip>-usb-phy" plus at least one of the above, where <chip> is
9*c66ec88fSEmmanuel Vadot   tegra114, tegra124, tegra132, or tegra210.
10*c66ec88fSEmmanuel Vadot - reg : Defines the following set of registers, in the order listed:
11*c66ec88fSEmmanuel Vadot   - The PHY's own register set.
12*c66ec88fSEmmanuel Vadot     Always present.
13*c66ec88fSEmmanuel Vadot   - The register set of the PHY containing the UTMI pad control registers.
14*c66ec88fSEmmanuel Vadot     Present if-and-only-if phy_type == utmi.
15*c66ec88fSEmmanuel Vadot - phy_type : Should be one of "utmi", "ulpi" or "hsic".
16*c66ec88fSEmmanuel Vadot - clocks : Defines the clocks listed in the clock-names property.
17*c66ec88fSEmmanuel Vadot - clock-names : The following clock names must be present:
18*c66ec88fSEmmanuel Vadot   - reg: The clock needed to access the PHY's own registers. This is the
19*c66ec88fSEmmanuel Vadot     associated EHCI controller's clock. Always present.
20*c66ec88fSEmmanuel Vadot   - pll_u: PLL_U. Always present.
21*c66ec88fSEmmanuel Vadot   - timer: The timeout clock (clk_m). Present if phy_type == utmi.
22*c66ec88fSEmmanuel Vadot   - utmi-pads: The clock needed to access the UTMI pad control registers.
23*c66ec88fSEmmanuel Vadot     Present if phy_type == utmi.
24*c66ec88fSEmmanuel Vadot   - ulpi-link: The clock Tegra provides to the ULPI PHY (usually pad DAP_MCLK2
25*c66ec88fSEmmanuel Vadot     with pad group aka "nvidia,pins" cdev2 and pin mux option config aka
26*c66ec88fSEmmanuel Vadot     "nvidia,function" pllp_out4).
27*c66ec88fSEmmanuel Vadot     Present if phy_type == ulpi, and ULPI link mode is in use.
28*c66ec88fSEmmanuel Vadot - resets : Must contain an entry for each entry in reset-names.
29*c66ec88fSEmmanuel Vadot   See ../reset/reset.txt for details.
30*c66ec88fSEmmanuel Vadot - reset-names : Must include the following entries:
31*c66ec88fSEmmanuel Vadot   - usb: The PHY's own reset signal.
32*c66ec88fSEmmanuel Vadot   - utmi-pads: The reset of the PHY containing the chip-wide UTMI pad control
33*c66ec88fSEmmanuel Vadot     registers. Required even if phy_type == ulpi.
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel VadotRequired properties for phy_type == ulpi:
36*c66ec88fSEmmanuel Vadot  - nvidia,phy-reset-gpio : The GPIO used to reset the PHY.
37*c66ec88fSEmmanuel Vadot
38*c66ec88fSEmmanuel VadotRequired PHY timing params for utmi phy, for all chips:
39*c66ec88fSEmmanuel Vadot  - nvidia,hssync-start-delay : Number of 480 Mhz clock cycles to wait before
40*c66ec88fSEmmanuel Vadot    start of sync launches RxActive
41*c66ec88fSEmmanuel Vadot  - nvidia,elastic-limit : Variable FIFO Depth of elastic input store
42*c66ec88fSEmmanuel Vadot  - nvidia,idle-wait-delay : Number of 480 Mhz clock cycles of idle to wait
43*c66ec88fSEmmanuel Vadot    before declare IDLE.
44*c66ec88fSEmmanuel Vadot  - nvidia,term-range-adj : Range adjusment on terminations
45*c66ec88fSEmmanuel Vadot  - Either one of the following for HS driver output control:
46*c66ec88fSEmmanuel Vadot    - nvidia,xcvr-setup : integer, uses the provided value.
47*c66ec88fSEmmanuel Vadot    - nvidia,xcvr-setup-use-fuses : boolean, indicates that the value is read
48*c66ec88fSEmmanuel Vadot      from the on-chip fuses
49*c66ec88fSEmmanuel Vadot    If both are provided, nvidia,xcvr-setup-use-fuses takes precedence.
50*c66ec88fSEmmanuel Vadot  - nvidia,xcvr-lsfslew : LS falling slew rate control.
51*c66ec88fSEmmanuel Vadot  - nvidia,xcvr-lsrslew :  LS rising slew rate control.
52*c66ec88fSEmmanuel Vadot
53*c66ec88fSEmmanuel VadotRequired PHY timing params for utmi phy, only on Tegra30 and above:
54*c66ec88fSEmmanuel Vadot  - nvidia,xcvr-hsslew : HS slew rate control.
55*c66ec88fSEmmanuel Vadot  - nvidia,hssquelch-level : HS squelch detector level.
56*c66ec88fSEmmanuel Vadot  - nvidia,hsdiscon-level : HS disconnect detector level.
57*c66ec88fSEmmanuel Vadot
58*c66ec88fSEmmanuel VadotOptional properties:
59*c66ec88fSEmmanuel Vadot  - nvidia,has-legacy-mode : boolean indicates whether this controller can
60*c66ec88fSEmmanuel Vadot    operate in legacy mode (as APX 2500 / 2600). In legacy mode some
61*c66ec88fSEmmanuel Vadot    registers are accessed through the APB_MISC base address instead of
62*c66ec88fSEmmanuel Vadot    the USB controller.
63*c66ec88fSEmmanuel Vadot  - nvidia,is-wired : boolean. Indicates whether we can do certain kind of power
64*c66ec88fSEmmanuel Vadot    optimizations for the devices that are always connected. e.g. modem.
65*c66ec88fSEmmanuel Vadot  - dr_mode : dual role mode. Indicates the working mode for the PHY. Can be
66*c66ec88fSEmmanuel Vadot    "host", "peripheral", or "otg". Defaults to "host" if not defined.
67*c66ec88fSEmmanuel Vadot      host means this is a host controller
68*c66ec88fSEmmanuel Vadot      peripheral means it is device controller
69*c66ec88fSEmmanuel Vadot      otg means it can operate as either ("on the go")
70*c66ec88fSEmmanuel Vadot  - nvidia,has-utmi-pad-registers : boolean indicates whether this controller
71*c66ec88fSEmmanuel Vadot    contains the UTMI pad control registers common to all USB controllers.
72*c66ec88fSEmmanuel Vadot
73*c66ec88fSEmmanuel VadotVBUS control (required for dr_mode == otg, optional for dr_mode == host):
74*c66ec88fSEmmanuel Vadot  - vbus-supply: regulator for VBUS
75