efc5964afcff65e4d812c858dbbd5139eb12612a
[openwrt/staging/thess.git] /
1 From a11b6221e69ba4177ee428e2cb6fb4e4bd68c5f4 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 693/806] 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 };