mediatek: add v4.19 support
[openwrt/staging/wigyori.git] / target / linux / brcm2708 / patches-4.19 / 950-0700-overlays-Add-real-parameters-to-the-rpi-poe-overlay.patch
1 From 3476202ad0c40d466df8c82798b0ccb0a5e6ed8f Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Fri, 5 Jul 2019 09:22:10 +0100
4 Subject: [PATCH 700/703] overlays: Add real parameters to the rpi-poe overlay
5
6 As a result of being loaded by the POE HAT EEPROM, the rpi-poe overlay
7 doesn't expose parameters in the usual way; instead it adds them to
8 the base Device Tree, and the user is expected to use "dtparam=..."
9 to access them.
10
11 To make the documentation correct and to protect users who load the
12 overlay explicitly, expecting to be able to use the parameters, add
13 real parameters to the overlay as well.
14
15 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
16 ---
17 arch/arm/boot/dts/overlays/rpi-poe-overlay.dts | 7 +++++++
18 1 file changed, 7 insertions(+)
19
20 --- a/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
21 +++ b/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
22 @@ -60,4 +60,11 @@
23 poe_fan_temp1_hyst = <&trip1>,"hysteresis:0";
24 };
25 };
26 +
27 + __overrides__ {
28 + poe_fan_temp0 = <&trip0>,"temperature:0";
29 + poe_fan_temp0_hyst = <&trip0>,"hysteresis:0";
30 + poe_fan_temp1 = <&trip1>,"temperature:0";
31 + poe_fan_temp1_hyst = <&trip1>,"hysteresis:0";
32 + };
33 };