linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add MDSS_CORE reset on QCM2290
@ 2023-03-16 11:48 Konrad Dybcio
  2023-03-16 11:48 ` [PATCH 1/2] dt-bindings: clock: dispcc-qcm2290: Add MDSS_CORE reset Konrad Dybcio
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Konrad Dybcio @ 2023-03-16 11:48 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Rob Herring, Krzysztof Kozlowski
  Cc: Marijn Suijten, linux-arm-msm, linux-clk, devicetree,
	linux-kernel, Konrad Dybcio

Add the MDSS_CORE reset which can be used to reset the state of MDSS.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
Konrad Dybcio (2):
      dt-bindings: clock: dispcc-qcm2290: Add MDSS_CORE reset
      clk: qcom: dispcc-qcm2290: Add MDSS_CORE reset

 drivers/clk/qcom/dispcc-qcm2290.c               | 7 +++++++
 include/dt-bindings/clock/qcom,dispcc-qcm2290.h | 4 ++++
 2 files changed, 11 insertions(+)
---
base-commit: 6f72958a49f68553f2b6ff713e8c8e51a34c1e1e
change-id: 20230316-topic-qcm_dispcc_reset-ca034408f61d

Best regards,
-- 
Konrad Dybcio <konrad.dybcio@linaro.org>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] dt-bindings: clock: dispcc-qcm2290: Add MDSS_CORE reset
  2023-03-16 11:48 [PATCH 0/2] Add MDSS_CORE reset on QCM2290 Konrad Dybcio
@ 2023-03-16 11:48 ` Konrad Dybcio
  2023-03-17  8:35   ` Krzysztof Kozlowski
  2023-03-16 11:48 ` [PATCH 2/2] clk: qcom: " Konrad Dybcio
  2023-04-05  4:08 ` (subset) [PATCH 0/2] Add MDSS_CORE reset on QCM2290 Bjorn Andersson
  2 siblings, 1 reply; 5+ messages in thread
From: Konrad Dybcio @ 2023-03-16 11:48 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Rob Herring, Krzysztof Kozlowski
  Cc: Marijn Suijten, linux-arm-msm, linux-clk, devicetree,
	linux-kernel, Konrad Dybcio

Add the MDSS_CORE reset which can be asserted to reset the state of
the entire MDSS.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 include/dt-bindings/clock/qcom,dispcc-qcm2290.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/dt-bindings/clock/qcom,dispcc-qcm2290.h b/include/dt-bindings/clock/qcom,dispcc-qcm2290.h
index 1db513d6b3ee..cb687949be41 100644
--- a/include/dt-bindings/clock/qcom,dispcc-qcm2290.h
+++ b/include/dt-bindings/clock/qcom,dispcc-qcm2290.h
@@ -29,6 +29,10 @@
 #define DISP_CC_XO_CLK				19
 #define DISP_CC_XO_CLK_SRC			20
 
+/* GDSCs */
 #define MDSS_GDSC				0
 
+/* Resets */
+#define DISP_CC_MDSS_CORE_BCR			0
+
 #endif

-- 
2.39.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] clk: qcom: dispcc-qcm2290: Add MDSS_CORE reset
  2023-03-16 11:48 [PATCH 0/2] Add MDSS_CORE reset on QCM2290 Konrad Dybcio
  2023-03-16 11:48 ` [PATCH 1/2] dt-bindings: clock: dispcc-qcm2290: Add MDSS_CORE reset Konrad Dybcio
@ 2023-03-16 11:48 ` Konrad Dybcio
  2023-04-05  4:08 ` (subset) [PATCH 0/2] Add MDSS_CORE reset on QCM2290 Bjorn Andersson
  2 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2023-03-16 11:48 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Rob Herring, Krzysztof Kozlowski
  Cc: Marijn Suijten, linux-arm-msm, linux-clk, devicetree,
	linux-kernel, Konrad Dybcio

