46 lines
1.5 KiB
Diff
46 lines
1.5 KiB
Diff
|
From c27e445527e949f3ef46d5326066196969c17d23 Mon Sep 17 00:00:00 2001
|
||
|
From: Myy <myy@miouyouyou.fr>
|
||
|
Date: Sun, 12 Mar 2017 19:43:15 +0000
|
||
|
Subject: [PATCH 06/28] ARM: dts: rockchip: add the MiQi board's fan definition
|
||
|
|
||
|
The MiQi board is sold with an enclosure in which a fan is connected
|
||
|
to the second LED output, and configured by default in "heartbeat"
|
||
|
mode so that it rotates slowly and increases when the CPU load
|
||
|
increases, ensuring appropriate cooling by default. This LED output
|
||
|
is called "Fan" in the original kernel and connected to GPIO18
|
||
|
(gpiochip 0, pin 18). Here we called it "miqi:green:fan" to stay
|
||
|
consistent with the kernel's naming conventions.
|
||
|
|
||
|
It's worth noting that without this patch the fan doesn't work at
|
||
|
all, risking to make the board overheat.
|
||
|
|
||
|
Fixes: 162718c (v4.7)
|
||
|
Cc: Heiko Stuebner <heiko@sntech.de>
|
||
|
Signed-off-by: Willy Tarreau <w@1wt.eu>
|
||
|
|
||
|
Signed-off-by: Myy <myy@miouyouyou.fr>
|
||
|
---
|
||
|
arch/arm/boot/dts/rk3288-miqi.dts | 7 +++++++
|
||
|
1 file changed, 7 insertions(+)
|
||
|
|
||
|
diff --git a/arch/arm/boot/dts/rk3288-miqi.dts b/arch/arm/boot/dts/rk3288-miqi.dts
|
||
|
index a1c3cdaa..0e383595 100644
|
||
|
--- a/arch/arm/boot/dts/rk3288-miqi.dts
|
||
|
+++ b/arch/arm/boot/dts/rk3288-miqi.dts
|
||
|
@@ -67,6 +67,13 @@
|
||
|
leds {
|
||
|
compatible = "gpio-leds";
|
||
|
|
||
|
+ fan {
|
||
|
+ gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>;
|
||
|
+ label = "miqi:green:fan";
|
||
|
+ linux,default-trigger = "heartbeat";
|
||
|
+ };
|
||
|
+
|
||
|
+
|
||
|
work_led: led-0 {
|
||
|
gpios = <&gpio7 RK_PA2 GPIO_ACTIVE_HIGH>;
|
||
|
label = "miqi:green:user";
|
||
|
--
|
||
|
2.11.0
|