ti-phy.txt 4.1 KB
Newer Older
1
TI PHY: DT DOCUMENTATION FOR PHYs in TI PLATFORMs
2

3 4 5 6 7 8 9 10 11
OMAP CONTROL PHY

Required properties:
 - compatible: Should be one of
 "ti,control-phy-otghs" - if it has otghs_control mailbox register as on OMAP4.
 "ti,control-phy-usb2" - if it has Power down bit in control_dev_conf register
                        e.g. USB2_PHY on OMAP5.
 "ti,control-phy-pipe3" - if it has DPLL and individual Rx & Tx power control
                        e.g. USB3 PHY and SATA PHY on OMAP5.
12 13 14
 "ti,control-phy-pcie" - for pcie to support external clock for pcie and to
			set PCS delay value.
			e.g. PCIE PHY in DRA7x
15
 "ti,control-phy-usb2-dra7" - if it has power down register like USB2 PHY on
16
                        DRA7 platform.
17
 "ti,control-phy-usb2-am437" - if it has power down register like USB2 PHY on
18
                        AM437 platform.
19 20 21 22
 - reg : register ranges as listed in the reg-names property
 - reg-names: "otghs_control" for control-phy-otghs
	      "power", "pcie_pcs" and "control_sma" for control-phy-pcie
	      "power" for all other types
23 24 25 26 27 28 29

omap_control_usb: omap-control-usb@4a002300 {
        compatible = "ti,control-phy-otghs";
        reg = <0x4a00233c 0x4>;
        reg-names = "otghs_control";
};

30 31 32 33
OMAP USB2 PHY

Required properties:
 - compatible: Should be "ti,omap-usb2"
34
 - reg : Address and length of the register set for the device.
35 36
 - #phy-cells: determine the number of cells that should be given in the
   phandle while referencing this phy.
37 38 39 40 41
 - clocks: a list of phandles and clock-specifier pairs, one for each entry in
   clock-names.
 - clock-names: should include:
   * "wkupclk" - wakeup clock.
   * "refclk" - reference clock (optional).
42

43 44 45 46
Optional properties:
 - ctrl-module : phandle of the control module used by PHY driver to power on
   the PHY.

47 48 49 50
This is usually a subnode of ocp2scp to which it is connected.

usb2phy@4a0ad080 {
	compatible = "ti,omap-usb2";
51
	reg = <0x4a0ad080 0x58>;
52
	ctrl-module = <&omap_control_usb>;
53
	#phy-cells = <0>;
54 55
	clocks = <&usb_phy_cm_clk32k>, <&usb_otg_ss_refclk960m>;
	clock-names = "wkupclk", "refclk";
56
};
57

58
TI PIPE3 PHY
59 60

Required properties:
61 62
 - compatible: Should be "ti,phy-usb3", "ti,phy-pipe3-sata" or
   "ti,phy-pipe3-pcie. "ti,omap-usb3" is deprecated.
63 64 65
 - reg : Address and length of the register set for the device.
 - reg-names: The names of the register addresses corresponding to the registers
   filled in "reg".
66 67
 - #phy-cells: determine the number of cells that should be given in the
   phandle while referencing this phy.
68 69 70 71 72 73
 - clocks: a list of phandles and clock-specifier pairs, one for each entry in
   clock-names.
 - clock-names: should include:
   * "wkupclk" - wakeup clock.
   * "sysclk" - system clock.
   * "refclk" - reference clock.
74 75 76 77
   * "dpll_ref" - external dpll ref clk
   * "dpll_ref_m2" - external dpll ref clk
   * "phy-div" - divider for apll
   * "div-clk" - apll clock
78 79 80 81

Optional properties:
 - ctrl-module : phandle of the control module used by PHY driver to power on
   the PHY.
82 83 84
 - id: If there are multiple instance of the same type, in order to
   differentiate between each instance "id" can be used (e.g., multi-lane PCIe
   PHY). If "id" is not provided, it is set to default value of '1'.
85 86 87
 - syscon-pllreset: Handle to system control region that contains the
   CTRL_CORE_SMA_SW_0 register and register offset to the CTRL_CORE_SMA_SW_0
   register that contains the SATA_PLL_SOFT_RESET bit. Only valid for sata_phy.
88 89 90 91

This is usually a subnode of ocp2scp to which it is connected.

usb3phy@4a084400 {
92
	compatible = "ti,phy-usb3";
93 94 95 96 97
	reg = <0x4a084400 0x80>,
	      <0x4a084800 0x64>,
	      <0x4a084c00 0x40>;
	reg-names = "phy_rx", "phy_tx", "pll_ctrl";
	ctrl-module = <&omap_control_usb>;
98
	#phy-cells = <0>;
99 100 101 102 103 104
	clocks = <&usb_phy_cm_clk32k>,
		 <&sys_clkin>,
		 <&usb_otg_ss_refclk960m>;
	clock-names =	"wkupclk",
			"sysclk",
			"refclk";
105
};
106 107 108 109 110 111 112 113 114 115 116 117 118

sata_phy: phy@4A096000 {
	compatible = "ti,phy-pipe3-sata";
	reg = <0x4A096000 0x80>, /* phy_rx */
	      <0x4A096400 0x64>, /* phy_tx */
	      <0x4A096800 0x40>; /* pll_ctrl */
	reg-names = "phy_rx", "phy_tx", "pll_ctrl";
	ctrl-module = <&omap_control_sata>;
	clocks = <&sys_clkin1>, <&sata_ref_clk>;
	clock-names = "sysclk", "refclk";
	syscon-pllreset = <&scm_conf 0x3fc>;
	#phy-cells = <0>;
};