From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Pin-yen Lin <treapking@chromium.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org
Cc: Eizan Miyamoto <eizan@chromium.org>,
Hsin-Yi Wang <hsinyi@chromium.org>,
Evan Benn <evanbenn@chromium.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
devicetree@vger.kernel.org
Subject: Re: [PATCH v2] arm64: dts: mt8173-oak: Switch to SMC watchdog
Date: Thu, 28 Jul 2022 13:21:42 +0200 [thread overview]
Message-ID: <c455adea-2d18-60af-7175-a4e283e3dcb8@collabora.com> (raw)
In-Reply-To: <20220727094034.1372745-1-treapking@chromium.org>
Il 27/07/22 11:40, Pin-yen Lin ha scritto:
> Switch to SMC watchdog because we need direct control of HW watchdog
> registers from kernel. The corresponding firmware was uploaded in
> https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/3405.
>
> Signed-off-by: Pin-yen Lin <treapking@chromium.org>
> ---
>
> Changes in v2:
> - Move the modifications to mt8173-elm.dtsi and add some comments.
>
> arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi
> index e21feb85d822..b2269770abc3 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi
> @@ -161,6 +161,18 @@ hdmi_connector_in: endpoint {
> };
> };
> };
> +
> + soc {
> + /*
> + * Disable the original MMIO watch dog and switch to the SMC watchdog,
> + * which operates on the same MMIO.
> + */
> + /delete-node/ watchdog@10007000;
Unfortunately, we're not quite there yet.
The comment is fine, but...
There's no need to /delete-node/: you can just do it like
/*
* Disable the original MMIO watch dog and switch to the SMC watchdog,
* which operates on the same MMIO.
*/
&watchdog {
status = "disabled";
};
and...
> +
> + watchdog {
This isn't addressable, hence it belongs to the root node, not to soc.
If you did that because of naming issues, I would propose to call it
smc-watchdog instead of watchdog.
> + compatible = "arm,smc-wdt";
P.S.: No timeout-sec?
Regards,
Angelo
> + };
> + };
> };
>
> &mfg_async {
>
next prev parent reply other threads:[~2022-07-28 11:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-27 9:40 Pin-yen Lin
2022-07-28 11:21 ` AngeloGioacchino Del Regno [this message]
2022-07-28 15:39 ` Pin-yen Lin
2022-07-28 15:51 ` AngeloGioacchino Del Regno
2022-07-29 2:59 ` Pin-yen Lin
2022-07-29 4:00 ` Pin-yen Lin
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=c455adea-2d18-60af-7175-a4e283e3dcb8@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=eizan@chromium.org \
--cc=evanbenn@chromium.org \
--cc=hsinyi@chromium.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=robh+dt@kernel.org \
--cc=treapking@chromium.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®