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 c928bd8..a1676b5 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>;
        };
 };