1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/root/target/linux/brcm2708/patches-4.19/0175-overlays-add-overrides-for-PoE-HAT-fan-control.patch
2019-04-22 17:10:09 +02:00

57 lines
2.1 KiB
Diff

From faff8169e1bc14b231fabbf6121fd380c62eba59 Mon Sep 17 00:00:00 2001
From: Serge Schneider <serge@raspberrypi.org>
Date: Tue, 2 Oct 2018 17:13:48 +0100
Subject: [PATCH 175/432] overlays: add overrides for PoE HAT fan control
Signed-off-by: Serge Schneider <serge@raspberrypi.org>
---
arch/arm/boot/dts/overlays/README | 13 ++++++++++---
arch/arm/boot/dts/overlays/rpi-poe-overlay.dts | 10 ++++++++++
2 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README
index 018dc5dd8f1e..ab70c054ac15 100644
--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -1565,9 +1565,16 @@ Params: touchscreen-size-x Touchscreen X resolution (default 800)
Name: rpi-poe
-Info: Raspberry Pi POE HAT
-Load: dtoverlay=rpi-poe
-Params: <None>
+Info: Raspberry Pi PoE HAT fan
+Load: dtoverlay=rpi-poe,<param>[=<val>]
+Params: poe_fan_temp0 Temperature (in millicelcius) at which the fan
+ turns on (default 50000)
+ poe_fan_temp0_hyst Temperature delta (in millicelcius) at which
+ the fan turns off (default 5000)
+ poe_fan_temp1 Temperature (in millicelcius) at which the fan
+ speeds up (default 55000)
+ poe_fan_temp1_hyst Temperature delta (in millicelcius) at which
+ the fan slows down (default 5000)
Name: rpi-proto
diff --git a/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts b/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
index f24af60f1593..1dacd3b33085 100644
--- a/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
+++ b/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
@@ -50,4 +50,14 @@
};
};
};
+
+ fragment@2 {
+ target-path = "/__overrides__";
+ __overlay__ {
+ poe_fan_temp0 = <&trip0>,"temperature:0";
+ poe_fan_temp0_hyst = <&trip0>,"hysteresis:0";
+ poe_fan_temp1 = <&trip1>,"temperature:0";
+ poe_fan_temp1_hyst = <&trip1>,"hysteresis:0";
+ };
+ };
};
--
2.19.1