Skip to content

Commit 1e56d8a

Browse files
XECDesignpopcornmix
authored andcommitted
overlays: add overrides for PoE HAT fan control
Signed-off-by: Serge Schneider <[email protected]>
1 parent 7379888 commit 1e56d8a

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
@@ -1565,9 +1565,16 @@ Params: touchscreen-size-x Touchscreen X resolution (default 800)
15651565

15661566

15671567
Name: rpi-poe
1568-
Info: Raspberry Pi POE HAT
1569-
Load: dtoverlay=rpi-poe
1570-
Params: <None>
1568+
Info: Raspberry Pi PoE HAT fan
1569+
Load: dtoverlay=rpi-poe,<param>[=<val>]
1570+
Params: poe_fan_temp0 Temperature (in millicelcius) at which the fan
1571+
turns on (default 50000)
1572+
poe_fan_temp0_hyst Temperature delta (in millicelcius) at which
1573+
the fan turns off (default 5000)
1574+
poe_fan_temp1 Temperature (in millicelcius) at which the fan
1575+
speeds up (default 55000)
1576+
poe_fan_temp1_hyst Temperature delta (in millicelcius) at which
1577+
the fan slows down (default 5000)
15711578

15721579

15731580
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)