[openwrt/openwrt] mvebu: fix missing property in puzzle thermal

LEDE Commits lede-commits at lists.infradead.org
Sat Jun 1 08:40:32 PDT 2024


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/e5c7b5ec43718df0c758368a7c1fa645fab96ce2

commit e5c7b5ec43718df0c758368a7c1fa645fab96ce2
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Tue May 21 15:37:14 2024 +0200

    mvebu: fix missing property in puzzle thermal
    
    Fix missing property in puzzle thermal. The thing was never supposed to
    work.
    
    Property #thermal-sensor-cells was missing from the puzzle hwmon, making
    the entire thermal platform referencing that fail to probe with -EINVAL.
    
    The puzzle hwmon expose 2 termistor but they probably use an userspace
    downstream utility to configure and handle thermal. For this reason we
    really don't know what they use the sensor for or when it's attached.
    
    We use them to sensor if the Chassis gets too hot due to ambient
    temperature and generic components getting too warm.
    
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 .../mvebu/files-6.6/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts   | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/mvebu/files-6.6/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts b/target/linux/mvebu/files-6.6/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts
index f1cae8e5e4..1394f2010a 100644
--- a/target/linux/mvebu/files-6.6/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts
+++ b/target/linux/mvebu/files-6.6/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts
@@ -243,6 +243,7 @@
 			compatible = "iei,wt61p803-puzzle-hwmon";
 			#address-cells = <1>;
 			#size-cells = <0>;
+			#thermal-sensor-cells = <1>;
 
 			chassis_fan_group0: fan-group at 0 {
 				#cooling-cells = <2>;




More information about the lede-commits mailing list