Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: phy: Add document for phy-mtk-ufs

Add UFS M-PHY node document for MediaTek SoC chips.

Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

authored by

Stanley Chu and committed by
Kishon Vijay Abraham I
fd7bd3b6 2c1a4b0c

+38
+38
Documentation/devicetree/bindings/phy/phy-mtk-ufs.txt
··· 1 + MediaTek Universal Flash Storage (UFS) M-PHY binding 2 + -------------------------------------------------------- 3 + 4 + UFS M-PHY nodes are defined to describe on-chip UFS M-PHY hardware macro. 5 + Each UFS M-PHY node should have its own node. 6 + 7 + To bind UFS M-PHY with UFS host controller, the controller node should 8 + contain a phandle reference to UFS M-PHY node. 9 + 10 + Required 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 + 23 + Example: 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 + };