Add the MDSS_CORE reset which can be asserted to reset the state of
the entire MDSS.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 drivers/clk/qcom/dispcc-qcm2290.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/clk/qcom/dispcc-qcm2290.c b/drivers/clk/qcom/dispcc-qcm2290.c
index 2ebd9a02b895..cbb5f1ec6a54 100644
--- a/drivers/clk/qcom/dispcc-qcm2290.c
+++ b/drivers/clk/qcom/dispcc-qcm2290.c
@@ -20,6 +20,7 @@
 #include "clk-regmap-divider.h"
 #include "common.h"
 #include "gdsc.h"
+#include "reset.h"
 
 enum {
 	P_BI_TCXO,
@@ -445,6 +446,10 @@ static struct clk_branch disp_cc_sleep_clk = {
 	},
 };
 
+static const struct qcom_reset_map disp_cc_qcm2290_resets[] = {
+	[DISP_CC_MDSS_CORE_BCR] = { 0x2000 },
+};
+
 static struct gdsc mdss_gdsc = {
 	.gdscr = 0x3000,
 	.pd = {
@@ -494,6 +499,8 @@ static const struct qcom_cc_desc disp_cc_qcm2290_desc = {
 	.num_clks = ARRAY_SIZE(disp_cc_qcm2290_clocks),
 	.gdscs = disp_cc_qcm2290_gdscs,
 	.num_gdscs = ARRAY_SIZE(disp_cc_qcm2290_gdscs),
+	.resets = disp_cc_qcm2290_resets,
+	.num_resets = ARRAY_SIZE(disp_cc_qcm2290_resets),
 };
 
 static const struct of_device_id disp_cc_qcm2290_match_table[] = {

-- 
2.39.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] dt-bindings: clock: dispcc-qcm2290: Add MDSS_CORE reset
  2023-03-16 11:48 ` [PATCH 1/2] dt-bindings: clock: dispcc-qcm2290: Add MDSS_CORE reset Konrad Dybcio
@ 2023-03-17  8:35   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-17  8:35 UTC (permalink / raw)
  To: Konrad Dybcio, Andy Gross, Bjorn Andersson, Michael Turquette,
	Stephen Boyd, Rob Herring, Krzysztof Kozlowski
  Cc: Marijn Suijten, linux-arm-msm, linux-clk, devicetree, linux-kernel

On 16/03/2023 12:48, Konrad Dybcio wrote:
> Add the MDSS_CORE reset which can be asserted to reset the state of
> the entire MDSS.
> 
> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
> ---

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: (subset) [PATCH 0/2] Add MDSS_CORE reset on QCM2290
  2023-03-16 11:48 [PATCH 0/2] Add MDSS_CORE reset on QCM2290 Konrad Dybcio
  2023-03-16 11:48 ` [PATCH 1/2] dt-bindings: clock: dispcc-qcm2290: Add MDSS_CORE reset Konrad Dybcio
  2023-03-16 11:48 ` [PATCH 2/2] clk: qcom: " Konrad Dybcio
@ 2023-04-05  4:08 ` Bjorn Andersson
  2 siblings, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2023-04-05  4:08 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Michael Turquette, Andy Gross, Rob Herring,
	Stephen Boyd, Konrad Dybcio
  Cc: linux-arm-msm, devicetree, linux-clk, Marijn Suijten, linux-kernel

On Thu, 16 Mar 2023 12:48:03 +0100, Konrad Dybcio wrote:
> Add the MDSS_CORE reset which can be used to reset the state of MDSS.
> 
> 

Applied, thanks!

[2/2] clk: qcom: dispcc-qcm2290: Add MDSS_CORE reset
      commit: 002c3fb6f4f38b50ef0514247c2d55fc6ed8c6d4

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-05  4:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-16 11:48 [PATCH 0/2] Add MDSS_CORE reset on QCM2290 Konrad Dybcio
2023-03-16 11:48 ` [PATCH 1/2] dt-bindings: clock: dispcc-qcm2290: Add MDSS_CORE reset Konrad Dybcio
2023-03-17  8:35   ` Krzysztof Kozlowski
2023-03-16 11:48 ` [PATCH 2/2] clk: qcom: " Konrad Dybcio
2023-04-05  4:08 ` (subset) [PATCH 0/2] Add MDSS_CORE reset on QCM2290 Bjorn Andersson

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).