Skip to content

Commit 1ef7c99

Browse files
fltorobclark
authored andcommitted
drm/msm/dsi: add support for 7nm DSI PHY/PLL
This adds support for the 7nm ("V4") DSI PHY/PLL for sm8150 and sm8250. Implementation is based on 10nm driver, but updated based on the downstream 7nm driver. Signed-off-by: Jonathan Marek <[email protected]> Tested-by: Dmitry Baryshkov <[email protected]> (SM8250) Signed-off-by: Rob Clark <[email protected]>
1 parent 1155063 commit 1ef7c99

File tree

11 files changed

+1718
-2
lines changed

11 files changed

+1718
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ Required properties:
9090
* "qcom,dsi-phy-14nm-660"
9191
* "qcom,dsi-phy-10nm"
9292
* "qcom,dsi-phy-10nm-8998"
93+
* "qcom,dsi-phy-7nm"
94+
* "qcom,dsi-phy-7nm-8150"
9395
- reg: Physical base address and length of the registers of PLL, PHY. Some
9496
revisions require the PHY regulator base address, whereas others require the
9597
PHY lane base address. See below for each PHY revision.
@@ -98,7 +100,7 @@ Required properties:
98100
* "dsi_pll"
99101
* "dsi_phy"
100102
* "dsi_phy_regulator"
101-
For DSI 14nm and 10nm PHYs:
103+
For DSI 14nm, 10nm and 7nm PHYs:
102104
* "dsi_pll"
103105
* "dsi_phy"
104106
* "dsi_phy_lane"
@@ -116,7 +118,7 @@ Required properties:
116118
- vcca-supply: phandle to vcca regulator device node
117119
For 14nm PHY:
118120
- vcca-supply: phandle to vcca regulator device node
119-
For 10nm PHY:
121+
For 10nm and 7nm PHY:
120122
- vdds-supply: phandle to vdds regulator device node
121123

122124
Optional properties:

drivers/gpu/drm/msm/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,11 @@ config DRM_MSM_DSI_10NM_PHY
110110
default y
111111
help
112112
Choose this option if DSI PHY on SDM845 is used on the platform.
113+
114+
config DRM_MSM_DSI_7NM_PHY
115+
bool "Enable DSI 7nm PHY driver in MSM DRM (used by SM8150/SM8250)"
116+
depends on DRM_MSM_DSI
117+
default y
118+
help
119+
Choose this option if DSI PHY on SM8150/SM8250 is used on the
120+
platform.

drivers/gpu/drm/msm/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,15 @@ msm-$(CONFIG_DRM_MSM_DSI_20NM_PHY) += dsi/phy/dsi_phy_20nm.o
119119
msm-$(CONFIG_DRM_MSM_DSI_28NM_8960_PHY) += dsi/phy/dsi_phy_28nm_8960.o
120120
msm-$(CONFIG_DRM_MSM_DSI_14NM_PHY) += dsi/phy/dsi_phy_14nm.o
121121
msm-$(CONFIG_DRM_MSM_DSI_10NM_PHY) += dsi/phy/dsi_phy_10nm.o
122+
msm-$(CONFIG_DRM_MSM_DSI_7NM_PHY) += dsi/phy/dsi_phy_7nm.o
122123

123124
ifeq ($(CONFIG_DRM_MSM_DSI_PLL),y)
124125
msm-y += dsi/pll/dsi_pll.o
125126
msm-$(CONFIG_DRM_MSM_DSI_28NM_PHY) += dsi/pll/dsi_pll_28nm.o
126127
msm-$(CONFIG_DRM_MSM_DSI_28NM_8960_PHY) += dsi/pll/dsi_pll_28nm_8960.o
127128
msm-$(CONFIG_DRM_MSM_DSI_14NM_PHY) += dsi/pll/dsi_pll_14nm.o
128129
msm-$(CONFIG_DRM_MSM_DSI_10NM_PHY) += dsi/pll/dsi_pll_10nm.o
130+
msm-$(CONFIG_DRM_MSM_DSI_7NM_PHY) += dsi/pll/dsi_pll_7nm.o
129131
endif
130132

131133
obj-$(CONFIG_DRM_MSM) += msm.o

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ enum msm_dsi_phy_type {
3030
MSM_DSI_PHY_28NM_8960,
3131
MSM_DSI_PHY_14NM,
3232
MSM_DSI_PHY_10NM,
33+
MSM_DSI_PHY_7NM,
34+
MSM_DSI_PHY_7NM_V4_1,
3335
MSM_DSI_PHY_MAX
3436
};
3537

0 commit comments

Comments
 (0)