[OpenWrt-Devel] [PATCH] oxnas: fix gpio-fan on kd20

Daniel Golle daniel at makrotopia.org
Fri Dec 12 23:06:23 EST 2014


define speed-map and include kmod-hwmon-gpiofan in kd20 profile

Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts | 2 ++
 target/linux/oxnas/profiles/100-Generic.mk                | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
index 9375748..217d812 100644
--- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
+++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
@@ -136,6 +136,8 @@
 	gpio-fan {
 		compatible = "gpio-fan";
 		gpios = <&GPIOA 2 1>;
+		gpio-fan,speed-map = <0    0
+				      3000 1>;
 	};
 
 	gpio-poweroff {
diff --git a/target/linux/oxnas/profiles/100-Generic.mk b/target/linux/oxnas/profiles/100-Generic.mk
index 6681c23..5304839 100644
--- a/target/linux/oxnas/profiles/100-Generic.mk
+++ b/target/linux/oxnas/profiles/100-Generic.mk
@@ -35,7 +35,7 @@ define Profile/KD20
   NAME:=Shuttle KD20
   PACKAGES:= \
 	kmod-usb3 kmod-usb-storage kmod-i2c-gpio kmod-rtc-pcf8563 \
-	kmod-gpio-beeper
+	kmod-gpio-beeper kmod-hwmon-core kmod-hwmon-gpiofan
 endef
 
 define Profile/KD20/Description
-- 
2.1.3
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list