[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <gkcy5rmtodvkgcyzv5mylq4fnlampwichvywcej7ncrbn35jni@ewvcda4o2s2l>
Date: Mon, 4 Aug 2025 07:52:27 +0300
From: Dmitry Baryshkov <dmitry.baryshkov@....qualcomm.com>
To: Yongxing Mou <quic_yongmou@...cinc.com>
Cc: Rob Clark <robin.clark@....qualcomm.com>,
Dmitry Baryshkov <lumag@...nel.org>,
Abhinav Kumar <abhinav.kumar@...ux.dev>,
Jessica Zhang <jessica.zhang@....qualcomm.com>,
Sean Paul <sean@...rly.run>,
Marijn Suijten <marijn.suijten@...ainline.org>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Neil Armstrong <neil.armstrong@...aro.org>,
Kuogee Hsieh <quic_khsieh@...cinc.com>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konradybcio@...nel.org>, linux-arm-msm@...r.kernel.org,
dri-devel@...ts.freedesktop.org, freedreno@...ts.freedesktop.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v5 3/5] dt-bindings: display/msm: Document MDSS on QCS8300
On Mon, Aug 04, 2025 at 12:31:31PM +0800, Yongxing Mou wrote:
>
>
> On 2025/8/2 17:56, Dmitry Baryshkov wrote:
> > On Wed, Jul 30, 2025 at 05:42:28PM +0800, Yongxing Mou wrote:
> > > Document the MDSS hardware found on the Qualcomm QCS8300 platform.
> > >
> > > Signed-off-by: Yongxing Mou <quic_yongmou@...cinc.com>
> > > ---
> > > .../bindings/display/msm/qcom,qcs8300-mdss.yaml | 284 +++++++++++++++++++++
> > > 1 file changed, 284 insertions(+)
> > >
> > > diff --git a/Documentation/devicetree/bindings/display/msm/qcom,qcs8300-mdss.yaml b/Documentation/devicetree/bindings/display/msm/qcom,qcs8300-mdss.yaml
> > > new file mode 100644
> > > index 0000000000000000000000000000000000000000..ae4bc16395326bffd6c9eff92778d9f207209526
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/display/msm/qcom,qcs8300-mdss.yaml
> > > @@ -0,0 +1,284 @@
> > > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> > > +%YAML 1.2
> > > +---
> > > +$id: http://devicetree.org/schemas/display/msm/qcom,qcs8300-mdss.yaml#
> > > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > > +
> > > +title: Qualcomm Technologies, Inc. QCS8300 Display MDSS
> > > +
> > > +maintainers:
> > > + - Yongxing Mou <quic_yongmou@...cinc.com>
> > > +
> > > +description:
> > > + QCS8300 MSM Mobile Display Subsystem(MDSS), which encapsulates sub-blocks like
> > > + DPU display controller, DP interfaces and EDP etc.
> > > +
> > > +$ref: /schemas/display/msm/mdss-common.yaml#
> > > +
> > > +properties:
> > > + compatible:
> > > + const: qcom,qcs8300-mdss
> > > +
> > > + clocks:
> > > + items:
> > > + - description: Display AHB
> > > + - description: Display hf AXI
> > > + - description: Display core
> > > +
> > > + iommus:
> > > + maxItems: 1
> > > +
> > > + interconnects:
> > > + maxItems: 3
> > > +
> > > + interconnect-names:
> > > + maxItems: 3
> > > +
> > > +patternProperties:
> > > + "^display-controller@[0-9a-f]+$":
> > > + type: object
> > > + additionalProperties: true
> > > +
> > > + properties:
> > > + compatible:
> > > + items:
> > > + - const: qcom,qcs8300-dpu
> > > + - const: qcom,sa8775p-dpu
> >
> > Use contains: instead of listing both of them
> >
> Got it, thanks~ here we want to fallback qcs8300 to sa8775p.
> Should we update it to :
> + contains:
> + enum:
> + - qcom,qcs8300-dpu
> + - qcom,sa8775p-dpu
>
> above method can be validated using dt_binding_check.
_instead_ of listing both of them
So:
contains:
const: qcom,qcs8300-dpu
> > > +
> > > + "^displayport-controller@[0-9a-f]+$":
> > > + type: object
> > > + additionalProperties: true
> > > +
> > > + properties:
> > > + compatible:
> > > + items:
> > > + - const: qcom,qcs8300-dp
> > > +
> > > + "^phy@[0-9a-f]+$":
> > > + type: object
> > > + additionalProperties: true
> > > + properties:
> > > + compatible:
> > > + items:
> > > + - const: qcom,qcs8300-edp-phy
> > > + - const: qcom,sa8775p-edp-phy
> >
> > Use contains: instead of listing both of them
> >
> Same as above
> > > +
> > > +required:
> > > + - compatible
> > > +
> > > +unevaluatedProperties: false
> > > +
> >
>
--
With best wishes
Dmitry
Powered by blists - more mailing lists