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.
17 - #address-cells: the number of cells used to represent physical
19 - #size-cells: the number of cells used to represent the size of an address.
20 - ranges: the address mapping relationship to the parent, defined with
21 - empty value: if optional 'reg' is used.
22 - non-empty value: if optional 'reg' is not used. should set
23 the child's base address to 0, the physical address
24 within parent's address space, and the length of
27 Required nodes : a sub-node is required for each port the controller
28 provides. Address range information including the usual
29 'reg' property is used inside these nodes to describe
30 the controller's topology.
32 Optional properties (controller (parent) node):
33 - reg : offset and length of register shared by multiple ports,
34 exclude port's private register. It is needed on mt2701
35 and mt8173, but not on mt2712.
36 - mediatek,src-ref-clk-mhz : frequency of reference clock for slew rate
38 - mediatek,src-coef : coefficient for slew rate calibrate, depends on
41 Required properties (port (child) node):
42 - reg : address and length of the register set for the port.
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 - clocks : a list of phandle + clock-specifier pairs, one for each
53 - clock-names : may contain
54 "ref": 48M reference clock for HighSpeed (digital) phy; and 26M
55 reference clock for SuperSpeed (digital) phy, sometimes is
56 24M, 25M or 27M, depended on platform.
57 "da_ref": the reference clock of analog phy, used if the clocks
58 of analog and digital phys are separated, otherwise uses
59 "ref" clock only if needed.
61 - mediatek,eye-src : u32, the value of slew rate calibrate
62 - mediatek,eye-vrt : u32, the selection of VRT reference voltage
63 - mediatek,eye-term : u32, the selection of HS_TX TERM reference voltage
64 - mediatek,bc12 : bool, enable BC12 of u2phy if support it
65 - mediatek,discth : u32, the selection of disconnect threshold
66 - mediatek,intr : u32, the selection of internal R (resistance)
70 u3phy: usb-phy@11290000 {
71 compatible = "mediatek,mt8173-u3phy";
72 reg = <0 0x11290000 0 0x800>;
77 u2port0: usb-phy@11290800 {
78 reg = <0 0x11290800 0 0x100>;
79 clocks = <&apmixedsys CLK_APMIXED_REF2USB_TX>;
84 u3port0: usb-phy@11290900 {
85 reg = <0 0x11290800 0 0x700>;
91 u2port1: usb-phy@11291000 {
92 reg = <0 0x11291000 0 0x100>;
93 clocks = <&apmixedsys CLK_APMIXED_REF2USB_TX>;
99 Specifying phy control of devices
100 ---------------------------------
102 Device nodes should specify the configuration required in their "phys"
103 property, containing a phandle to the phy port node and a device type;
104 phy-names for each port are optional.
108 #include <dt-bindings/phy/phy.h>
110 usb30: usb@11270000 {
112 phys = <&u2port0 PHY_TYPE_USB2>, <&u3port0 PHY_TYPE_USB3>;
113 phy-names = "usb2-0", "usb3-0";
118 Layout differences of banks between mt8173/mt2701 and mt2712
119 -------------------------------------------------------------
124 u2 port0 0x0800 U2PHY_COM
125 u3 port0 0x0900 U3PHYD
129 u2 port1 0x1000 U2PHY_COM
130 u3 port1 0x1100 U3PHYD
134 u2 port2 0x1800 U2PHY_COM
142 u3 port0 0x0700 SPLLC
151 u3 port1 0x1700 SPLLC
160 SPLLC shared by u3 ports and FMREG shared by u2 ports on
161 mt8173/mt2701 are put back into each port; a new bank MISC for
162 u2 ports and CHIP for u3 ports are added on mt2712.