Skip to content

Commit 607c101

Browse files
Bartosz Golaszewskivinodkoul
authored andcommitted
phy: qualcomm: phy-qcom-qmp-ufs: add definitions for sa8775p
Add QMP PHY config for sa8775p and add support for the new compatible. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Link: https://lore.kernel.org/r/20230411130446.401440-4-brgl@bgdev.pl Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent e5796a9 commit 607c101

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

drivers/phy/qualcomm/phy-qcom-qmp-ufs.c

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,40 @@ static const struct qmp_phy_cfg msm8996_ufsphy_cfg = {
853853
.no_pcs_sw_reset = true,
854854
};
855855

856+
static const struct qmp_phy_cfg sa8775p_ufsphy_cfg = {
857+
.lanes = 2,
858+
859+
.offsets = &qmp_ufs_offsets,
860+
861+
.tbls = {
862+
.serdes = sm8350_ufsphy_serdes,
863+
.serdes_num = ARRAY_SIZE(sm8350_ufsphy_serdes),
864+
.tx = sm8350_ufsphy_tx,
865+
.tx_num = ARRAY_SIZE(sm8350_ufsphy_tx),
866+
.rx = sm8350_ufsphy_rx,
867+
.rx_num = ARRAY_SIZE(sm8350_ufsphy_rx),
868+
.pcs = sm8350_ufsphy_pcs,
869+
.pcs_num = ARRAY_SIZE(sm8350_ufsphy_pcs),
870+
},
871+
.tbls_hs_b = {
872+
.serdes = sm8350_ufsphy_hs_b_serdes,
873+
.serdes_num = ARRAY_SIZE(sm8350_ufsphy_hs_b_serdes),
874+
},
875+
.tbls_hs_g4 = {
876+
.tx = sm8350_ufsphy_g4_tx,
877+
.tx_num = ARRAY_SIZE(sm8350_ufsphy_g4_tx),
878+
.rx = sm8350_ufsphy_g4_rx,
879+
.rx_num = ARRAY_SIZE(sm8350_ufsphy_g4_rx),
880+
.pcs = sm8350_ufsphy_g4_pcs,
881+
.pcs_num = ARRAY_SIZE(sm8350_ufsphy_g4_pcs),
882+
},
883+
.clk_list = sm8450_ufs_phy_clk_l,
884+
.num_clks = ARRAY_SIZE(sm8450_ufs_phy_clk_l),
885+
.vreg_list = qmp_phy_vreg_l,
886+
.num_vregs = ARRAY_SIZE(qmp_phy_vreg_l),
887+
.regs = ufsphy_v5_regs_layout,
888+
};
889+
856890
static const struct qmp_phy_cfg sc8280xp_ufsphy_cfg = {
857891
.lanes = 2,
858892

@@ -1600,6 +1634,9 @@ static const struct of_device_id qmp_ufs_of_match_table[] = {
16001634
}, {
16011635
.compatible = "qcom,msm8998-qmp-ufs-phy",
16021636
.data = &sdm845_ufsphy_cfg,
1637+
}, {
1638+
.compatible = "qcom,sa8775p-qmp-ufs-phy",
1639+
.data = &sa8775p_ufsphy_cfg,
16031640
}, {
16041641
.compatible = "qcom,sc8180x-qmp-ufs-phy",
16051642
.data = &sm8150_ufsphy_cfg,

0 commit comments

Comments
 (0)