From: Taniya Das <taniya.das@oss.qualcomm.com>
To: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>,
Bjorn Andersson <andersson@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
cros-qcom-dts-watchers@chromium.org,
Konrad Dybcio <konradybcio@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] clk: qcom: dispcc-sc7280: Add dispcc resets
Date: Tue, 12 Aug 2025 10:35:30 +0530 [thread overview]
Message-ID: <ed0341b3-4056-4826-bec7-e835a6da4fad@oss.qualcomm.com> (raw)
In-Reply-To: <20250811-sc7280-mdss-reset-v1-2-83ceff1d48de@oss.qualcomm.com>
On 8/12/2025 8:41 AM, Bjorn Andersson wrote:
> Like many other platforms the sc7280 display clock controller provides
> a couple of resets for the display subsystem. In particular the
> MDSS_CORE_BCR is useful to reset the display subsystem to a known state
> during boot, so add these.
>
In this issue I believe the requirement is to have a clean sheet and
restart the MDSS explicitly. Historically MDSS never required a BCR reset.
> Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
> ---
> drivers/clk/qcom/dispcc-sc7280.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/clk/qcom/dispcc-sc7280.c b/drivers/clk/qcom/dispcc-sc7280.c
> index 8bdf57734a3d47fdf8bd2053640d8ef462677556..465dc06c87128182348a4e0ea384af779647bd84 100644
> --- a/drivers/clk/qcom/dispcc-sc7280.c
> +++ b/drivers/clk/qcom/dispcc-sc7280.c
> @@ -17,6 +17,7 @@
> #include "clk-regmap-divider.h"
> #include "common.h"
> #include "gdsc.h"
> +#include "reset.h"
>
> enum {
> P_BI_TCXO,
> @@ -847,6 +848,11 @@ static struct gdsc *disp_cc_sc7280_gdscs[] = {
> [DISP_CC_MDSS_CORE_GDSC] = &disp_cc_mdss_core_gdsc,
> };
>
> +static const struct qcom_reset_map disp_cc_sc7280_resets[] = {
> + [DISP_CC_MDSS_CORE_BCR] = { 0x1000 },
> + [DISP_CC_MDSS_RSCC_BCR] = { 0x2000 },
> +};
> +
> static const struct regmap_config disp_cc_sc7280_regmap_config = {
> .reg_bits = 32,
> .reg_stride = 4,
> @@ -861,6 +867,8 @@ static const struct qcom_cc_desc disp_cc_sc7280_desc = {
> .num_clks = ARRAY_SIZE(disp_cc_sc7280_clocks),
> .gdscs = disp_cc_sc7280_gdscs,
> .num_gdscs = ARRAY_SIZE(disp_cc_sc7280_gdscs),
> + .resets = disp_cc_sc7280_resets,
> + .num_resets = ARRAY_SIZE(disp_cc_sc7280_resets),
> };
>
> static const struct of_device_id disp_cc_sc7280_match_table[] = {
>
Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>
--
Thanks,
Taniya Das
next prev parent reply other threads:[~2025-08-12 5:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-12 3:11 [PATCH 0/3] arm64: dts: qcom: sc7280: Add the MDSS_CORE reset Bjorn Andersson
2025-08-12 3:11 ` [PATCH 1/3] dt-bindings: clock: dispcc-sc7280: Add display resets Bjorn Andersson
2025-08-12 5:07 ` Taniya Das
2025-08-12 3:11 ` [PATCH 2/3] clk: qcom: dispcc-sc7280: Add dispcc resets Bjorn Andersson
2025-08-12 5:05 ` Taniya Das [this message]
2025-08-12 14:54 ` Bjorn Andersson
2025-08-12 3:11 ` [PATCH 3/3] arm64: dts: qcom: sc7280: Add MDSS_CORE reset to mdss Bjorn Andersson
2025-08-12 8:48 ` Konrad Dybcio
2025-08-12 21:13 ` (subset) [PATCH 0/3] arm64: dts: qcom: sc7280: Add the MDSS_CORE reset Bjorn Andersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ed0341b3-4056-4826-bec7-e835a6da4fad@oss.qualcomm.com \
--to=taniya.das@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=bjorn.andersson@oss.qualcomm.com \
--cc=conor+dt@kernel.org \
--cc=cros-qcom-dts-watchers@chromium.org \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®