mirror of
https://github.com/Fishwaldo/build.git
synced 2025-07-23 21:39:02 +00:00
Hardware PWM on mvebu GPIO officially supported on Linux Kernel 4.13. Backport to Linux Kernel 4.4 still in progress
26 lines
671 B
Diff
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 {
|