Skip to content

Commit 94a06fb

Browse files
XECDesignpelwell
authored andcommitted
overlays: add overrides for PoE HAT fan control
Signed-off-by: Serge Schneider <[email protected]>
1 parent 5c3f0d5 commit 94a06fb

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,9 +1596,16 @@ Params: touchscreen-size-x Touchscreen X resolution (default 800)
15961596

15971597

15981598
Name: rpi-poe
1599-
Info: Raspberry Pi POE HAT
1600-
Load: dtoverlay=rpi-poe
1601-
Params: <None>
1599+
Info: Raspberry Pi PoE HAT fan
1600+
Load: dtoverlay=rpi-poe,<param>[=<val>]
1601+
Params: poe_fan_temp0 Temperature (in millicelcius) at which the fan
1602+
turns on (default 50000)
1603+
poe_fan_temp0_hyst Temperature delta (in millicelcius) at which
1604+
the fan turns off (default 5000)
1605+
poe_fan_temp1 Temperature (in millicelcius) at which the fan
1606+
speeds up (default 55000)
1607+
poe_fan_temp1_hyst Temperature delta (in millicelcius) at which
1608+
the fan slows down (default 5000)
16021609

16031610

16041611
Name: rpi-proto

arch/arm/boot/dts/overlays/rpi-poe-overlay.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,14 @@
5050
};
5151
};
5252
};
53+
54+
fragment@2 {
55+
target-path = "/__overrides__";
56+
__overlay__ {
57+
poe_fan_temp0 = <&trip0>,"temperature:0";
58+
poe_fan_temp0_hyst = <&trip0>,"hysteresis:0";
59+
poe_fan_temp1 = <&trip1>,"temperature:0";
60+
poe_fan_temp1_hyst = <&trip1>,"hysteresis:0";
61+
};
62+
};
5363
};

0 commit comments

Comments
 (0)