xref: /freebsd/sys/contrib/device-tree/Bindings/phy/phy-mtk-ufs.txt (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1MediaTek Universal Flash Storage (UFS) M-PHY binding
2--------------------------------------------------------
3
4UFS M-PHY nodes are defined to describe on-chip UFS M-PHY hardware macro.
5Each UFS M-PHY node should have its own node.
6
7To bind UFS M-PHY with UFS host controller, the controller node should
8contain a phandle reference to UFS M-PHY node.
9
10Required properties for UFS M-PHY nodes:
11- compatible         : Compatible list, contains the following controller:
12                       "mediatek,mt8183-ufsphy" for ufs phy
13                       persent on MT81xx chipsets.
14- reg                : Address and length of the UFS M-PHY register set.
15- #phy-cells         : This property shall be set to 0.
16- clocks             : List of phandle and clock specifier pairs.
17- clock-names        : List of clock input name strings sorted in the same
18                       order as the clocks property. Following clocks are
19                       mandatory.
20                       "unipro": Unipro core control clock.
21                       "mp": M-PHY core control clock.
22
23Example:
24
25	ufsphy: phy@11fa0000 {
26		compatible = "mediatek,mt8183-ufsphy";
27		reg = <0 0x11fa0000 0 0xc000>;
28		#phy-cells = <0>;
29
30		clocks = <&infracfg_ao INFRACFG_AO_UNIPRO_SCK_CG>,
31			 <&infracfg_ao INFRACFG_AO_UFS_MP_SAP_BCLK_CG>;
32		clock-names = "unipro", "mp";
33	};
34
35	ufshci@11270000 {
36		...
37		phys = <&ufsphy>;
38	};
39