Skip to content

Commit 694dd30

Browse files
konradybciorobclark
authored andcommitted
drm/msm/dsi: Add phy configuration for SDM630/636/660
These SoCs make use of the 14nm phy, but at different addresses than other 14nm units. Signed-off-by: Konrad Dybcio <[email protected]> Signed-off-by: Rob Clark <[email protected]>
1 parent 66ffb91 commit 694dd30

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

Documentation/devicetree/bindings/display/msm/dsi.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ Required properties:
8787
* "qcom,dsi-phy-20nm"
8888
* "qcom,dsi-phy-28nm-8960"
8989
* "qcom,dsi-phy-14nm"
90+
* "qcom,dsi-phy-14nm-660"
9091
* "qcom,dsi-phy-10nm"
9192
* "qcom,dsi-phy-10nm-8998"
9293
- reg: Physical base address and length of the registers of PLL, PHY. Some

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,8 @@ static const struct of_device_id dsi_phy_dt_match[] = {
499499
#ifdef CONFIG_DRM_MSM_DSI_14NM_PHY
500500
{ .compatible = "qcom,dsi-phy-14nm",
501501
.data = &dsi_phy_14nm_cfgs },
502+
{ .compatible = "qcom,dsi-phy-14nm-660",
503+
.data = &dsi_phy_14nm_660_cfgs },
502504
#endif
503505
#ifdef CONFIG_DRM_MSM_DSI_10NM_PHY
504506
{ .compatible = "qcom,dsi-phy-10nm",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ extern const struct msm_dsi_phy_cfg dsi_phy_28nm_lp_cfgs;
4545
extern const struct msm_dsi_phy_cfg dsi_phy_20nm_cfgs;
4646
extern const struct msm_dsi_phy_cfg dsi_phy_28nm_8960_cfgs;
4747
extern const struct msm_dsi_phy_cfg dsi_phy_14nm_cfgs;
48+
extern const struct msm_dsi_phy_cfg dsi_phy_14nm_660_cfgs;
4849
extern const struct msm_dsi_phy_cfg dsi_phy_10nm_cfgs;
4950
extern const struct msm_dsi_phy_cfg dsi_phy_10nm_8998_cfgs;
5051

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,21 @@ const struct msm_dsi_phy_cfg dsi_phy_14nm_cfgs = {
161161
.io_start = { 0x994400, 0x996400 },
162162
.num_dsi_phy = 2,
163163
};
164+
165+
const struct msm_dsi_phy_cfg dsi_phy_14nm_660_cfgs = {
166+
.type = MSM_DSI_PHY_14NM,
167+
.src_pll_truthtable = { {false, false}, {true, false} },
168+
.reg_cfg = {
169+
.num = 1,
170+
.regs = {
171+
{"vcca", 17000, 32},
172+
},
173+
},
174+
.ops = {
175+
.enable = dsi_14nm_phy_enable,
176+
.disable = dsi_14nm_phy_disable,
177+
.init = dsi_14nm_phy_init,
178+
},
179+
.io_start = { 0xc994400, 0xc996000 },
180+
.num_dsi_phy = 2,
181+
};

0 commit comments

Comments
 (0)