ARM: dts: imx6qdl-vicut1.dtsi: add thermal zone and attach tmp103 to it.
authorOleksij Rempel <o.rempel@pengutronix.de>
Tue, 19 Apr 2022 04:48:24 +0000 (06:48 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 24 Apr 2022 13:23:23 +0000 (21:23 +0800)
Latest version of ti,tmp103 driver supports thermal zone. So make use of
it.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-vicut1.dtsi

index c928bd854e923b02cfa8650822b3adec426678b4..a1676b5d2980fbd6c466ac00edc629f36bb1962f 100644 (file)
                        frame-master;
                };
        };
+
+       thermal-zones {
+               chassis-thermal {
+                       polling-delay = <20000>;
+                       polling-delay-passive = <0>;
+                       thermal-sensors = <&tsens0>;
+               };
+       };
 };
 
 &audmux {
                reg = <0x51>;
        };
 
-       temperature-sensor@70 {
+       tsens0: temperature-sensor@70 {
                compatible = "ti,tmp103";
                reg = <0x70>;
+               #thermal-sensor-cells = <0>;
        };
 };