[PATCH v2 13/16] ARM: dts: mediatek: mt6323: add thermal support

From: Roman Vivchar via B4 Relay

Date: Tue May 12 2026 - 01:23:08 EST


From: Roman Vivchar <rva333@xxxxxxxxxxxxxx>

Add the devicetree node for the mt6323 thermal.

Tested-by: Ben Grisdale <bengris32@xxxxxxxxxxxxx> # Amazon Echo Dot (2nd Generation)
Signed-off-by: Roman Vivchar <rva333@xxxxxxxxxxxxxx>
---
arch/arm/boot/dts/mediatek/mt6323.dtsi | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)

diff --git a/arch/arm/boot/dts/mediatek/mt6323.dtsi b/arch/arm/boot/dts/mediatek/mt6323.dtsi
index 435936b477fa..9825e15ab4e4 100644
--- a/arch/arm/boot/dts/mediatek/mt6323.dtsi
+++ b/arch/arm/boot/dts/mediatek/mt6323.dtsi
@@ -6,6 +6,8 @@
*
*/

+#include <dt-bindings/iio/adc/mediatek,mt6323-auxadc.h>
+
&pwrap {
pmic: mt6323 {
compatible = "mediatek,mt6323";
@@ -21,6 +23,16 @@ mt6323_adc: adc {

mt6323_efuse: efuse {
compatible = "mediatek,mt6323-efuse";
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ mt6323_thermal_calibration_data: thermal-data@14 {
+ reg = <0x14 0x4>;
+ };
+ };
};

mt6323_leds: leds {
@@ -274,5 +286,24 @@ power-controller {
rtc {
compatible = "mediatek,mt6323-rtc";
};
+
+ mt6323_thermal: thermal {
+ compatible = "mediatek,mt6323-thermal";
+ nvmem-cells = <&mt6323_thermal_calibration_data>;
+
+ io-channels = <&mt6323_adc MT6323_AUXADC_CHIP_TEMP>;
+ #thermal-sensor-cells = <1>;
+ };
+ };
+};
+
+/ {
+ thermal-zones {
+ pmic_vts_thermal {
+ polling-delay-passive = <1000>;
+ polling-delay = <1000>;
+
+ thermal-sensors = <&mt6323_thermal 0>;
+ };
};
};

--
2.54.0