18c2ecf20Sopenharmony_ci* Mediatek Universal Flash Storage (UFS) Host Controller
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciUFS nodes are defined to describe on-chip UFS hardware macro.
48c2ecf20Sopenharmony_ciEach UFS Host Controller should have its own node.
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciTo bind UFS PHY with UFS host controller, the controller node should
78c2ecf20Sopenharmony_cicontain a phandle reference to UFS M-PHY node.
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciRequired properties for UFS nodes:
108c2ecf20Sopenharmony_ci- compatible         : Compatible list, contains the following controller:
118c2ecf20Sopenharmony_ci                       "mediatek,mt8183-ufshci" for MediaTek UFS host controller
128c2ecf20Sopenharmony_ci                       present on MT8183 chipsets.
138c2ecf20Sopenharmony_ci                       "mediatek,mt8192-ufshci" for MediaTek UFS host controller
148c2ecf20Sopenharmony_ci                       present on MT8192 chipsets.
158c2ecf20Sopenharmony_ci- reg                : Address and length of the UFS register set.
168c2ecf20Sopenharmony_ci- phys               : phandle to m-phy.
178c2ecf20Sopenharmony_ci- clocks             : List of phandle and clock specifier pairs.
188c2ecf20Sopenharmony_ci- clock-names        : List of clock input name strings sorted in the same
198c2ecf20Sopenharmony_ci                       order as the clocks property. "ufs" is mandatory.
208c2ecf20Sopenharmony_ci                       "ufs": ufshci core control clock.
218c2ecf20Sopenharmony_ci- freq-table-hz      : Array of <min max> operating frequencies stored in the same
228c2ecf20Sopenharmony_ci                       order as the clocks property. If this property is not
238c2ecf20Sopenharmony_ci                       defined or a value in the array is "0" then it is assumed
248c2ecf20Sopenharmony_ci                       that the frequency is set by the parent clock or a
258c2ecf20Sopenharmony_ci                       fixed rate clock source.
268c2ecf20Sopenharmony_ci- vcc-supply         : phandle to VCC supply regulator node.
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ciExample:
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci	ufsphy: phy@11fa0000 {
318c2ecf20Sopenharmony_ci		...
328c2ecf20Sopenharmony_ci	};
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci	ufshci@11270000 {
358c2ecf20Sopenharmony_ci		compatible = "mediatek,mt8183-ufshci";
368c2ecf20Sopenharmony_ci		reg = <0 0x11270000 0 0x2300>;
378c2ecf20Sopenharmony_ci		interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>;
388c2ecf20Sopenharmony_ci		phys = <&ufsphy>;
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci		clocks = <&infracfg_ao INFRACFG_AO_UFS_CG>;
418c2ecf20Sopenharmony_ci		clock-names = "ufs";
428c2ecf20Sopenharmony_ci		freq-table-hz = <0 0>;
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci		vcc-supply = <&mt_pmic_vemc_ldo_reg>;
458c2ecf20Sopenharmony_ci	};
46