From: Lukasz Luba <lukasz.luba@arm.com>
To: Haoning.CHENG@cn.bosch.com
Cc: linux-pm@vger.kernel.org, Shawn Guo <shawnguo@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Rob Herring <robh@kernel.org>, Zhang Rui <rui.zhang@intel.com>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
"Rafael J. Wysocki" <rafael@kernel.org>,
devicetree@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>,
Fabio Estevam <festevam@gmail.com>
Subject: Re: [PATCH v8 1/3] dt-bindings: thermal: imx: Document calibration offset property
Date: Wed, 15 Jul 2026 08:24:40 +0100 [thread overview]
Message-ID: <6ca90bbe-677f-4519-8c34-0600bb5e4696@arm.com> (raw)
In-Reply-To: <20260714-b4-symana21-11221-imx-thermal-support-upstream-6-18-v8-1-d54d8690e16e@cn.bosch.com>
On 7/14/26 11:28, Haoning CHENG via B4 Relay wrote:
> From: Haoning CHENG <Haoning.CHENG@cn.bosch.com>
>
> Some boards need a small per-design correction to align the reported CPU
> temperature with board-level measurements.
>
> Document the optional fsl,temp-calibration-offset-millicelsius property,
> a signed offset in millicelsius that is added to the calculated sensor
> temperature. The property is optional and the existing behavior is kept
> when it is omitted.
>
> Update the binding example to show its usage.
>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
> Signed-off-by: Haoning CHENG <Haoning.CHENG@cn.bosch.com>
> ---
> Documentation/devicetree/bindings/thermal/imx-thermal.yaml | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml
> index 949b154856c5..44365aac8115 100644
> --- a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml
> +++ b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml
> @@ -59,6 +59,16 @@ properties:
> clocks:
> maxItems: 1
>
> + fsl,temp-calibration-offset-millicelsius:
> + minimum: -20000
> + maximum: 20000
> + description:
> + A signed calibration offset, in millicelsius, added to the calculated
> + sensor temperature to compensate for board-level measurement
> + differences. The range is limited to ±20 °C because a temperature
> + sensor with such a high deviation would be unusable. When absent,
> + no offset is applied.
> +
> "#thermal-sensor-cells":
> const: 0
>
> @@ -109,6 +119,7 @@ examples:
> nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
> nvmem-cell-names = "calib", "temp_grade";
> clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>;
> + fsl,temp-calibration-offset-millicelsius = <(-6400)>;
> #thermal-sensor-cells = <0>;
> };
> };
>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
next prev parent reply other threads:[~2026-07-15 7:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 10:28 [PATCH v8 0/3] thermal: imx: Add calibration offset support Haoning CHENG via B4 Relay
2026-07-14 10:28 ` [PATCH v8 1/3] dt-bindings: thermal: imx: Document calibration offset property Haoning CHENG via B4 Relay
2026-07-15 7:24 ` Lukasz Luba [this message]
2026-07-14 10:28 ` [PATCH v8 2/3] thermal/drivers/imx: Fix rounding and clamp for i.MX7D alarm Haoning CHENG via B4 Relay
2026-07-14 14:29 ` Frank Li
2026-07-15 7:29 ` Lukasz Luba
2026-07-14 10:28 ` [PATCH v8 3/3] thermal/drivers/imx: Add calibration offset support Haoning CHENG via B4 Relay
2026-07-14 14:35 ` Frank Li
2026-07-15 7:30 ` Lukasz Luba
2026-07-15 9:06 ` Frieder Schrempf
2026-07-17 6:23 ` CHENG Haoning (BCSC/ENG1)
2026-07-20 2:10 ` CHENG Haoning (BCSC/ENG1)
2026-07-20 8:27 ` Frieder Schrempf
2026-07-22 1:42 ` CHENG Haoning (BCSC/ENG1)
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=6ca90bbe-677f-4519-8c34-0600bb5e4696@arm.com \
--to=lukasz.luba@arm.com \
--cc=Haoning.CHENG@cn.bosch.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=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski@oss.qualcomm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=rui.zhang@intel.com \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@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;
as well as URLs for NNTP newsgroup(s).