From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EBF3D36AB7C; Fri, 17 Jul 2026 06:35:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784270144; cv=none; b=LAA9Fi+Psl8fHvyqAYU98CRmkZsa1ukw2Itq/sERfNejNwKZP6eHBZC8mDK71Sv/UqgdIpJLir4HpevulJCeBfInTUCtpM1brK8m6gK+ILwVja8lAAF9vQcYSsG27qM5pb+pjArvo+TrPFV9YxtLco661CBIyDEp8877m+Rdjf0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784270144; c=relaxed/simple; bh=FIb4cYS6QqbHNhO1g+w7esXFrMiyD97QYDATrsw8YsU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HZm9RyZwGZZI24iRvUsSDlhncy1QTFpFIvJ/hLaP3kT/DDJL/lpG0++Gf16iCf5U8TxJP2tcOeGM0PszdgKdQkN1cxbTpRuQZbgC8eIXHPLlw07klb++4+jR46NOcDJjGCImw3QTZebGXBslSXsedfHcTPE3SlYdqpI7tESF8FA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PT5bLunu; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PT5bLunu" Received: by smtp.kernel.org (Postfix) with ESMTPS id 83675C2BCC7; Fri, 17 Jul 2026 06:35:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1784270143; bh=FIb4cYS6QqbHNhO1g+w7esXFrMiyD97QYDATrsw8YsU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=PT5bLunuru/Uk71FLiqnZnC8YlPehekFmNJT/RQBBWMCWgNjDkHMQwlVCt53HLXQ/ 4nuVTrb9YxxXrkKz1ycHppOMVDjA2GJN6Uo+cEBi6fvW8XRt4kGdqnqfeseobXzS5W vBcKaEJr9UisOYm7g4uNrsaf0254rdCK20z/rLqJo9sfIWPlCOCl9x63OXOXLpLZwC ARi3qrCohInk1raLV3CmMqnILGkZ3cVfJ7upGuT+QuPSW2V33cPjRKWGVmajpRus1o 8xQtCpwjFEHJ6A8Z/UgtWiN5vbLm7oPK1nxb9A8wQFjtCJ7TstxcQRcIubsRNJE3Ey BLTcVLV3eJAZg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65143C44507; Fri, 17 Jul 2026 06:35:43 +0000 (UTC) From: Haoning CHENG via B4 Relay Date: Fri, 17 Jul 2026 14:35:35 +0800 Subject: [PATCH v9 1/3] dt-bindings: thermal: imx: Document temperature offset property Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20260717-b4-symana21-11221-imx-thermal-support-upstream-6-18-v9-1-75f4af8974f4@cn.bosch.com> References: <20260717-b4-symana21-11221-imx-thermal-support-upstream-6-18-v9-0-75f4af8974f4@cn.bosch.com> In-Reply-To: <20260717-b4-symana21-11221-imx-thermal-support-upstream-6-18-v9-0-75f4af8974f4@cn.bosch.com> To: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam 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, Haoning CHENG , Krzysztof Kozlowski X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784270138; l=2298; i=Haoning.CHENG@cn.bosch.com; s=20260709; h=from:subject:message-id; bh=PV3MnYc2Hk8Iy2pB7or+nfukgwcqkNEuWR6y8WvDrsg=; b=iqEwDbHQhnAlfvKPaj9J/P38F7tJfNrV2zE5yTWKDwZDOJxpYd9wBgWzq/p8SML8/m/gGyylp afNnUnhea7XC3vT8p7oRJJ9XUrg7dwk/kR3Xs20W9kE81E2U3Q5WMjI X-Developer-Key: i=Haoning.CHENG@cn.bosch.com; a=ed25519; pk=glQGwad/fosRS5gZUJYbLDPPLGe7rFTrTV2VxY/ySdc= X-Endpoint-Received: by B4 Relay for Haoning.CHENG@cn.bosch.com/20260709 with auth_id=860 X-Original-From: Haoning CHENG Reply-To: Haoning.CHENG@cn.bosch.com From: Haoning CHENG Some boards need the reported temperature to reflect the SoC package-surface temperature rather than the internal die temperature. Document the optional fsl,temp-calibration-offset-millicelsius property, a signed offset in millicelsius applied to the internally measured temperature to make it better correspond to the package-surface temperature. The offset is board-specific and is determined through thermal characterization. When absent, the offset is zero. Reviewed-by: Krzysztof Kozlowski Reviewed-by: Lukasz Luba Signed-off-by: Haoning CHENG --- .../devicetree/bindings/thermal/imx-thermal.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml index 949b154856c5..6c268d56291b 100644 --- a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml +++ b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml @@ -59,6 +59,20 @@ properties: clocks: maxItems: 1 + fsl,temp-calibration-offset-millicelsius: + minimum: -20000 + maximum: 20000 + description: + A signed offset, in millicelsius, added to the calculated + sensor temperature to make the TEMPMON reading better correspond + to the SoC package-surface temperature observed during board-level + thermal characterization. This is not a sensor calibration offset; + it is a board-specific conversion offset derived from the + relationship between the internal sensor reading and the + package-surface temperature, which depends on the package, PCB + layout, cooling arrangement, and operating environment. The range + is limited to ±20 °C. When absent, no offset is applied. + "#thermal-sensor-cells": const: 0 @@ -109,6 +123,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>; }; }; -- 2.43.0