[PATCH 12/13] ARM: dts: mediatek: mt6323: add support for thermal

Roman Vivchar via B4 Relay
2026-05-04T18:25:29Z

From: Roman Vivchar <rva333@protonmail.com>

Add the devicetree node for the mt6323 thermal.

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

diff --git a/arch/arm/boot/dts/mediatek/mt6323.dtsi b/arch/arm/boot/dts/mediatek/mt6323.dtsi
index 3fe6a5e35e70..bdfa177aa1e3 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,8 +23,16 @@ mt6323_adc: adc {

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

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

--
2.53.0