2 --------------------------
4 T-phy controller supports physical layer functionality for a number of
5 controllers on MediaTek SoCs, such as, USB2.0, USB3.0, PCIe, and SATA.
7 Required properties (controller (parent) node):
8 - compatible : should be one of
9 "mediatek,generic-tphy-v1"
10 "mediatek,generic-tphy-v2"
11 "mediatek,mt2701-u3phy" (deprecated)
12 "mediatek,mt2712-u3phy" (deprecated)
13 "mediatek,mt8173-u3phy";
14 make use of "mediatek,generic-tphy-v1" on mt2701 instead and
15 "mediatek,generic-tphy-v2" on mt2712 instead.
16 - clocks : (deprecated, use port's clocks instead) a list of phandle +
17 clock-specifier pairs, one for each entry in clock-names
18 - clock-names : (deprecated, use port's one instead) must contain
19 "u3phya_ref": for reference clock of usb3.0 analog phy.
21 Required nodes : a sub-node is required for each port the controller
22 provides. Address range information including the usual
23 'reg' property is used inside these nodes to describe
24 the controller's topology.
26 Optional properties (controller (parent) node):
27 - reg : offset and length of register shared by multiple ports,
28 exclude port's private register. It is needed on mt2701
29 and mt8173, but not on mt2712.
30 - mediatek,src-ref-clk-mhz : frequency of reference clock for slew rate
32 - mediatek,src-coef : coefficient for slew rate calibrate, depends on
35 Required properties (port (child) node):
36 - reg : address and length of the register set for the port.
37 - clocks : a list of phandle + clock-specifier pairs, one for each
39 - clock-names : must contain
40 "ref": 48M reference clock for HighSpeed analog phy; and 26M
41 reference clock for SuperSpeed analog phy, sometimes is
42 24M, 25M or 27M, depended on platform.
43 - #phy-cells : should be 1 (See second example)
44 cell after port phandle is phy type from:
50 Optional properties (PHY_TYPE_USB2 port (child) node):
51 - mediatek,eye-src : u32, the value of slew rate calibrate
52 - mediatek,eye-vrt : u32, the selection of VRT reference voltage
53 - mediatek,eye-term : u32, the selection of HS_TX TERM reference voltage
54 - mediatek,bc12 : bool, enable BC12 of u2phy if support it
58 u3phy: usb-phy@11290000 {
59 compatible = "mediatek,mt8173-u3phy";
60 reg = <0 0x11290000 0 0x800>;
65 u2port0: usb-phy@11290800 {
66 reg = <0 0x11290800 0 0x100>;
67 clocks = <&apmixedsys CLK_APMIXED_REF2USB_TX>;
72 u3port0: usb-phy@11290900 {
73 reg = <0 0x11290800 0 0x700>;
79 u2port1: usb-phy@11291000 {
80 reg = <0 0x11291000 0 0x100>;
81 clocks = <&apmixedsys CLK_APMIXED_REF2USB_TX>;
87 Specifying phy control of devices
88 ---------------------------------
90 Device nodes should specify the configuration required in their "phys"
91 property, containing a phandle to the phy port node and a device type;
92 phy-names for each port are optional.
96 #include <dt-bindings/phy/phy.h>
100 phys = <&u2port0 PHY_TYPE_USB2>, <&u3port0 PHY_TYPE_USB3>;
101 phy-names = "usb2-0", "usb3-0";
106 Layout differences of banks between mt8173/mt2701 and mt2712
107 -------------------------------------------------------------
112 u2 port0 0x0800 U2PHY_COM
113 u3 port0 0x0900 U3PHYD
117 u2 port1 0x1000 U2PHY_COM
118 u3 port1 0x1100 U3PHYD
122 u2 port2 0x1800 U2PHY_COM
130 u3 port0 0x0700 SPLLC
139 u3 port1 0x1700 SPLLC
148 SPLLC shared by u3 ports and FMREG shared by u2 ports on
149 mt8173/mt2701 are put back into each port; a new bank MISC for
150 u2 ports and CHIP for u3 ports are added on mt2712.