[PATCH v8 1/3] dt-bindings: thermal: imx: Document calibration offset property
Lukasz Luba
lukasz.luba at arm.com
Wed Jul 15 00:24:40 PDT 2026
On 7/14/26 11:28, Haoning CHENG via B4 Relay wrote:
> From: Haoning CHENG <Haoning.CHENG at 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 at oss.qualcomm.com>
> Signed-off-by: Haoning CHENG <Haoning.CHENG at 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 at arm.com>
More information about the linux-arm-kernel
mailing list