1 From a6593a1bc8708f73c424c05c64d49d3868e1bdd5 Mon Sep 17 00:00:00 2001
2 From: Serge Schneider <serge@raspberrypi.org>
3 Date: Tue, 2 Oct 2018 17:13:48 +0100
4 Subject: [PATCH] overlays: add overrides for PoE HAT fan control
6 Signed-off-by: Serge Schneider <serge@raspberrypi.org>
8 arch/arm/boot/dts/overlays/README | 13 ++++++++++---
9 arch/arm/boot/dts/overlays/rpi-poe-overlay.dts | 10 ++++++++++
10 2 files changed, 20 insertions(+), 3 deletions(-)
12 --- a/arch/arm/boot/dts/overlays/README
13 +++ b/arch/arm/boot/dts/overlays/README
14 @@ -1565,9 +1565,16 @@ Params: touchscreen-size-x Touchscr
18 -Info: Raspberry Pi POE HAT
19 -Load: dtoverlay=rpi-poe
21 +Info: Raspberry Pi PoE HAT fan
22 +Load: dtoverlay=rpi-poe,<param>[=<val>]
23 +Params: poe_fan_temp0 Temperature (in millicelcius) at which the fan
24 + turns on (default 50000)
25 + poe_fan_temp0_hyst Temperature delta (in millicelcius) at which
26 + the fan turns off (default 5000)
27 + poe_fan_temp1 Temperature (in millicelcius) at which the fan
28 + speeds up (default 55000)
29 + poe_fan_temp1_hyst Temperature delta (in millicelcius) at which
30 + the fan slows down (default 5000)
34 --- a/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
35 +++ b/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
42 + target-path = "/__overrides__";
44 + poe_fan_temp0 = <&trip0>,"temperature:0";
45 + poe_fan_temp0_hyst = <&trip0>,"hysteresis:0";
46 + poe_fan_temp1 = <&trip1>,"temperature:0";
47 + poe_fan_temp1_hyst = <&trip1>,"hysteresis:0";