* [PATCH v2 0/2] drm/msm/dsi: support CPHY mode for 7nm pll/phy
@ 2021-04-23 17:24 Jonathan Marek
2021-04-23 17:24 ` [PATCH v2 2/2] dt-bindings: display: msm/dsi: add qcom,dsi-phy-cphy-mode option Jonathan Marek
0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Marek @ 2021-04-23 17:24 UTC (permalink / raw)
To: freedreno
Cc: Abhinav Kumar, Daniel Vetter, David Airlie,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Dmitry Baryshkov, open list:DRM DRIVER FOR MSM ADRENO GPU,
Emil Velikov, Jordan Crouse, Konrad Dybcio,
open list:DRM DRIVER FOR MSM ADRENO GPU, open list,
Rajendra Nayak, Rob Clark, Rob Herring, Sean Paul,
Thomas Zimmermann, Viresh Kumar
Add the required changes to support 7nm pll/phy in CPHY mode.
This adds a "qcom,dsi-phy-cphy-mode" property for the PHY node to enable
the CPHY mode.
v2:
- rebased on DSI PHY reworks
- reworked getting cphy_mode in dsi_host.c
- documentation change in separate patch
Jonathan Marek (2):
drm/msm/dsi: support CPHY mode for 7nm pll/phy
dt-bindings: display: msm/dsi: add qcom,dsi-phy-cphy-mode option
.../devicetree/bindings/display/msm/dsi.txt | 1 +
drivers/gpu/drm/msm/dsi/dsi.xml.h | 2 +
drivers/gpu/drm/msm/dsi/dsi_host.c | 34 +++-
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 47 ++++++
drivers/gpu/drm/msm/dsi/phy/dsi_phy.h | 3 +
drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c | 147 ++++++++++++------
6 files changed, 186 insertions(+), 48 deletions(-)
--
2.26.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 2/2] dt-bindings: display: msm/dsi: add qcom,dsi-phy-cphy-mode option
2021-04-23 17:24 [PATCH v2 0/2] drm/msm/dsi: support CPHY mode for 7nm pll/phy Jonathan Marek
@ 2021-04-23 17:24 ` Jonathan Marek
2021-05-03 17:11 ` Rob Herring
0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Marek @ 2021-04-23 17:24 UTC (permalink / raw)
To: freedreno
Cc: Rob Clark, Sean Paul, David Airlie, Daniel Vetter, Rob Herring,
open list:DRM DRIVER FOR MSM ADRENO GPU,
open list:DRM DRIVER FOR MSM ADRENO GPU,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
Document qcom,dsi-phy-cphy-mode option, which can be used to control
whether DSI will operate in D-PHY (default) or C-PHY mode.
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
---
Documentation/devicetree/bindings/display/msm/dsi.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/display/msm/dsi.txt b/Documentation/devicetree/bindings/display/msm/dsi.txt
index b9a64d3ff184..7ffc86a9816b 100644
--- a/Documentation/devicetree/bindings/display/msm/dsi.txt
+++ b/Documentation/devicetree/bindings/display/msm/dsi.txt
@@ -124,6 +124,7 @@ Required properties:
Optional properties:
- qcom,dsi-phy-regulator-ldo-mode: Boolean value indicating if the LDO mode PHY
regulator is wanted.
+- qcom,dsi-phy-cphy-mode: Boolean value indicating if CPHY mode is wanted.
- qcom,mdss-mdp-transfer-time-us: Specifies the dsi transfer time for command mode
panels in microseconds. Driver uses this number to adjust
the clock rate according to the expected transfer time.
--
2.26.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/2] dt-bindings: display: msm/dsi: add qcom,dsi-phy-cphy-mode option
2021-04-23 17:24 ` [PATCH v2 2/2] dt-bindings: display: msm/dsi: add qcom,dsi-phy-cphy-mode option Jonathan Marek
@ 2021-05-03 17:11 ` Rob Herring
2021-05-28 12:57 ` [Freedreno] [PATCH v2 2/2] dt-bindings: display: msm/dsi: add qcom, dsi-phy-cphy-mode option Jonathan Marek
0 siblings, 1 reply; 5+ messages in thread
From: Rob Herring @ 2021-05-03 17:11 UTC (permalink / raw)
To: Jonathan Marek
Cc: freedreno, Rob Clark, Sean Paul, David Airlie, Daniel Vetter,
open list:DRM DRIVER FOR MSM ADRENO GPU,
open list:DRM DRIVER FOR MSM ADRENO GPU,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
On Fri, Apr 23, 2021 at 01:24:40PM -0400, Jonathan Marek wrote:
> Document qcom,dsi-phy-cphy-mode option, which can be used to control
> whether DSI will operate in D-PHY (default) or C-PHY mode.
Given this is a standard MIPI thing, I think this needs to be a common
property. We already have phy bindings that use the phy cells to set the
phy type which I think you should use here. See
include/dt-bindings/phy/phy.h.
>
> Signed-off-by: Jonathan Marek <jonathan@marek.ca>
> ---
> Documentation/devicetree/bindings/display/msm/dsi.txt | 1 +
> 1 file changed, 1 insertion(+)
Note that this file is in the process of being converted to schema.
That's been going on for at least the last year... :(
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Freedreno] [PATCH v2 2/2] dt-bindings: display: msm/dsi: add qcom, dsi-phy-cphy-mode option
2021-05-03 17:11 ` Rob Herring
@ 2021-05-28 12:57 ` Jonathan Marek
2021-05-31 18:10 ` Dmitry Baryshkov
0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Marek @ 2021-05-28 12:57 UTC (permalink / raw)
To: Rob Herring
Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
David Airlie, freedreno, open list,
open list:DRM DRIVER FOR MSM ADRENO GPU, Rob Clark, Daniel Vetter,
open list:DRM DRIVER FOR MSM ADRENO GPU, Sean Paul
On 5/3/21 1:11 PM, Rob Herring wrote:
> On Fri, Apr 23, 2021 at 01:24:40PM -0400, Jonathan Marek wrote:
>> Document qcom,dsi-phy-cphy-mode option, which can be used to control
>> whether DSI will operate in D-PHY (default) or C-PHY mode.
>
> Given this is a standard MIPI thing, I think this needs to be a common
> property. We already have phy bindings that use the phy cells to set the
> phy type which I think you should use here. See
> include/dt-bindings/phy/phy.h.
>
Is it OK to simply change the option to something like "phy-mode =
<PHY_TYPE_DSI_CPHY>;"?
(using phy-cells would be annoying to implement, with no benefit IMO)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Freedreno] [PATCH v2 2/2] dt-bindings: display: msm/dsi: add qcom, dsi-phy-cphy-mode option
2021-05-28 12:57 ` [Freedreno] [PATCH v2 2/2] dt-bindings: display: msm/dsi: add qcom, dsi-phy-cphy-mode option Jonathan Marek
@ 2021-05-31 18:10 ` Dmitry Baryshkov
0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Baryshkov @ 2021-05-31 18:10 UTC (permalink / raw)
To: Jonathan Marek, Rob Herring
Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
David Airlie, freedreno, open list,
open list:DRM DRIVER FOR MSM ADRENO GPU, Rob Clark, Daniel Vetter,
open list:DRM DRIVER FOR MSM ADRENO GPU, Sean Paul
On 28/05/2021 15:57, Jonathan Marek wrote:
> On 5/3/21 1:11 PM, Rob Herring wrote:
>> On Fri, Apr 23, 2021 at 01:24:40PM -0400, Jonathan Marek wrote:
>>> Document qcom,dsi-phy-cphy-mode option, which can be used to control
>>> whether DSI will operate in D-PHY (default) or C-PHY mode.
>>
>> Given this is a standard MIPI thing, I think this needs to be a common
>> property. We already have phy bindings that use the phy cells to set the
>> phy type which I think you should use here. See
>> include/dt-bindings/phy/phy.h.
>>
>
> Is it OK to simply change the option to something like "phy-mode =
> <PHY_TYPE_DSI_CPHY>;"?
>
> (using phy-cells would be annoying to implement, with no benefit IMO)
To add another feather to the balance scales:
- `phys = <&dsi0_phy PHY_TYPE_DSI_CPHY>;` would bring knowledge about
PHY mode to the DSI host (which does not really care about PHY mode)
- `phy-mode = <PHY_TYPE_DSI_CPHY>;` would stay in the PHY node, where
this information belongs.
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-05-31 18:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-23 17:24 [PATCH v2 0/2] drm/msm/dsi: support CPHY mode for 7nm pll/phy Jonathan Marek
2021-04-23 17:24 ` [PATCH v2 2/2] dt-bindings: display: msm/dsi: add qcom,dsi-phy-cphy-mode option Jonathan Marek
2021-05-03 17:11 ` Rob Herring
2021-05-28 12:57 ` [Freedreno] [PATCH v2 2/2] dt-bindings: display: msm/dsi: add qcom, dsi-phy-cphy-mode option Jonathan Marek
2021-05-31 18:10 ` Dmitry Baryshkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).