brcm2708: add kernel 4.14 support
[openwrt/staging/chunkeey.git] / target / linux / brcm2708 / patches-4.14 / 950-0429-overlays-add-overrides-for-PoE-HAT-fan-control.patch
1 From f7469d4973136acff2537c323a5377c217333bc8 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 429/454] overlays: add overrides for PoE HAT fan control
5
6 Signed-off-by: Serge Schneider <serge@raspberrypi.org>
7 ---
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(-)
11
12 --- a/arch/arm/boot/dts/overlays/README
13 +++ b/arch/arm/boot/dts/overlays/README
14 @@ -1596,9 +1596,16 @@ Params: touchscreen-size-x Touchscr
15
16
17 Name: rpi-poe
18 -Info: Raspberry Pi POE HAT
19 -Load: dtoverlay=rpi-poe
20 -Params: <None>
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)
31
32
33 Name: rpi-proto
34 --- a/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
35 +++ b/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
36 @@ -50,4 +50,14 @@
37 };
38 };
39 };
40 +
41 + fragment@2 {
42 + target-path = "/__overrides__";
43 + __overlay__ {
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";
48 + };
49 + };
50 };