* [PATCH v3 0/3] dt-bindings: msm/dp: cleanup Qualcomm DP and eDP bidndings
@ 2022-08-22 18:48 Dmitry Baryshkov
2022-08-22 18:48 ` [PATCH v3 1/3] dt-bindings: msm/dp: mark vdda supplies as deprecated Dmitry Baryshkov
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Dmitry Baryshkov @ 2022-08-22 18:48 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Clark, Sean Paul,
Abhinav Kumar, Rob Herring, Krzysztof Kozlowski
Cc: Stephen Boyd, David Airlie, Daniel Vetter, linux-arm-msm,
devicetree, dri-devel, freedreno
Fix several issues with the DP and eDP bindings on the Qualcomm
platforms. While we are at it, fix several small issues with platform
files declaring these controllers.
Changes since v2:
- Fixed commit message for the patch 1 to mention proper commit IDs.
- Dropped dts patches which were picked up by respective tree.
Changes since v1:
- Reordered patches to cleanup dts first, to remove warnings from DP
schema
- Split DP register blocks in sc7180.dtsi and sc7280.dtsi
- Cleaned up the p1 register block handling: marked it as required for DP
and absent for eDP controllers
- Dropped unused xo and ref clocks from sc7280-edp node, they belong to
eDP PHY.
Dmitry Baryshkov (3):
dt-bindings: msm/dp: mark vdda supplies as deprecated
dt-bindings: msm/dp: add missing properties
dt-bindings: msm/dp: handle DP vs eDP difference
.../bindings/display/msm/dp-controller.yaml | 47 ++++++++++++++++---
1 file changed, 41 insertions(+), 6 deletions(-)
--
2.35.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v3 1/3] dt-bindings: msm/dp: mark vdda supplies as deprecated
2022-08-22 18:48 [PATCH v3 0/3] dt-bindings: msm/dp: cleanup Qualcomm DP and eDP bidndings Dmitry Baryshkov
@ 2022-08-22 18:48 ` Dmitry Baryshkov
2022-08-23 2:58 ` Stephen Boyd
2022-08-22 18:48 ` [PATCH v3 2/3] dt-bindings: msm/dp: add missing properties Dmitry Baryshkov
2022-08-22 18:49 ` [PATCH v3 3/3] dt-bindings: msm/dp: handle DP vs eDP difference Dmitry Baryshkov
2 siblings, 1 reply; 7+ messages in thread
From: Dmitry Baryshkov @ 2022-08-22 18:48 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Clark, Sean Paul,
Abhinav Kumar, Rob Herring, Krzysztof Kozlowski
Cc: Stephen Boyd, David Airlie, Daniel Vetter, linux-arm-msm,
devicetree, dri-devel, freedreno, Rob Herring
The commit 85936d4f3815 ("phy: qcom-qmp: add regulator_set_load to dp
phy") moved setting regulator load to the DP PHY driver (QMP). Then, the
commit 7516351bebc1 ("drm/msm/dp: delete vdda regulator related
functions from eDP/DP controller") removed support for VDDA supplies
from the DP controller driver.
Mark these properties as deprecated and drop them from the example.
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
.../devicetree/bindings/display/msm/dp-controller.yaml | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
index 94bc6e1b6451..391910d91e43 100644
--- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
+++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
@@ -76,8 +76,10 @@ properties:
"#sound-dai-cells":
const: 0
- vdda-0p9-supply: true
- vdda-1p2-supply: true
+ vdda-0p9-supply:
+ deprecated: true
+ vdda-1p2-supply:
+ deprecated: true
ports:
$ref: /schemas/graph.yaml#/properties/ports
@@ -140,9 +142,6 @@ examples:
power-domains = <&rpmhpd SC7180_CX>;
- vdda-0p9-supply = <&vdda_usb_ss_dp_core>;
- vdda-1p2-supply = <&vdda_usb_ss_dp_1p2>;
-
ports {
#address-cells = <1>;
#size-cells = <0>;
--
2.35.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 2/3] dt-bindings: msm/dp: add missing properties
2022-08-22 18:48 [PATCH v3 0/3] dt-bindings: msm/dp: cleanup Qualcomm DP and eDP bidndings Dmitry Baryshkov
2022-08-22 18:48 ` [PATCH v3 1/3] dt-bindings: msm/dp: mark vdda supplies as deprecated Dmitry Baryshkov
@ 2022-08-22 18:48 ` Dmitry Baryshkov
2022-08-23 2:59 ` Stephen Boyd
2022-08-22 18:49 ` [PATCH v3 3/3] dt-bindings: msm/dp: handle DP vs eDP difference Dmitry Baryshkov
2 siblings, 1 reply; 7+ messages in thread
From: Dmitry Baryshkov @ 2022-08-22 18:48 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Clark, Sean Paul,
Abhinav Kumar, Rob Herring, Krzysztof Kozlowski
Cc: Stephen Boyd, David Airlie, Daniel Vetter, linux-arm-msm,
devicetree, dri-devel, freedreno, Krzysztof Kozlowski
Document missing definitions for opp-table (DP controller OPPs), aux-bus
(DP AUX BUS) and data-lanes (DP/eDP lanes mapping) properties.
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
.../bindings/display/msm/dp-controller.yaml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
index 391910d91e43..52cbf00df0ba 100644
--- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
+++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
@@ -70,9 +70,21 @@ properties:
operating-points-v2:
maxItems: 1
+ opp-table: true
+
power-domains:
maxItems: 1
+ aux-bus:
+ $ref: /schemas/display/dp-aux-bus.yaml#
+
+ data-lanes:
+ $ref: /schemas/types.yaml#/definitions/uint32-array
+ minItems: 1
+ maxItems: 4
+ items:
+ maximum: 3
+
"#sound-dai-cells":
const: 0
--
2.35.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 3/3] dt-bindings: msm/dp: handle DP vs eDP difference
2022-08-22 18:48 [PATCH v3 0/3] dt-bindings: msm/dp: cleanup Qualcomm DP and eDP bidndings Dmitry Baryshkov
2022-08-22 18:48 ` [PATCH v3 1/3] dt-bindings: msm/dp: mark vdda supplies as deprecated Dmitry Baryshkov
2022-08-22 18:48 ` [PATCH v3 2/3] dt-bindings: msm/dp: add missing properties Dmitry Baryshkov
@ 2022-08-22 18:49 ` Dmitry Baryshkov
2022-08-23 3:00 ` Stephen Boyd
2 siblings, 1 reply; 7+ messages in thread
From: Dmitry Baryshkov @ 2022-08-22 18:49 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Clark, Sean Paul,
Abhinav Kumar, Rob Herring, Krzysztof Kozlowski
Cc: Stephen Boyd, David Airlie, Daniel Vetter, linux-arm-msm,
devicetree, dri-devel, freedreno, Rob Herring
The #sound-dai-cells property should be used only for DP controllers. It
doesn't make sense for eDP, there is no support for audio output. The
aux-bus should not be used for DP controllers. Also p1 MMIO region
should be used only for DP controllers.
Take care of these differences.
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
.../bindings/display/msm/dp-controller.yaml | 26 ++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
index 52cbf00df0ba..f2515af8256f 100644
--- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
+++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
@@ -24,6 +24,7 @@ properties:
- qcom,sm8350-dp
reg:
+ minItems: 4
items:
- description: ahb register block
- description: aux register block
@@ -112,10 +113,33 @@ required:
- clock-names
- phys
- phy-names
- - "#sound-dai-cells"
- power-domains
- ports
+allOf:
+ # AUX BUS does not exist on DP controllers
+ # Audio output also is present only on DP output
+ # p1 regions is present on DP, but not on eDP
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,sc7280-edp
+ - qcom,sc8180x-edp
+ then:
+ properties:
+ "#sound-dai-cells": false
+ reg:
+ maxItems: 4
+ else:
+ properties:
+ aux-bus: false
+ reg:
+ minItems: 5
+ required:
+ - "#sound-dai-cells"
+
additionalProperties: false
examples:
--
2.35.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v3 1/3] dt-bindings: msm/dp: mark vdda supplies as deprecated
2022-08-22 18:48 ` [PATCH v3 1/3] dt-bindings: msm/dp: mark vdda supplies as deprecated Dmitry Baryshkov
@ 2022-08-23 2:58 ` Stephen Boyd
0 siblings, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2022-08-23 2:58 UTC (permalink / raw)
To: Abhinav Kumar, Andy Gross, Bjorn Andersson, Dmitry Baryshkov,
Konrad Dybcio, Krzysztof Kozlowski, Rob Clark, Rob Herring,
Sean Paul
Cc: David Airlie, Daniel Vetter, linux-arm-msm, devicetree, dri-devel,
freedreno, Rob Herring
Quoting Dmitry Baryshkov (2022-08-22 11:48:58)
> The commit 85936d4f3815 ("phy: qcom-qmp: add regulator_set_load to dp
> phy") moved setting regulator load to the DP PHY driver (QMP). Then, the
> commit 7516351bebc1 ("drm/msm/dp: delete vdda regulator related
> functions from eDP/DP controller") removed support for VDDA supplies
> from the DP controller driver.
> Mark these properties as deprecated and drop them from the example.
>
> Acked-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 2/3] dt-bindings: msm/dp: add missing properties
2022-08-22 18:48 ` [PATCH v3 2/3] dt-bindings: msm/dp: add missing properties Dmitry Baryshkov
@ 2022-08-23 2:59 ` Stephen Boyd
0 siblings, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2022-08-23 2:59 UTC (permalink / raw)
To: Abhinav Kumar, Andy Gross, Bjorn Andersson, Dmitry Baryshkov,
Konrad Dybcio, Krzysztof Kozlowski, Rob Clark, Rob Herring,
Sean Paul
Cc: David Airlie, Daniel Vetter, linux-arm-msm, devicetree, dri-devel,
freedreno, Krzysztof Kozlowski
Quoting Dmitry Baryshkov (2022-08-22 11:48:59)
> Document missing definitions for opp-table (DP controller OPPs), aux-bus
> (DP AUX BUS) and data-lanes (DP/eDP lanes mapping) properties.
>
> Reviewed-by: Stephen Boyd <swboyd@chromium.org>
> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
> .../bindings/display/msm/dp-controller.yaml | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
> index 391910d91e43..52cbf00df0ba 100644
> --- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
> +++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
> @@ -70,9 +70,21 @@ properties:
> operating-points-v2:
> maxItems: 1
>
> + opp-table: true
> +
> power-domains:
> maxItems: 1
>
> + aux-bus:
> + $ref: /schemas/display/dp-aux-bus.yaml#
> +
> + data-lanes:
> + $ref: /schemas/types.yaml#/definitions/uint32-array
> + minItems: 1
> + maxItems: 4
> + items:
> + maximum: 3
It should be marked deprecated, right?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 3/3] dt-bindings: msm/dp: handle DP vs eDP difference
2022-08-22 18:49 ` [PATCH v3 3/3] dt-bindings: msm/dp: handle DP vs eDP difference Dmitry Baryshkov
@ 2022-08-23 3:00 ` Stephen Boyd
0 siblings, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2022-08-23 3:00 UTC (permalink / raw)
To: Abhinav Kumar, Andy Gross, Bjorn Andersson, Dmitry Baryshkov,
Konrad Dybcio, Krzysztof Kozlowski, Rob Clark, Rob Herring,
Sean Paul
Cc: David Airlie, Daniel Vetter, linux-arm-msm, devicetree, dri-devel,
freedreno, Rob Herring
Quoting Dmitry Baryshkov (2022-08-22 11:49:00)
> The #sound-dai-cells property should be used only for DP controllers. It
> doesn't make sense for eDP, there is no support for audio output. The
> aux-bus should not be used for DP controllers. Also p1 MMIO region
> should be used only for DP controllers.
>
> Take care of these differences.
>
> Reviewed-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-08-23 3:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-22 18:48 [PATCH v3 0/3] dt-bindings: msm/dp: cleanup Qualcomm DP and eDP bidndings Dmitry Baryshkov
2022-08-22 18:48 ` [PATCH v3 1/3] dt-bindings: msm/dp: mark vdda supplies as deprecated Dmitry Baryshkov
2022-08-23 2:58 ` Stephen Boyd
2022-08-22 18:48 ` [PATCH v3 2/3] dt-bindings: msm/dp: add missing properties Dmitry Baryshkov
2022-08-23 2:59 ` Stephen Boyd
2022-08-22 18:49 ` [PATCH v3 3/3] dt-bindings: msm/dp: handle DP vs eDP difference Dmitry Baryshkov
2022-08-23 3:00 ` Stephen Boyd
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).