build/patch/kernel/mvebu-default/95-helios4-gpio-fan_instead_of_pwm-fan.patch
aprayoga 89baa9130c [dts] Use GPIO-fan instead of PWM-fan on Helios4
Hardware PWM on mvebu GPIO officially supported on Linux Kernel 4.13.
Backport to Linux Kernel 4.4 still in progress
2017-12-29 04:30:41 +08:00

26 lines
671 B
Diff

diff --git a/arch/arm/boot/dts/armada-388-helios4.dts b/arch/arm/boot/dts/armada-388-helios4.dts
index ec7a5ce..1075535 100644
--- a/arch/arm/boot/dts/armada-388-helios4.dts
+++ b/arch/arm/boot/dts/armada-388-helios4.dts
@@ -131,13 +131,17 @@
};
fan1: j10-pwm {
- compatible = "pwm-fan";
- pwms = <&gpio1 9 3800>;
+ compatible = "gpio-fan";
+ gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
+ gpio-fan,speed-map = < 0 0
+ 3800 1>;
};
fan2: j17-pwm {
- compatible = "pwm-fan";
- pwms = <&gpio1 23 3800>;
+ compatible = "gpio-fan";
+ gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
+ gpio-fan,speed-map = < 0 0
+ 3800 1>;
};
usb2_phy: usb2-phy {