oxnas: shuttle-kd20: fix thermal zone
authorDaniel Golle <daniel@makrotopia.org>
Fri, 21 Oct 2022 19:47:26 +0000 (20:47 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 21 Oct 2022 19:57:53 +0000 (20:57 +0100)
Fix typo ('_' vs '-') and add #cooling-cells to gpio-fan to get
thermal zone into functional state.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/oxnas/files/arch/arm/boot/dts/ox820-shuttle-kd20.dts

index 0bcd2fcf0005fe082e1938d41813f9cceb8914d2..2cff439c25964faccf135e4e12a8616906e6018c 100644 (file)
@@ -31,7 +31,7 @@
                led-upgrade = &led_warn;
        };
 
-       thermal_zones {
+       thermal-zones {
                chassis-thermal {
                        /* Poll every 20 seconds */
                        polling-delay = <20000>;
                gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
                gpio-fan,speed-map = <0    0
                                      3000 1>;
+               #cooling-cells = <2>;
        };
 
        gpio-poweroff {