Skip to content

Commit 572e9fd

Browse files
Loic Poulainlumag
authored andcommitted
drm/msm/dsi: Add phy configuration for QCM2290
The QCM2290 SoC a the 14nm (V2.0) single DSI phy. The platform is not fully compatible with the standard 14nm PHY, so it requires a separate compatible and config entry. Signed-off-by: Loic Poulain <[email protected]> [DB: rebased and updated commit msg] Signed-off-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/504578/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 2387771 commit 572e9fd

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

drivers/gpu/drm/msm/dsi/phy/dsi_phy.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,8 @@ static const struct of_device_id dsi_phy_dt_match[] = {
549549
#ifdef CONFIG_DRM_MSM_DSI_14NM_PHY
550550
{ .compatible = "qcom,dsi-phy-14nm",
551551
.data = &dsi_phy_14nm_cfgs },
552+
{ .compatible = "qcom,dsi-phy-14nm-2290",
553+
.data = &dsi_phy_14nm_2290_cfgs },
552554
{ .compatible = "qcom,dsi-phy-14nm-660",
553555
.data = &dsi_phy_14nm_660_cfgs },
554556
{ .compatible = "qcom,dsi-phy-14nm-8953",

drivers/gpu/drm/msm/dsi/phy/dsi_phy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ extern const struct msm_dsi_phy_cfg dsi_phy_20nm_cfgs;
5050
extern const struct msm_dsi_phy_cfg dsi_phy_28nm_8960_cfgs;
5151
extern const struct msm_dsi_phy_cfg dsi_phy_14nm_cfgs;
5252
extern const struct msm_dsi_phy_cfg dsi_phy_14nm_660_cfgs;
53+
extern const struct msm_dsi_phy_cfg dsi_phy_14nm_2290_cfgs;
5354
extern const struct msm_dsi_phy_cfg dsi_phy_14nm_8953_cfgs;
5455
extern const struct msm_dsi_phy_cfg dsi_phy_10nm_cfgs;
5556
extern const struct msm_dsi_phy_cfg dsi_phy_10nm_8998_cfgs;

drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,3 +1081,20 @@ const struct msm_dsi_phy_cfg dsi_phy_14nm_8953_cfgs = {
10811081
.io_start = { 0x1a94400, 0x1a96400 },
10821082
.num_dsi_phy = 2,
10831083
};
1084+
1085+
const struct msm_dsi_phy_cfg dsi_phy_14nm_2290_cfgs = {
1086+
.has_phy_lane = true,
1087+
.regulator_data = dsi_phy_14nm_17mA_regulators,
1088+
.num_regulators = ARRAY_SIZE(dsi_phy_14nm_17mA_regulators),
1089+
.ops = {
1090+
.enable = dsi_14nm_phy_enable,
1091+
.disable = dsi_14nm_phy_disable,
1092+
.pll_init = dsi_pll_14nm_init,
1093+
.save_pll_state = dsi_14nm_pll_save_state,
1094+
.restore_pll_state = dsi_14nm_pll_restore_state,
1095+
},
1096+
.min_pll_rate = VCO_MIN_RATE,
1097+
.max_pll_rate = VCO_MAX_RATE,
1098+
.io_start = { 0x5e94400 },
1099+
.num_dsi_phy = 1,
1100+
};

0 commit comments

Comments
 (0)