1c66ec88fSEmmanuel Vadot* Universal Flash Storage (UFS) Host Controller 2c66ec88fSEmmanuel Vadot 3c66ec88fSEmmanuel VadotUFSHC nodes are defined to describe on-chip UFS host controllers. 4c66ec88fSEmmanuel VadotEach UFS controller instance should have its own node. 5c66ec88fSEmmanuel Vadot 6c66ec88fSEmmanuel VadotRequired properties: 7c66ec88fSEmmanuel Vadot- compatible : must contain "jedec,ufs-1.1" or "jedec,ufs-2.0" 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadot For Qualcomm SoCs must contain, as below, an 10c66ec88fSEmmanuel Vadot SoC-specific compatible along with "qcom,ufshc" and 11c66ec88fSEmmanuel Vadot the appropriate jedec string: 12c66ec88fSEmmanuel Vadot "qcom,msm8994-ufshc", "qcom,ufshc", "jedec,ufs-2.0" 13c66ec88fSEmmanuel Vadot "qcom,msm8996-ufshc", "qcom,ufshc", "jedec,ufs-2.0" 14c66ec88fSEmmanuel Vadot "qcom,msm8998-ufshc", "qcom,ufshc", "jedec,ufs-2.0" 15c66ec88fSEmmanuel Vadot "qcom,sdm845-ufshc", "qcom,ufshc", "jedec,ufs-2.0" 16c66ec88fSEmmanuel Vadot "qcom,sm8150-ufshc", "qcom,ufshc", "jedec,ufs-2.0" 172eb4d8dcSEmmanuel Vadot "qcom,sm8250-ufshc", "qcom,ufshc", "jedec,ufs-2.0" 182eb4d8dcSEmmanuel Vadot "qcom,sm8350-ufshc", "qcom,ufshc", "jedec,ufs-2.0" 19*e67e8565SEmmanuel Vadot "qcom,sm8450-ufshc", "qcom,ufshc", "jedec,ufs-2.0" 20c66ec88fSEmmanuel Vadot- interrupts : <interrupt mapping for UFS host controller IRQ> 21c66ec88fSEmmanuel Vadot- reg : <registers mapping> 22c66ec88fSEmmanuel Vadot 23c66ec88fSEmmanuel VadotOptional properties: 24c66ec88fSEmmanuel Vadot- phys : phandle to UFS PHY node 25c66ec88fSEmmanuel Vadot- phy-names : the string "ufsphy" when is found in a node, along 26c66ec88fSEmmanuel Vadot with "phys" attribute, provides phandle to UFS PHY node 27c66ec88fSEmmanuel Vadot- vdd-hba-supply : phandle to UFS host controller supply regulator node 28c66ec88fSEmmanuel Vadot- vcc-supply : phandle to VCC supply regulator node 29c66ec88fSEmmanuel Vadot- vccq-supply : phandle to VCCQ supply regulator node 30c66ec88fSEmmanuel Vadot- vccq2-supply : phandle to VCCQ2 supply regulator node 31c66ec88fSEmmanuel Vadot- vcc-supply-1p8 : For embedded UFS devices, valid VCC range is 1.7-1.95V 32c66ec88fSEmmanuel Vadot or 2.7-3.6V. This boolean property when set, specifies 33c66ec88fSEmmanuel Vadot to use low voltage range of 1.7-1.95V. Note for external 34c66ec88fSEmmanuel Vadot UFS cards this property is invalid and valid VCC range is 35c66ec88fSEmmanuel Vadot always 2.7-3.6V. 36c66ec88fSEmmanuel Vadot- vcc-max-microamp : specifies max. load that can be drawn from vcc supply 37c66ec88fSEmmanuel Vadot- vccq-max-microamp : specifies max. load that can be drawn from vccq supply 38c66ec88fSEmmanuel Vadot- vccq2-max-microamp : specifies max. load that can be drawn from vccq2 supply 39c66ec88fSEmmanuel Vadot 40c66ec88fSEmmanuel Vadot- clocks : List of phandle and clock specifier pairs 41c66ec88fSEmmanuel Vadot- clock-names : List of clock input name strings sorted in the same 42c66ec88fSEmmanuel Vadot order as the clocks property. 43c66ec88fSEmmanuel Vadot "ref_clk" indicates reference clock frequency. 44c66ec88fSEmmanuel Vadot UFS host supplies reference clock to UFS device and UFS device 45c66ec88fSEmmanuel Vadot specification allows host to provide one of the 4 frequencies (19.2 MHz, 46c66ec88fSEmmanuel Vadot 26 MHz, 38.4 MHz, 52MHz) for reference clock. This "ref_clk" entry is 47c66ec88fSEmmanuel Vadot parsed and used to update the reference clock setting in device. 48c66ec88fSEmmanuel Vadot Defaults to 26 MHz(as per specification) if not specified by host. 49c66ec88fSEmmanuel Vadot- freq-table-hz : Array of <min max> operating frequencies stored in the same 50c66ec88fSEmmanuel Vadot order as the clocks property. If this property is not 51c66ec88fSEmmanuel Vadot defined or a value in the array is "0" then it is assumed 52c66ec88fSEmmanuel Vadot that the frequency is set by the parent clock or a 53c66ec88fSEmmanuel Vadot fixed rate clock source. 54c66ec88fSEmmanuel Vadot-lanes-per-direction : number of lanes available per direction - either 1 or 2. 55c66ec88fSEmmanuel Vadot Note that it is assume same number of lanes is used both 56c66ec88fSEmmanuel Vadot directions at once. If not specified, default is 2 lanes per direction. 57c66ec88fSEmmanuel Vadot- #reset-cells : Must be <1> for Qualcomm UFS controllers that expose 58c66ec88fSEmmanuel Vadot PHY reset from the UFS controller. 59c66ec88fSEmmanuel Vadot- resets : reset node register 60c66ec88fSEmmanuel Vadot- reset-names : describe reset node register, the "rst" corresponds to reset the whole UFS IP. 61c66ec88fSEmmanuel Vadot- reset-gpios : A phandle and gpio specifier denoting the GPIO connected 62c66ec88fSEmmanuel Vadot to the RESET pin of the UFS memory device. 63c66ec88fSEmmanuel Vadot 64c66ec88fSEmmanuel VadotNote: If above properties are not defined it can be assumed that the supply 65c66ec88fSEmmanuel Vadotregulators or clocks are always on. 66c66ec88fSEmmanuel Vadot 67c66ec88fSEmmanuel VadotExample: 68c66ec88fSEmmanuel Vadot ufshc@fc598000 { 69c66ec88fSEmmanuel Vadot compatible = "jedec,ufs-1.1"; 70c66ec88fSEmmanuel Vadot reg = <0xfc598000 0x800>; 71c66ec88fSEmmanuel Vadot interrupts = <0 28 0>; 72c66ec88fSEmmanuel Vadot 73c66ec88fSEmmanuel Vadot vdd-hba-supply = <&xxx_reg0>; 74c66ec88fSEmmanuel Vadot vcc-supply = <&xxx_reg1>; 75c66ec88fSEmmanuel Vadot vcc-supply-1p8; 76c66ec88fSEmmanuel Vadot vccq-supply = <&xxx_reg2>; 77c66ec88fSEmmanuel Vadot vccq2-supply = <&xxx_reg3>; 78c66ec88fSEmmanuel Vadot vcc-max-microamp = 500000; 79c66ec88fSEmmanuel Vadot vccq-max-microamp = 200000; 80c66ec88fSEmmanuel Vadot vccq2-max-microamp = 200000; 81c66ec88fSEmmanuel Vadot 82c66ec88fSEmmanuel Vadot clocks = <&core 0>, <&ref 0>, <&phy 0>, <&iface 0>; 83c66ec88fSEmmanuel Vadot clock-names = "core_clk", "ref_clk", "phy_clk", "iface_clk"; 84c66ec88fSEmmanuel Vadot freq-table-hz = <100000000 200000000>, <0 0>, <0 0>, <0 0>; 85c66ec88fSEmmanuel Vadot resets = <&reset 0 1>; 86c66ec88fSEmmanuel Vadot reset-names = "rst"; 87c66ec88fSEmmanuel Vadot phys = <&ufsphy1>; 88c66ec88fSEmmanuel Vadot phy-names = "ufsphy"; 89c66ec88fSEmmanuel Vadot #reset-cells = <1>; 90c66ec88fSEmmanuel Vadot }; 91