Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
From: Frank Li <Frank.li@nxp.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>,
	Daniel Lezcano <daniel.lezcano@linaro.org>,
	Zhang Rui <rui.zhang@intel.com>,
	Lukasz Luba <lukasz.luba@arm.com>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+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>,
	Pengfei Li <pengfei.li_1@nxp.com>,
	Marco Felsch <m.felsch@pengutronix.de>
Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
	imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, ye.li@nxp.com, joy.zou@nxp.com
Subject: Re: [PATCH v7 3/3] arm64: dts: imx91: Add thermal-sensor and thermal-zone support
Date: Mon, 5 Jan 2026 15:07:37 -0500	[thread overview]
Message-ID: <aVwaCbSbDZ2mI35c@lizhi-Precision-Tower-5810> (raw)
In-Reply-To: <20251020-imx91tmu-v7-3-48d7d9f25055@nxp.com>

On Mon, Oct 20, 2025 at 03:00:42PM -0400, Frank Li wrote:
> Add thermal-sensor and thermal-zone support.
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---

Shawn:
	binding already in linux-next.  Alberto's comments is not related
with thermal-sensor part.

Frank

> changes in v7
> - new patch
> ---
>  arch/arm64/boot/dts/freescale/imx91.dtsi | 58 ++++++++++++++++++++++++++++++++
>  1 file changed, 58 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx91.dtsi b/arch/arm64/boot/dts/freescale/imx91.dtsi
> index 4d8300b2a7bca33bd0613db9e79d2fba6b40c052..f075592bfc01f1eb94d2a2bd8eea907cc2aed090 100644
> --- a/arch/arm64/boot/dts/freescale/imx91.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx91.dtsi
> @@ -6,6 +6,54 @@
>  #include "imx91-pinfunc.h"
>  #include "imx91_93_common.dtsi"
>
> +/{
> +	thermal-zones {
> +		cpu-thermal {
> +			polling-delay-passive = <250>;
> +			polling-delay = <2000>;
> +			thermal-sensors = <&tmu 0>;
> +
> +			trips {
> +				cpu_alert: cpu-alert {
> +					temperature = <80000>;
> +					hysteresis = <2000>;
> +					type = "passive";
> +				};
> +
> +				cpu_crit: cpu-crit {
> +					temperature = <90000>;
> +					hysteresis = <2000>;
> +					type = "critical";
> +				};
> +			};
> +
> +			cooling-maps {
> +				map0 {
> +					trip = <&cpu_alert>;
> +					cooling-device =
> +						<&A55_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
> +				};
> +			};
> +		};
> +	};
> +};
> +
> +&aips1 {
> +	tmu: thermal-sensor@44482000 {
> +		compatible = "fsl,imx91-tmu";
> +		reg = <0x44482000 0x1000>;
> +		#thermal-sensor-cells = <0>;
> +		clocks = <&clk IMX93_CLK_TMC_GATE>;
> +		interrupt-parent = <&gic>;
> +		interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
> +			     <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>,
> +			     <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
> +		interrupt-names = "thr1", "thr2", "ready";
> +		nvmem-cells = <&tmu_trim1>, <&tmu_trim2>;
> +		nvmem-cell-names = "trim1", "trim2";
> +	};
> +};
> +
>  &clk {
>  	compatible = "fsl,imx91-ccm";
>  };
> @@ -69,3 +117,13 @@ &media_blk_ctrl {
>  	clock-names = "apb", "axi", "nic", "disp", "cam",
>  		      "lcdif", "isi", "csi";
>  };
> +
> +&ocotp {
> +	tmu_trim1: tmu-trim@a0 {
> +		reg = <0xa0 0x4>;
> +	};
> +
> +	tmu_trim2: tmu-trim@a4 {
> +		reg = <0xa4 0x4>;
> +	};
> +};
>
> --
> 2.34.1
>

  parent reply	other threads:[~2026-01-05 20:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-20 19:00 [PATCH v7 0/3] thermal: imx91: Add support for i.MX91 thermal monitoring unit Frank Li
2025-10-20 19:00 ` [PATCH v7 1/3] dt-bindings: thermal: fsl,imx91-tmu: add bindings for NXP i.MX91 thermal module Frank Li
2025-10-20 19:00 ` [PATCH v7 2/3] thermal: imx91: Add support for i.MX91 thermal monitoring unit Frank Li
2026-01-07 15:22   ` Daniel Lezcano
2026-01-08 16:24     ` Frank Li
2025-10-20 19:00 ` [PATCH v7 3/3] arm64: dts: imx91: Add thermal-sensor and thermal-zone support Frank Li
2025-10-22 10:56   ` Alberto Merciai
2025-10-28 16:32     ` Frank Li
2026-01-05 20:07   ` Frank Li [this message]
2026-01-17  1:55   ` Shawn Guo

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=aVwaCbSbDZ2mI35c@lizhi-Precision-Tower-5810 \
    --to=frank.li@nxp.com \
    --cc=conor+dt@kernel.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=imx@lists.linux.dev \
    --cc=joy.zou@nxp.com \
    --cc=kernel@pengutronix.de \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=lukasz.luba@arm.com \
    --cc=m.felsch@pengutronix.de \
    --cc=pengfei.li_1@nxp.com \
    --cc=rafael@kernel.org \
    --cc=robh@kernel.org \
    --cc=rui.zhang@intel.com \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    --cc=ye.li@nxp.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