arm64: dts: qcom: sm8250: fix display nodes
Subsystems (6)
v4 cover arm64: dts: qcom: sm8250: fix display nodes
This is a series of patches developed by Jonathan Marek, and picked up to split them, so that dts fixes can be picked up into stable branch
Add sm8150/sm8250 compatibles to drm/msm and fix the sm8250 display nodes.
v2: do not remove mmcx-supply from dispcc node
v3: remove references to dp_phy (missed this in v2, sorry for the spam)
v4: split patches to let fixes be picked up into stable branch
----------------------------------------------------------------
Jonathan Marek (4):
arm64: dts: qcom: sm8250: fix display nodes
dt-bindings: msm/disp: add compatibles for sm8150/sm8250 display drm/msm: add compatibles for sm8150/sm8250 display
arm64: dts: qcom: sm8250: fix display nodes
Documentation/devicetree/bindings/display/msm/dpu.txt | 4 ++-- arch/arm64/boot/dts/qcom/sm8250.dtsi | 31 ++++++++----------------------- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 ++ drivers/gpu/drm/msm/msm_drv.c | 6 +++--- 4 files changed, 15 insertions(+), 28 deletions(-)
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v4 1/4 arm64: dts: qcom: sm8250: fix display nodes
From: Jonathan Marek <[email protected]>
Apply these fixes to the newly added sm8250 display ndoes
- Remove "notused" interconnect (which apparently was blindly copied from my old patches)
- Use dispcc node example from dt-bindings, removing clocks which aren't documented or used by the driver and fixing the region size.
--- arch/arm64/boot/dts/qcom/sm8250.dtsi | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-)
arch/arm64/boot/dts/qcom/sm8250.dtsi +6 -21
@@ -2327,10 +2327,9 @@ mdss: mdss@ae00000 { reg = <0 0x0ae00000 0 0x1000>; reg-names = "mdss"; - interconnects = <&gem_noc MASTER_AMPSS_M0 &config_noc SLAVE_DISPLAY_CFG>, - <&mmss_noc MASTER_MDP_PORT0 &mc_virt SLAVE_EBI_CH0>, + interconnects = <&mmss_noc MASTER_MDP_PORT0 &mc_virt SLAVE_EBI_CH0>, <&mmss_noc MASTER_MDP_PORT1 &mc_virt SLAVE_EBI_CH0>; - interconnect-names = "notused", "mdp0-mem", "mdp1-mem"; + interconnect-names = "mdp0-mem", "mdp1-mem"; power-domains = <&dispcc MDSS_GDSC>;
@@ -2580,7 +2579,7 @@ opp-358000000 { dispcc: clock-controller@af00000 { compatible = "qcom,sm8250-dispcc"; - reg = <0 0x0af00000 0 0x20000>; + reg = <0 0x0af00000 0 0x10000>; mmcx-supply = <&mmcx_reg>; clocks = <&rpmhcc RPMH_CXO_CLK>, <&dsi0_phy 0>,
@@ -2588,28 +2587,14 @@ dispcc: clock-controller@af00000 { <&dsi1_phy 0>, <&dsi1_phy 1>, <0>, - <0>, - <0>, - <0>, - <0>, - <0>, - <0>, - <0>, - <&sleep_clk>; + <0>; clock-names = "bi_tcxo", "dsi0_phy_pll_out_byteclk", "dsi0_phy_pll_out_dsiclk", "dsi1_phy_pll_out_byteclk", "dsi1_phy_pll_out_dsiclk", - "dp_link_clk_divsel_ten", - "dp_vco_divided_clk_src_mux", - "dptx1_phy_pll_link_clk", - "dptx1_phy_pll_vco_div_clk", - "dptx2_phy_pll_link_clk", - "dptx2_phy_pll_vco_div_clk", - "edp_phy_pll_link_clk", - "edp_phy_pll_vco_div_clk", - "sleep_clk"; + "dp_phy_pll_link_clk", + "dp_phy_pll_vco_div_clk"; #clock-cells = <1>; #reset-cells = <1>; #power-domain-cells = <1>;
Signature · 6 lines
2.30.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v4 2/4 dt-bindings: msm/disp: add compatibles for sm8150/sm8250 display
In reply to Dmitry BaryshkovFrom: Jonathan Marek <[email protected]>
The driver already has support for sm8150/sm8250, but the compatibles were never added.
--- Documentation/devicetree/bindings/display/msm/dpu.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/display/msm/dpu.txt +2 -2
@@ -8,7 +8,7 @@ The DPU display controller is found in SDM845 SoC. MDSS: Required properties: -- compatible: "qcom,sdm845-mdss", "qcom,sc7180-mdss" +- compatible: "qcom,sdm845-mdss", "qcom,sc7180-mdss", "qcom,sm8150-mdss", "qcom,sm8250-mdss" - reg: physical base address and length of contoller's registers. - reg-names: register region names. The following region is required: * "mdss"
@@ -41,7 +41,7 @@ Optional properties: MDP: Required properties: -- compatible: "qcom,sdm845-dpu", "qcom,sc7180-dpu" +- compatible: "qcom,sdm845-dpu", "qcom,sc7180-dpu", "qcom,sm8150-dpu", "qcom,sm8250-dpu" - reg: physical base address and length of controller's registers. - reg-names : register region names. The following region is required: * "mdp"
Signature · 6 lines
2.30.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v4 2/4] dt-bindings: msm/disp: add compatibles for sm8150/sm8250 display
Quoting Dmitry Baryshkov (2021-03-29 05:00:49)
Quoted 10 lines
From: Jonathan Marek <[email protected]>
The driver already has support for sm8150/sm8250, but the compatibles were never added.
Signed-off-by Jonathan Marek <[email protected]>Acked-by Rob Herring <[email protected]>[DB: split dt-bindings into separate patch]Signed-off-by Dmitry Baryshkov <[email protected]>---
This will conflict with the yaml changes to this file that are also in flight.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v4 3/4 drm/msm: add compatibles for sm8150/sm8250 display
In reply to Dmitry BaryshkovFrom: Jonathan Marek <[email protected]>
The driver already has support for sm8150/sm8250, but the compatibles were never added.
Also inverse the non-mdp4 condition in add_display_components() to avoid having to check every new compatible in the condition.
--- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 ++ drivers/gpu/drm/msm/msm_drv.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +2 -0
@@ -1219,6 +1219,8 @@ static const struct dev_pm_ops dpu_pm_ops = {static const struct of_device_id dpu_dt_match[] = { { .compatible ="qcom,sdm845-dpu" , }, { .compatible ="qcom,sc7180-dpu" , }, + { .compatible ="qcom,sm8150-dpu" , }, + { .compatible ="qcom,sm8250-dpu" , }, {} };MODULE_DEVICE_TABLE (of, dpu_dt_match);
drivers/gpu/drm/msm/msm_drv.c +3 -3
@@ -1185,9 +1185,7 @@ static int add_display_components(struct device *dev,* Populate the children devices, find the MDP5/DPU node, and then add * the interfaces to our components list. */ -if (of_device_is_compatible (dev->of_node,"qcom,mdss" ) || -of_device_is_compatible (dev->of_node,"qcom,sdm845-mdss" ) || -of_device_is_compatible (dev->of_node,"qcom,sc7180-mdss" )) { +if (!of_device_is_compatible (dev->of_node,"qcom,mdp4" )) { ret =of_platform_populate (dev->of_node,NULL ,NULL , dev);if (ret) {DRM_DEV_ERROR (dev,"failed to populate children devices\n" );
@@ -1320,6 +1318,8 @@ static const struct of_device_id dt_match[] = { { .compatible = "qcom,mdss", .data = (void *)KMS_MDP5 }, { .compatible = "qcom,sdm845-mdss", .data = (void *)KMS_DPU }, { .compatible = "qcom,sc7180-mdss", .data = (void *)KMS_DPU }, + { .compatible = "qcom,sm8150-mdss", .data = (void *)KMS_DPU }, + { .compatible = "qcom,sm8250-mdss", .data = (void *)KMS_DPU }, {} };MODULE_DEVICE_TABLE (of, dt_match);
Signature · 6 lines
2.30.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v4 3/4] drm/msm: add compatibles for sm8150/sm8250 display
Quoting Dmitry Baryshkov (2021-03-29 05:00:50)
Quoted 11 lines
From: Jonathan Marek <[email protected]>
The driver already has support for sm8150/sm8250, but the compatibles were never added.
Also inverse the non-mdp4 condition in
add_display_components()to avoid having to check every new compatible in the condition.Signed-off-by Jonathan Marek <[email protected]>Signed-off-by Dmitry Baryshkov <[email protected]>---
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v4 3/4] drm/msm: add compatibles for sm8150/sm8250 display
In reply to Dmitry BaryshkovQuoted 33 lines · Dmitry Baryshkov
From: Jonathan Marek <[email protected]>
The driver already has support for sm8150/sm8250, but the compatibles were never added.
Also inverse the non-mdp4 condition in
add_display_components()to avoid having to check every new compatible in the condition.Signed-off-by Jonathan Marek <[email protected]>Signed-off-by Dmitry Baryshkov <[email protected]>--- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 ++ drivers/gpu/drm/msm/msm_drv.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-)drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +2
-0@@ -1219,6 +1219,8 @@ static const struct dev_pm_ops dpu_pm_ops = {static const struct of_device_id dpu_dt_match[] = { { .compatible ="qcom,sdm845-dpu" , }, { .compatible ="qcom,sc7180-dpu" , }, + { .compatible ="qcom,sm8150-dpu" , }, + { .compatible ="qcom,sm8250-dpu" , }, {} };MODULE_DEVICE_TABLE (of, dpu_dt_match);drivers/gpu/drm/msm/msm_drv.c +0
-0
drivers/gpu/drm/msm/msm_drv.c static int add_display_components(struct device *dev, · line 1188
Quoted 7 lines
drivers/gpu/drm/msm/msm_drv.c +1
-3@@ -1185,9 +1185,7 @@ static int add_display_components(struct device *dev,* Populate the children devices, find the MDP5/DPU node, and then add * the interfaces to our components list. */ -if (of_device_is_compatible (dev->of_node,"qcom,mdss" ) || -of_device_is_compatible (dev->of_node,"qcom,sdm845-mdss" ) || -of_device_is_compatible (dev->of_node,"qcom,sc7180-mdss" )) { +if (!of_device_is_compatible (dev->of_node,"qcom,mdp4" )) {
Please consider reviewing my proposed alternative solution for this hunk:
https://lore.kernel.org/linux-arm-msm/[email protected]/
For the rest
Regards,
Bjorn
Quoted 15 lines
drivers/gpu/drm/msm/msm_drv.c +2
-0ret =of_platform_populate (dev->of_node,NULL ,NULL , dev);if (ret) {DRM_DEV_ERROR (dev,"failed to populate children devices\n" );@@ -1320,6 +1318,8 @@ static const struct of_device_id dt_match[] = { { .compatible = "qcom,mdss", .data = (void *)KMS_MDP5 }, { .compatible = "qcom,sdm845-mdss", .data = (void *)KMS_DPU }, { .compatible = "qcom,sc7180-mdss", .data = (void *)KMS_DPU }, + { .compatible = "qcom,sm8150-mdss", .data = (void *)KMS_DPU }, + { .compatible = "qcom,sm8250-mdss", .data = (void *)KMS_DPU }, {} };MODULE_DEVICE_TABLE (of, dt_match);Signature · 1 line
2.30.2
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v4 3/4] drm/msm: add compatibles for sm8150/sm8250 display
Quoted 47 lines · Bjorn Andersson
Quoted 33 lines · Dmitry Baryshkov
From: Jonathan Marek <[email protected]>
The driver already has support for sm8150/sm8250, but the compatibles were never added.
Also inverse the non-mdp4 condition in
add_display_components()to avoid having to check every new compatible in the condition.Signed-off-by Jonathan Marek <[email protected]>Signed-off-by Dmitry Baryshkov <[email protected]>--- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 ++ drivers/gpu/drm/msm/msm_drv.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-)drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +2
-0@@ -1219,6 +1219,8 @@ static const struct dev_pm_ops dpu_pm_ops = {static const struct of_device_id dpu_dt_match[] = { { .compatible ="qcom,sdm845-dpu" , }, { .compatible ="qcom,sc7180-dpu" , }, + { .compatible ="qcom,sm8150-dpu" , }, + { .compatible ="qcom,sm8250-dpu" , }, {} };MODULE_DEVICE_TABLE (of, dpu_dt_match);drivers/gpu/drm/msm/msm_drv.c +0
-0drivers/gpu/drm/msm/msm_drv.c static int add_display_components(struct device *dev, · line 1188
Quoted 7 lines
drivers/gpu/drm/msm/msm_drv.c +1
-3@@ -1185,9 +1185,7 @@ static int add_display_components(struct device *dev,* Populate the children devices, find the MDP5/DPU node, and then add * the interfaces to our components list. */ -if (of_device_is_compatible (dev->of_node,"qcom,mdss" ) || -of_device_is_compatible (dev->of_node,"qcom,sdm845-mdss" ) || -of_device_is_compatible (dev->of_node,"qcom,sc7180-mdss" )) { +if (!of_device_is_compatible (dev->of_node,"qcom,mdp4" )) {Please consider reviewing my proposed alternative solution for this hunk:
I'd slightly prefer Jonathan's approach, as it seems simpler, but no strong preference towards one or another.
Quoted 23 lines
For the rest
Reviewed-by Bjorn Andersson <[email protected]>Regards,
BjornQuoted 15 lines
drivers/gpu/drm/msm/msm_drv.c +2
-1ret =of_platform_populate (dev->of_node,NULL ,NULL , dev);if (ret) {DRM_DEV_ERROR (dev,"failed to populate children devices\n" );@@ -1320,6 +1318,8 @@ static const struct of_device_id dt_match[] = { { .compatible = "qcom,mdss", .data = (void *)KMS_MDP5 }, { .compatible = "qcom,sdm845-mdss", .data = (void *)KMS_DPU }, { .compatible = "qcom,sc7180-mdss", .data = (void *)KMS_DPU }, + { .compatible = "qcom,sm8150-mdss", .data = (void *)KMS_DPU }, + { .compatible = "qcom,sm8250-mdss", .data = (void *)KMS_DPU }, {} };MODULE_DEVICE_TABLE (of, dt_match); --2.30.2
Signature · 6 lines
With best wishes Dmitry _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v4 3/4] drm/msm: add compatibles for sm8150/sm8250 display
In reply to Dmitry BaryshkovQuoted 10 lines · Dmitry Baryshkov
From: Jonathan Marek <[email protected]>
The driver already has support for sm8150/sm8250, but the compatibles were never added.
Also inverse the non-mdp4 condition in
add_display_components()to avoid having to check every new compatible in the condition.Signed-off-by Jonathan Marek <[email protected]>Signed-off-by Dmitry Baryshkov <[email protected]>
Rob, will you pick patch 2 and 3 for 5.13?
I've picked patch 1 and would like to pick patch 4 through my tree...
Regards,
Bjorn
Quoted 45 lines
--- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 ++ drivers/gpu/drm/msm/msm_drv.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-)drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +2
-0@@ -1219,6 +1219,8 @@ static const struct dev_pm_ops dpu_pm_ops = {static const struct of_device_id dpu_dt_match[] = { { .compatible ="qcom,sdm845-dpu" , }, { .compatible ="qcom,sc7180-dpu" , }, + { .compatible ="qcom,sm8150-dpu" , }, + { .compatible ="qcom,sm8250-dpu" , }, {} };MODULE_DEVICE_TABLE (of, dpu_dt_match);drivers/gpu/drm/msm/msm_drv.c +3
-3@@ -1185,9 +1185,7 @@ static int add_display_components(struct device *dev,* Populate the children devices, find the MDP5/DPU node, and then add * the interfaces to our components list. */ -if (of_device_is_compatible (dev->of_node,"qcom,mdss" ) || -of_device_is_compatible (dev->of_node,"qcom,sdm845-mdss" ) || -of_device_is_compatible (dev->of_node,"qcom,sc7180-mdss" )) { +if (!of_device_is_compatible (dev->of_node,"qcom,mdp4" )) { ret =of_platform_populate (dev->of_node,NULL ,NULL , dev);if (ret) {DRM_DEV_ERROR (dev,"failed to populate children devices\n" );@@ -1320,6 +1318,8 @@ static const struct of_device_id dt_match[] = { { .compatible = "qcom,mdss", .data = (void *)KMS_MDP5 }, { .compatible = "qcom,sdm845-mdss", .data = (void *)KMS_DPU }, { .compatible = "qcom,sc7180-mdss", .data = (void *)KMS_DPU }, + { .compatible = "qcom,sm8150-mdss", .data = (void *)KMS_DPU }, + { .compatible = "qcom,sm8250-mdss", .data = (void *)KMS_DPU }, {} };MODULE_DEVICE_TABLE (of, dt_match);Signature · 1 line
2.30.2
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v4 4/4 arm64: dts: qcom: sm8250: fix display nodes
In reply to Dmitry BaryshkovFrom: Jonathan Marek <[email protected]>
- Use sm8250 compatibles instead of sdm845 compatibles
--- arch/arm64/boot/dts/qcom/sm8250.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sm8250.dtsi +2 -2
@@ -2323,7 +2323,7 @@ usb_2_dwc3: dwc3@a800000 { }; mdss: mdss@ae00000 { - compatible = "qcom,sdm845-mdss"; + compatible = "qcom,sm8250-mdss"; reg = <0 0x0ae00000 0 0x1000>; reg-names = "mdss";
@@ -2355,7 +2355,7 @@ mdss: mdss@ae00000 { ranges; mdss_mdp: mdp@ae01000 { - compatible = "qcom,sdm845-dpu"; + compatible = "qcom,sm8250-dpu"; reg = <0 0x0ae01000 0 0x8f000>, <0 0x0aeb0000 0 0x2008>; reg-names = "mdp", "vbif";
Signature · 6 lines
2.30.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoting Dmitry Baryshkov (2021-03-29 05:00:51)
Quoted 4 lines
From: Jonathan Marek <[email protected]>
- Use sm8250 compatibles instead of sdm845 compatibles
Does it need the " - " prefix?
Quoted 3 lines
Signed-off-by Jonathan Marek <[email protected]>Signed-off-by Dmitry Baryshkov <[email protected]>---
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel