18c2ecf20Sopenharmony_ciMediaTek Universal Flash Storage (UFS) M-PHY binding 28c2ecf20Sopenharmony_ci-------------------------------------------------------- 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ciUFS M-PHY nodes are defined to describe on-chip UFS M-PHY hardware macro. 58c2ecf20Sopenharmony_ciEach UFS M-PHY node should have its own node. 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciTo bind UFS M-PHY with UFS host controller, the controller node should 88c2ecf20Sopenharmony_cicontain a phandle reference to UFS M-PHY node. 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciRequired properties for UFS M-PHY nodes: 118c2ecf20Sopenharmony_ci- compatible : Compatible list, contains the following controller: 128c2ecf20Sopenharmony_ci "mediatek,mt8183-ufsphy" for ufs phy 138c2ecf20Sopenharmony_ci persent on MT81xx chipsets. 148c2ecf20Sopenharmony_ci- reg : Address and length of the UFS M-PHY register set. 158c2ecf20Sopenharmony_ci- #phy-cells : This property shall be set to 0. 168c2ecf20Sopenharmony_ci- clocks : List of phandle and clock specifier pairs. 178c2ecf20Sopenharmony_ci- clock-names : List of clock input name strings sorted in the same 188c2ecf20Sopenharmony_ci order as the clocks property. Following clocks are 198c2ecf20Sopenharmony_ci mandatory. 208c2ecf20Sopenharmony_ci "unipro": Unipro core control clock. 218c2ecf20Sopenharmony_ci "mp": M-PHY core control clock. 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciExample: 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci ufsphy: phy@11fa0000 { 268c2ecf20Sopenharmony_ci compatible = "mediatek,mt8183-ufsphy"; 278c2ecf20Sopenharmony_ci reg = <0 0x11fa0000 0 0xc000>; 288c2ecf20Sopenharmony_ci #phy-cells = <0>; 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci clocks = <&infracfg_ao INFRACFG_AO_UNIPRO_SCK_CG>, 318c2ecf20Sopenharmony_ci <&infracfg_ao INFRACFG_AO_UFS_MP_SAP_BCLK_CG>; 328c2ecf20Sopenharmony_ci clock-names = "unipro", "mp"; 338c2ecf20Sopenharmony_ci }; 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci ufshci@11270000 { 368c2ecf20Sopenharmony_ci ... 378c2ecf20Sopenharmony_ci phys = <&ufsphy>; 388c2ecf20Sopenharmony_ci }; 39