From: Frieder Schrempf <frieder.schrempf@kontron.de>
To: Tim Harvey <tharvey@gateworks.com>,
Rob Herring <robh+dt@kernel.org>, Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
NXP Linux Team <linux-imx@nxp.com>
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/4] arm64: dts: imx8mm-venice-gw700x: override thermal cfg for industrial temp
Date: Wed, 2 Jun 2021 09:10:58 +0200 [thread overview]
Message-ID: <b63300e8-3739-fcc6-6d37-952f93cfd17b@kontron.de> (raw)
In-Reply-To: <20210601174917.1979-1-tharvey@gateworks.com>
On 01.06.21 19:49, Tim Harvey wrote:
> Override the default temperature alert/crit for Industrial temp IMX8M
> Mini.
>
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
> ---
> .../boot/dts/freescale/imx8mm-venice-gw700x.dtsi | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi
> index c769fadbd008..512b76cd7c3b 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi
> @@ -493,3 +493,15 @@
> >;
> };
> };
> +
> +&cpu_alert0 {
> + temperature = <95000>;
> + hysteresis = <2000>;
> + type = "passive";
> +};
> +
> +&cpu_crit0 {
> + temperature = <105000>;
> + hysteresis = <2000>;
> + type = "critical";
> +};
As this is not really board-specific, I think the proper way to handle this for all boards is to let the thermal driver read the temperature grading from the OTP fuses and set the trip-points accordingly, similar to what is done on i.MX6 [1].
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/thermal/imx_thermal.c?h=v5.13-rc4#n508
next prev parent reply other threads:[~2021-06-02 7:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-01 17:49 [PATCH 1/4] arm64: dts: imx8mm-venice-gw700x: override thermal cfg for industrial temp Tim Harvey
2021-06-01 17:49 ` [PATCH 2/4] arm64: dts: imx8mm-venice-gw700x: fix mp5416 pmic config Tim Harvey
2021-07-24 18:19 ` Tim Harvey
2021-07-26 1:01 ` Shawn Guo
2021-07-27 16:05 ` Tim Harvey
2021-06-01 17:49 ` [PATCH 3/4] arm64: dts: imx8mm-venice-gw7901: add support for USB hub subload Tim Harvey
2021-07-24 18:21 ` Tim Harvey
2021-06-01 17:49 ` [PATCH 4/4] arm64: dts: imx8mm-venice-gw7901: enable pull-down on gpio outputs Tim Harvey
2021-07-24 18:19 ` Tim Harvey
2021-06-02 7:10 ` Frieder Schrempf [this message]
2021-06-04 15:42 ` [PATCH 1/4] arm64: dts: imx8mm-venice-gw700x: override thermal cfg for industrial temp Tim Harvey
2021-06-07 7:20 ` Frieder Schrempf
2021-06-07 7:30 ` Jacky Bai
2021-06-07 7:53 ` Frieder Schrempf
2021-06-07 8:00 ` Jacky Bai
2021-06-07 8:34 ` Frieder Schrempf
2021-06-11 18:55 ` Tim Harvey
2021-06-29 7:48 ` Frieder Schrempf
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=b63300e8-3739-fcc6-6d37-952f93cfd17b@kontron.de \
--to=frieder.schrempf@kontron.de \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=tharvey@gateworks.com \
/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;
as well as URLs for NNTP newsgroup(s).