[openwrt/openwrt] oxnas: shuttle-kd20: fix thermal zone

LEDE Commits lede-commits at lists.infradead.org
Fri Oct 21 12:58:29 PDT 2022


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/c5c37886cff1705ba9be9b33df3ab121bd27fe6b

commit c5c37886cff1705ba9be9b33df3ab121bd27fe6b
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Fri Oct 21 20:47:26 2022 +0100

    oxnas: shuttle-kd20: fix thermal zone
    
    Fix typo ('_' vs '-') and add #cooling-cells to gpio-fan to get
    thermal zone into functional state.
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 target/linux/oxnas/files/arch/arm/boot/dts/ox820-shuttle-kd20.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-shuttle-kd20.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-shuttle-kd20.dts
index 0bcd2fcf00..2cff439c25 100644
--- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-shuttle-kd20.dts
+++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-shuttle-kd20.dts
@@ -31,7 +31,7 @@
 		led-upgrade = &led_warn;
 	};
 
-	thermal_zones {
+	thermal-zones {
 		chassis-thermal {
 			/* Poll every 20 seconds */
 			polling-delay = <20000>;
@@ -153,6 +153,7 @@
 		gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
 		gpio-fan,speed-map = <0    0
 				      3000 1>;
+		#cooling-cells = <2>;
 	};
 
 	gpio-poweroff {




More information about the lede-commits mailing list