18c2ecf20Sopenharmony_ciTI PHY: DT DOCUMENTATION FOR PHYs in TI PLATFORMs 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciOMAP CONTROL PHY 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciRequired properties: 68c2ecf20Sopenharmony_ci - compatible: Should be one of 78c2ecf20Sopenharmony_ci "ti,control-phy-otghs" - if it has otghs_control mailbox register as on OMAP4. 88c2ecf20Sopenharmony_ci "ti,control-phy-usb2" - if it has Power down bit in control_dev_conf register 98c2ecf20Sopenharmony_ci e.g. USB2_PHY on OMAP5. 108c2ecf20Sopenharmony_ci "ti,control-phy-pipe3" - if it has DPLL and individual Rx & Tx power control 118c2ecf20Sopenharmony_ci e.g. USB3 PHY and SATA PHY on OMAP5. 128c2ecf20Sopenharmony_ci "ti,control-phy-pcie" - for pcie to support external clock for pcie and to 138c2ecf20Sopenharmony_ci set PCS delay value. 148c2ecf20Sopenharmony_ci e.g. PCIE PHY in DRA7x 158c2ecf20Sopenharmony_ci "ti,control-phy-usb2-dra7" - if it has power down register like USB2 PHY on 168c2ecf20Sopenharmony_ci DRA7 platform. 178c2ecf20Sopenharmony_ci "ti,control-phy-usb2-am437" - if it has power down register like USB2 PHY on 188c2ecf20Sopenharmony_ci AM437 platform. 198c2ecf20Sopenharmony_ci - reg : register ranges as listed in the reg-names property 208c2ecf20Sopenharmony_ci - reg-names: "otghs_control" for control-phy-otghs 218c2ecf20Sopenharmony_ci "power", "pcie_pcs" and "control_sma" for control-phy-pcie 228c2ecf20Sopenharmony_ci "power" for all other types 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ciomap_control_usb: omap-control-usb@4a002300 { 258c2ecf20Sopenharmony_ci compatible = "ti,control-phy-otghs"; 268c2ecf20Sopenharmony_ci reg = <0x4a00233c 0x4>; 278c2ecf20Sopenharmony_ci reg-names = "otghs_control"; 288c2ecf20Sopenharmony_ci}; 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ciTI PIPE3 PHY 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ciRequired properties: 338c2ecf20Sopenharmony_ci - compatible: Should be "ti,phy-usb3", "ti,phy-pipe3-sata" or 348c2ecf20Sopenharmony_ci "ti,phy-pipe3-pcie. "ti,omap-usb3" is deprecated. 358c2ecf20Sopenharmony_ci - reg : Address and length of the register set for the device. 368c2ecf20Sopenharmony_ci - reg-names: The names of the register addresses corresponding to the registers 378c2ecf20Sopenharmony_ci filled in "reg". 388c2ecf20Sopenharmony_ci - #phy-cells: determine the number of cells that should be given in the 398c2ecf20Sopenharmony_ci phandle while referencing this phy. 408c2ecf20Sopenharmony_ci - clocks: a list of phandles and clock-specifier pairs, one for each entry in 418c2ecf20Sopenharmony_ci clock-names. 428c2ecf20Sopenharmony_ci - clock-names: should include: 438c2ecf20Sopenharmony_ci * "wkupclk" - wakeup clock. 448c2ecf20Sopenharmony_ci * "sysclk" - system clock. 458c2ecf20Sopenharmony_ci * "refclk" - reference clock. 468c2ecf20Sopenharmony_ci * "dpll_ref" - external dpll ref clk 478c2ecf20Sopenharmony_ci * "dpll_ref_m2" - external dpll ref clk 488c2ecf20Sopenharmony_ci * "phy-div" - divider for apll 498c2ecf20Sopenharmony_ci * "div-clk" - apll clock 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ciOptional properties: 528c2ecf20Sopenharmony_ci - id: If there are multiple instance of the same type, in order to 538c2ecf20Sopenharmony_ci differentiate between each instance "id" can be used (e.g., multi-lane PCIe 548c2ecf20Sopenharmony_ci PHY). If "id" is not provided, it is set to default value of '1'. 558c2ecf20Sopenharmony_ci - syscon-pllreset: Handle to system control region that contains the 568c2ecf20Sopenharmony_ci CTRL_CORE_SMA_SW_0 register and register offset to the CTRL_CORE_SMA_SW_0 578c2ecf20Sopenharmony_ci register that contains the SATA_PLL_SOFT_RESET bit. Only valid for sata_phy. 588c2ecf20Sopenharmony_ci - syscon-pcs : phandle/offset pair. Phandle to the system control module and the 598c2ecf20Sopenharmony_ci register offset to write the PCS delay value. 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ciDeprecated properties: 628c2ecf20Sopenharmony_ci - ctrl-module : phandle of the control module used by PHY driver to power on 638c2ecf20Sopenharmony_ci the PHY. 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ciRecommended properies: 668c2ecf20Sopenharmony_ci - syscon-phy-power : phandle/offset pair. Phandle to the system control 678c2ecf20Sopenharmony_ci module and the register offset to power on/off the PHY. 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ciThis is usually a subnode of ocp2scp to which it is connected. 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ciusb3phy@4a084400 { 728c2ecf20Sopenharmony_ci compatible = "ti,phy-usb3"; 738c2ecf20Sopenharmony_ci reg = <0x4a084400 0x80>, 748c2ecf20Sopenharmony_ci <0x4a084800 0x64>, 758c2ecf20Sopenharmony_ci <0x4a084c00 0x40>; 768c2ecf20Sopenharmony_ci reg-names = "phy_rx", "phy_tx", "pll_ctrl"; 778c2ecf20Sopenharmony_ci ctrl-module = <&omap_control_usb>; 788c2ecf20Sopenharmony_ci #phy-cells = <0>; 798c2ecf20Sopenharmony_ci clocks = <&usb_phy_cm_clk32k>, 808c2ecf20Sopenharmony_ci <&sys_clkin>, 818c2ecf20Sopenharmony_ci <&usb_otg_ss_refclk960m>; 828c2ecf20Sopenharmony_ci clock-names = "wkupclk", 838c2ecf20Sopenharmony_ci "sysclk", 848c2ecf20Sopenharmony_ci "refclk"; 858c2ecf20Sopenharmony_ci}; 868c2ecf20Sopenharmony_ci 878c2ecf20Sopenharmony_cisata_phy: phy@4a096000 { 888c2ecf20Sopenharmony_ci compatible = "ti,phy-pipe3-sata"; 898c2ecf20Sopenharmony_ci reg = <0x4A096000 0x80>, /* phy_rx */ 908c2ecf20Sopenharmony_ci <0x4A096400 0x64>, /* phy_tx */ 918c2ecf20Sopenharmony_ci <0x4A096800 0x40>; /* pll_ctrl */ 928c2ecf20Sopenharmony_ci reg-names = "phy_rx", "phy_tx", "pll_ctrl"; 938c2ecf20Sopenharmony_ci ctrl-module = <&omap_control_sata>; 948c2ecf20Sopenharmony_ci clocks = <&sys_clkin1>, <&sata_ref_clk>; 958c2ecf20Sopenharmony_ci clock-names = "sysclk", "refclk"; 968c2ecf20Sopenharmony_ci syscon-pllreset = <&scm_conf 0x3fc>; 978c2ecf20Sopenharmony_ci #phy-cells = <0>; 988c2ecf20Sopenharmony_ci}; 99