phy: qcom-qmp: Add SC8180X UFS phy
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 20 Jan 2021 22:45:31 +0000 (14:45 -0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 4 Feb 2021 07:06:11 +0000 (12:36 +0530)
The UFS phy found in the Qualcomm SC8180X is either the same or very
similar to the phy present in SM8150, so add a compatible and reuse the
SM8150 configuration.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210120224531.1610709-2-bjorn.andersson@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp.c

index a679b5fb7b48b75407b5c951ad14476f80c6241e..0f72f0bdd0281d9368ef8aa5b7803ddd9917bedd 100644 (file)
@@ -4414,6 +4414,9 @@ static const struct of_device_id qcom_qmp_phy_of_match_table[] = {
        }, {
                .compatible = "qcom,sc7180-qmp-usb3-dp-phy",
                /* It's a combo phy */
+       }, {
+               .compatible = "qcom,sc8180x-qmp-ufs-phy",
+               .data = &sm8150_ufsphy_cfg,
        }, {
                .compatible = "qcom,sdm845-qhp-pcie-phy",
                .data = &sdm845_qhp_pciephy_cfg,