From: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Abel Vesa <abel.vesa@linaro.org>, Rob Clark <robdclark@gmail.com>,
Abhinav Kumar <quic_abhinavk@quicinc.com>,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
Sean Paul <sean@poorly.run>,
Marijn Suijten <marijn.suijten@somainline.org>,
David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Kuogee Hsieh <quic_khsieh@quicinc.com>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Johan Hovold <johan@kernel.org>,
linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
freedreno@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/3] dt-bindings: display: msm: dp-controller: document X1E80100 compatible
Date: Fri, 1 Mar 2024 11:52:05 -0600 [thread overview]
Message-ID: <20240301175205.GB2438612-robh@kernel.org> (raw)
In-Reply-To: <a90dcd83-d158-4ec1-9186-0658c108afef@linaro.org>
On Tue, Feb 27, 2024 at 04:45:25PM +0100, Krzysztof Kozlowski wrote:
> On 22/02/2024 16:55, Abel Vesa wrote:
> > Add the X1E80100 to the list of compatibles and document the is-edp
> > flag. The controllers are expected to operate in DP mode by default,
> > and this flag can be used to select eDP mode.
> >
> > Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
> > ---
> > Documentation/devicetree/bindings/display/msm/dp-controller.yaml | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
> > index ae53cbfb2193..ed11852e403d 100644
> > --- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
> > +++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
> > @@ -27,6 +27,7 @@ properties:
> > - qcom,sdm845-dp
> > - qcom,sm8350-dp
> > - qcom,sm8650-dp
> > + - qcom,x1e80100-dp
> > - items:
> > - enum:
> > - qcom,sm8150-dp
> > @@ -73,6 +74,11 @@ properties:
> > - description: phy 0 parent
> > - description: phy 1 parent
> >
> > + is-edp:
> > + $ref: /schemas/types.yaml#/definitions/flag
> > + description:
> > + Tells the controller to switch to eDP mode
>
>
> DP controller cannot be edp, so property "is-edp" is confusing. Probably
> you want to choose some phy mode, so you should rather use "phy-mode"
> property. I am sure we've been here...
phy-mode belongs in the phy node though. Not that you couldn't look in
the phy node and see, but everyone likes all the properties they need
nicely packaged up in their driver's node.
> Anyway, if you define completely new property without vendor prefix,
> that's a generic property, so you need to put it in some common schema
> for all Display Controllers, not only Qualcomm.
I'm trying to unsee what the driver is doing... Hard-coding the
connector type and some instance indices. Uhhhh! I'm sure I'm to blame
for rejecting those in DT.
I've suggested connector nodes in the past. More generally, whatever is
attached at the other end (as it could be a bridge rather than a
connector) knows what mode is needed. It's simple negotiation. Each end
presents what they support. You take the union of the list(s) and get
the mode. If there's more than one, then the kernel or user gets to
choose.
Qualcomm is not the only one with this problem. Solve it for everyone...
Rob
next prev parent reply other threads:[~2024-03-01 17:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-22 15:55 [PATCH v2 0/3] drm/msm/dp: Rework the eDP/DP modes and add support for X1E80100 Abel Vesa
2024-02-22 15:55 ` [PATCH v2 1/3] dt-bindings: display: msm: dp-controller: document X1E80100 compatible Abel Vesa
2024-02-24 22:34 ` Dmitry Baryshkov
2024-02-26 7:39 ` Krzysztof Kozlowski
2024-03-01 17:34 ` Rob Herring
2024-02-27 15:45 ` Krzysztof Kozlowski
2024-03-01 17:52 ` Rob Herring [this message]
2024-03-03 20:17 ` Dmitry Baryshkov
2024-03-01 17:52 ` Abel Vesa
2024-02-22 15:55 ` [PATCH v2 2/3] drm/msm/dp: Add support for setting the eDP mode from devicetree Abel Vesa
2024-02-27 20:18 ` Bjorn Andersson
2024-02-22 15:55 ` [PATCH v2 3/3] drm/msm/dp: Add support for the X1E80100 Abel Vesa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240301175205.GB2438612-robh@kernel.org \
--to=robh@kernel.org \
--cc=abel.vesa@linaro.org \
--cc=airlied@gmail.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=johan@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=marijn.suijten@somainline.org \
--cc=mripard@kernel.org \
--cc=quic_abhinavk@quicinc.com \
--cc=quic_khsieh@quicinc.com \
--cc=robdclark@gmail.com \
--cc=sean@poorly.run \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).