* [PATCH v3 0/6] SM6115/SM6125 MDSS core reset
@ 2026-03-03 3:41 Val Packett
2026-03-03 3:41 ` [PATCH v3 1/6] dt-bindings: clock: qcom,sm6115-dispcc: Define MDSS resets Val Packett
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: Val Packett @ 2026-03-03 3:41 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Krzysztof Kozlowski,
Michael Turquette, Stephen Boyd, Rob Herring, Conor Dooley,
Adam Skladowski
Cc: Val Packett, linux-arm-msm, phone-devel,
~postmarketos/upstreaming, linux-kernel, linux-clk, devicetree
v3: Collect A-b, remove Fixes in dt-bindings and clk as requested
v2: https://lore.kernel.org/all/20260228204638.11705-1-val@packett.cool/
v1: https://lore.kernel.org/all/20260216233600.13098-2-val@packett.cool/
~val
Val Packett (6):
dt-bindings: clock: qcom,sm6115-dispcc: Define MDSS resets
dt-bindings: clock: qcom,dispcc-sm6125: Define MDSS resets
clk: qcom: dispcc-sm6115: Add missing MDSS resets
clk: qcom: dispcc-sm6125: Add missing MDSS resets
arm64: dts: qcom: sm6115: Add missing MDSS core reset
arm64: dts: qcom: sm6125: Add missing MDSS core reset
arch/arm64/boot/dts/qcom/sm6115.dtsi | 2 ++
arch/arm64/boot/dts/qcom/sm6125.dtsi | 3 +++
drivers/clk/qcom/dispcc-sm6115.c | 7 +++++++
drivers/clk/qcom/dispcc-sm6125.c | 7 +++++++
include/dt-bindings/clock/qcom,dispcc-sm6125.h | 6 +++++-
include/dt-bindings/clock/qcom,sm6115-dispcc.h | 7 +++++--
6 files changed, 29 insertions(+), 3 deletions(-)
--
2.52.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v3 1/6] dt-bindings: clock: qcom,sm6115-dispcc: Define MDSS resets
2026-03-03 3:41 [PATCH v3 0/6] SM6115/SM6125 MDSS core reset Val Packett
@ 2026-03-03 3:41 ` Val Packett
2026-03-03 3:41 ` [PATCH v3 2/6] dt-bindings: clock: qcom,dispcc-sm6125: " Val Packett
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Val Packett @ 2026-03-03 3:41 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Krzysztof Kozlowski,
Michael Turquette, Stephen Boyd, Rob Herring, Conor Dooley,
Adam Skladowski, Martin Botka, Marijn Suijten
Cc: Val Packett, linux-arm-msm, phone-devel,
~postmarketos/upstreaming, linux-clk, devicetree, linux-kernel,
Krzysztof Kozlowski, Krzysztof Kozlowski
Add the missing defines for MDSS resets, which are necessary to reset
the display subsystem in order to avoid issues caused by state left over
from the bootloader.
While here, align comment style with other SoCs.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Val Packett <val@packett.cool>
---
include/dt-bindings/clock/qcom,sm6115-dispcc.h | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/include/dt-bindings/clock/qcom,sm6115-dispcc.h b/include/dt-bindings/clock/qcom,sm6115-dispcc.h
index d1a6c45b5029..ab8d312ade37 100644
--- a/include/dt-bindings/clock/qcom,sm6115-dispcc.h
+++ b/include/dt-bindings/clock/qcom,sm6115-dispcc.h
@@ -6,7 +6,7 @@
#ifndef _DT_BINDINGS_CLK_QCOM_DISP_CC_SM6115_H
#define _DT_BINDINGS_CLK_QCOM_DISP_CC_SM6115_H
-/* DISP_CC clocks */
+/* Clocks */
#define DISP_CC_PLL0 0
#define DISP_CC_PLL0_OUT_MAIN 1
#define DISP_CC_MDSS_AHB_CLK 2
@@ -30,7 +30,10 @@
#define DISP_CC_SLEEP_CLK 20
#define DISP_CC_SLEEP_CLK_SRC 21
-/* DISP_CC GDSCR */
+/* Resets */
+#define DISP_CC_MDSS_CORE_BCR 0
+
+/* GDSCs */
#define MDSS_GDSC 0
#endif
--
2.52.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v3 2/6] dt-bindings: clock: qcom,dispcc-sm6125: Define MDSS resets
2026-03-03 3:41 [PATCH v3 0/6] SM6115/SM6125 MDSS core reset Val Packett
2026-03-03 3:41 ` [PATCH v3 1/6] dt-bindings: clock: qcom,sm6115-dispcc: Define MDSS resets Val Packett
@ 2026-03-03 3:41 ` Val Packett
2026-03-03 3:41 ` [PATCH v3 5/6] arm64: dts: qcom: sm6115: Add missing MDSS core reset Val Packett
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Val Packett @ 2026-03-03 3:41 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Krzysztof Kozlowski,
Michael Turquette, Stephen Boyd, Rob Herring, Conor Dooley,
Adam Skladowski, Martin Botka, Marijn Suijten
Cc: Val Packett, linux-arm-msm, phone-devel,
~postmarketos/upstreaming, linux-clk, devicetree, linux-kernel,
Krzysztof Kozlowski, Krzysztof Kozlowski
Add the missing defines for MDSS resets, which are necessary to reset
the display subsystem in order to avoid issues caused by state left over
from the bootloader.
While here, align comment style with other SoCs.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Val Packett <val@packett.cool>
---
include/dt-bindings/clock/qcom,dispcc-sm6125.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/include/dt-bindings/clock/qcom,dispcc-sm6125.h b/include/dt-bindings/clock/qcom,dispcc-sm6125.h
index 4ff974f4fcc3..f58b85d2c814 100644
--- a/include/dt-bindings/clock/qcom,dispcc-sm6125.h
+++ b/include/dt-bindings/clock/qcom,dispcc-sm6125.h
@@ -6,6 +6,7 @@
#ifndef _DT_BINDINGS_CLK_QCOM_DISP_CC_SM6125_H
#define _DT_BINDINGS_CLK_QCOM_DISP_CC_SM6125_H
+/* Clocks */
#define DISP_CC_PLL0 0
#define DISP_CC_MDSS_AHB_CLK 1
#define DISP_CC_MDSS_AHB_CLK_SRC 2
@@ -35,7 +36,10 @@
#define DISP_CC_MDSS_VSYNC_CLK_SRC 26
#define DISP_CC_XO_CLK 27
-/* DISP_CC GDSCR */
+/* Resets */
+#define DISP_CC_MDSS_CORE_BCR 0
+
+/* GDSCs */
#define MDSS_GDSC 0
#endif
--
2.52.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v3 5/6] arm64: dts: qcom: sm6115: Add missing MDSS core reset
2026-03-03 3:41 [PATCH v3 0/6] SM6115/SM6125 MDSS core reset Val Packett
2026-03-03 3:41 ` [PATCH v3 1/6] dt-bindings: clock: qcom,sm6115-dispcc: Define MDSS resets Val Packett
2026-03-03 3:41 ` [PATCH v3 2/6] dt-bindings: clock: qcom,dispcc-sm6125: " Val Packett
@ 2026-03-03 3:41 ` Val Packett
2026-03-03 6:34 ` Krzysztof Kozlowski
2026-03-03 3:41 ` [PATCH v3 6/6] arm64: dts: qcom: sm6125: " Val Packett
2026-03-11 20:56 ` (subset) [PATCH v3 0/6] SM6115/SM6125 " Bjorn Andersson
4 siblings, 1 reply; 8+ messages in thread
From: Val Packett @ 2026-03-03 3:41 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Adam Skladowski
Cc: Val Packett, linux-arm-msm, phone-devel,
~postmarketos/upstreaming, devicetree, linux-kernel,
Dmitry Baryshkov, Konrad Dybcio
To make sure the display subsystem starts in a predictable state, we
need to reset it. Otherwise, unpredictable issues can happen, e.g.
on the motorola-guamp smartphone DSI would not transmit anything.
Wire up the reset to fix.
Fixes: 705e50427d81 ("arm64: dts: qcom: sm6115: Add mdss/dpu node")
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Val Packett <val@packett.cool>
---
arch/arm64/boot/dts/qcom/sm6115.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
index e9336adbc391..3a9a1ad8d581 100644
--- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
@@ -1864,6 +1864,8 @@ mdss: display-subsystem@5e00000 {
<&gcc GCC_DISP_HF_AXI_CLK>,
<&dispcc DISP_CC_MDSS_MDP_CLK>;
+ resets = <&dispcc DISP_CC_MDSS_CORE_BCR>;
+
interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
interrupt-controller;
#interrupt-cells = <1>;
--
2.52.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v3 6/6] arm64: dts: qcom: sm6125: Add missing MDSS core reset
2026-03-03 3:41 [PATCH v3 0/6] SM6115/SM6125 MDSS core reset Val Packett
` (2 preceding siblings ...)
2026-03-03 3:41 ` [PATCH v3 5/6] arm64: dts: qcom: sm6115: Add missing MDSS core reset Val Packett
@ 2026-03-03 3:41 ` Val Packett
2026-03-03 6:33 ` Krzysztof Kozlowski
2026-03-11 20:56 ` (subset) [PATCH v3 0/6] SM6115/SM6125 " Bjorn Andersson
4 siblings, 1 reply; 8+ messages in thread
From: Val Packett @ 2026-03-03 3:41 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Adam Skladowski, Marijn Suijten, Dmitry Baryshkov
Cc: Val Packett, linux-arm-msm, phone-devel,
~postmarketos/upstreaming, devicetree, linux-kernel,
Dmitry Baryshkov, Konrad Dybcio, Yedaya Katsman
To make sure the display subsystem starts in a predictable state, we
need to reset it. Otherwise, unpredictable issues can happen, e.g.
on the xiaomi-laurel-sprout smartphone DSI would not work on boot.
Wire up the reset to fix.
Fixes: 0865d23a0226 ("arm64: dts: qcom: sm6125: Add display hardware nodes")
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Tested-by: Yedaya Katsman <yedaya.ka@gmail.com>
Signed-off-by: Val Packett <val@packett.cool>
---
arch/arm64/boot/dts/qcom/sm6125.dtsi | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sm6125.dtsi b/arch/arm64/boot/dts/qcom/sm6125.dtsi
index 80c42dff5399..a22374e5a17f 100644
--- a/arch/arm64/boot/dts/qcom/sm6125.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6125.dtsi
@@ -1238,6 +1238,8 @@ mdss: display-subsystem@5e00000 {
"ahb",
"core";
+ resets = <&dispcc DISP_CC_MDSS_CORE_BCR>;
+
power-domains = <&dispcc MDSS_GDSC>;
iommus = <&apps_smmu 0x400 0x0>;
@@ -1437,6 +1439,7 @@ dispcc: clock-controller@5f00000 {
power-domains = <&rpmpd RPMPD_VDDCX>;
#clock-cells = <1>;
+ #reset-cells = <1>;
#power-domain-cells = <1>;
};
--
2.52.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v3 6/6] arm64: dts: qcom: sm6125: Add missing MDSS core reset
2026-03-03 3:41 ` [PATCH v3 6/6] arm64: dts: qcom: sm6125: " Val Packett
@ 2026-03-03 6:33 ` Krzysztof Kozlowski
0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2026-03-03 6:33 UTC (permalink / raw)
To: Val Packett
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Adam Skladowski, Marijn Suijten, Dmitry Baryshkov,
linux-arm-msm, phone-devel, ~postmarketos/upstreaming, devicetree,
linux-kernel, Dmitry Baryshkov, Konrad Dybcio, Yedaya Katsman
On Tue, Mar 03, 2026 at 12:41:25AM -0300, Val Packett wrote:
> To make sure the display subsystem starts in a predictable state, we
> need to reset it. Otherwise, unpredictable issues can happen, e.g.
> on the xiaomi-laurel-sprout smartphone DSI would not work on boot.
>
> Wire up the reset to fix.
>
> Fixes: 0865d23a0226 ("arm64: dts: qcom: sm6125: Add display hardware nodes")
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
> Tested-by: Yedaya Katsman <yedaya.ka@gmail.com>
> Signed-off-by: Val Packett <val@packett.cool>
> ---
> arch/arm64/boot/dts/qcom/sm6125.dtsi | 3 +++
> 1 file changed, 3 insertions(+)
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 5/6] arm64: dts: qcom: sm6115: Add missing MDSS core reset
2026-03-03 3:41 ` [PATCH v3 5/6] arm64: dts: qcom: sm6115: Add missing MDSS core reset Val Packett
@ 2026-03-03 6:34 ` Krzysztof Kozlowski
0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2026-03-03 6:34 UTC (permalink / raw)
To: Val Packett, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Adam Skladowski
Cc: linux-arm-msm, phone-devel, ~postmarketos/upstreaming, devicetree,
linux-kernel, Dmitry Baryshkov, Konrad Dybcio
On 03/03/2026 04:41, Val Packett wrote:
> To make sure the display subsystem starts in a predictable state, we
> need to reset it. Otherwise, unpredictable issues can happen, e.g.
> on the motorola-guamp smartphone DSI would not transmit anything.
>
> Wire up the reset to fix.
>
> Fixes: 705e50427d81 ("arm64: dts: qcom: sm6115: Add mdss/dpu node")
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
> Signed-off-by: Val Packett <val@packett.cool>
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: (subset) [PATCH v3 0/6] SM6115/SM6125 MDSS core reset
2026-03-03 3:41 [PATCH v3 0/6] SM6115/SM6125 MDSS core reset Val Packett
` (3 preceding siblings ...)
2026-03-03 3:41 ` [PATCH v3 6/6] arm64: dts: qcom: sm6125: " Val Packett
@ 2026-03-11 20:56 ` Bjorn Andersson
4 siblings, 0 replies; 8+ messages in thread
From: Bjorn Andersson @ 2026-03-11 20:56 UTC (permalink / raw)
To: Konrad Dybcio, Krzysztof Kozlowski, Michael Turquette,
Stephen Boyd, Rob Herring, Conor Dooley, Adam Skladowski,
Val Packett
Cc: linux-arm-msm, phone-devel, ~postmarketos/upstreaming,
linux-kernel, linux-clk, devicetree
On Tue, 03 Mar 2026 00:41:19 -0300, Val Packett wrote:
> v3: Collect A-b, remove Fixes in dt-bindings and clk as requested
> v2: https://lore.kernel.org/all/20260228204638.11705-1-val@packett.cool/
> v1: https://lore.kernel.org/all/20260216233600.13098-2-val@packett.cool/
>
> ~val
>
> Val Packett (6):
> dt-bindings: clock: qcom,sm6115-dispcc: Define MDSS resets
> dt-bindings: clock: qcom,dispcc-sm6125: Define MDSS resets
> clk: qcom: dispcc-sm6115: Add missing MDSS resets
> clk: qcom: dispcc-sm6125: Add missing MDSS resets
> arm64: dts: qcom: sm6115: Add missing MDSS core reset
> arm64: dts: qcom: sm6125: Add missing MDSS core reset
>
> [...]
Applied, thanks!
[5/6] arm64: dts: qcom: sm6115: Add missing MDSS core reset
commit: 1cc317d4188ba2d72c298b5271fb4a2fa1d84c29
[6/6] arm64: dts: qcom: sm6125: Add missing MDSS core reset
commit: bb4d28e377cf04fbee8a01322059fa14808cdfe9
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-03-11 20:56 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-03 3:41 [PATCH v3 0/6] SM6115/SM6125 MDSS core reset Val Packett
2026-03-03 3:41 ` [PATCH v3 1/6] dt-bindings: clock: qcom,sm6115-dispcc: Define MDSS resets Val Packett
2026-03-03 3:41 ` [PATCH v3 2/6] dt-bindings: clock: qcom,dispcc-sm6125: " Val Packett
2026-03-03 3:41 ` [PATCH v3 5/6] arm64: dts: qcom: sm6115: Add missing MDSS core reset Val Packett
2026-03-03 6:34 ` Krzysztof Kozlowski
2026-03-03 3:41 ` [PATCH v3 6/6] arm64: dts: qcom: sm6125: " Val Packett
2026-03-03 6:33 ` Krzysztof Kozlowski
2026-03-11 20:56 ` (subset) [PATCH v3 0/6] SM6115/SM6125 " Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox