Skip to content

Commit ff8ecf0

Browse files
pelwellpopcornmix
authored andcommitted
ARM: dts: bcm2712-rpi-5-b: Add fan speed dtparams
Add dtparams for adjusting the Pi 5 cooling fan speeds and temperature thresholds. See: #5820 Signed-off-by: Phil Elwell <[email protected]>
1 parent e1480db commit ff8ecf0

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

arch/arm/boot/dts/broadcom/bcm2712-rpi-5-b.dts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,5 +844,18 @@ spi10_cs_pins: &spi10_cs_gpio1 {};
844844
drm_fb2_rp1_dsi1 = <&aliases>, "drm-fb2=",&dsi1;
845845
drm_fb2_rp1_dpi = <&aliases>, "drm-fb2=",&dpi;
846846
drm_fb2_vc4 = <&aliases>, "drm-fb2=",&vc4;
847+
848+
fan_temp0 = <&cpu_tepid>,"temperature:0";
849+
fan_temp1 = <&cpu_warm>,"temperature:0";
850+
fan_temp2 = <&cpu_hot>,"temperature:0";
851+
fan_temp3 = <&cpu_vhot>,"temperature:0";
852+
fan_temp0_hyst = <&cpu_tepid>,"hysteresis:0";
853+
fan_temp1_hyst = <&cpu_warm>,"hysteresis:0";
854+
fan_temp2_hyst = <&cpu_hot>,"hysteresis:0";
855+
fan_temp3_hyst = <&cpu_vhot>,"hysteresis:0";
856+
fan_temp0_speed = <&fan>, "cooling-levels:4";
857+
fan_temp1_speed = <&fan>, "cooling-levels:8";
858+
fan_temp2_speed = <&fan>, "cooling-levels:12";
859+
fan_temp3_speed = <&fan>, "cooling-levels:16";
847860
};
848861
};

arch/arm/boot/dts/overlays/README

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,31 @@ Params:
233233
to negotiate. Legal values are 10, 100 and
234234
1000 (default 1000). Pi3B+ only.
235235

236+
fan_temp0 Temperature threshold (in millicelcius) for
237+
1st cooling level (default 50000). Pi5 only.
238+
fan_temp0_hyst Temperature hysteresis (in millicelcius) for
239+
1st cooling level (default 5000). Pi5 only.
240+
fan_temp0_speed Fan PWM setting for 1st cooling level (0-255,
241+
default 75). Pi5 only.
242+
fan_temp1 Temperature threshold (in millicelcius) for
243+
2nd cooling level (default 60000). Pi5 only.
244+
fan_temp1_hyst Temperature hysteresis (in millicelcius) for
245+
2nd cooling level (default 5000). Pi5 only.
246+
fan_temp1_speed Fan PWM setting for 2nd cooling level (0-255,
247+
default 125). Pi5 only.
248+
fan_temp2 Temperature threshold (in millicelcius) for
249+
3rd cooling level (default 67500). Pi5 only.
250+
fan_temp2_hyst Temperature hysteresis (in millicelcius) for
251+
3rd cooling level (default 5000). Pi5 only.
252+
fan_temp2_speed Fan PWM setting for 3rd cooling level (0-255,
253+
default 175). Pi5 only.
254+
fan_temp3 Temperature threshold (in millicelcius) for
255+
4th cooling level (default 75000). Pi5 only.
256+
fan_temp3_hyst Temperature hysteresis (in millicelcius) for
257+
4th cooling level (default 5000). Pi5 only.
258+
fan_temp3_speed Fan PWM setting for 4th cooling level (0-255,
259+
default 250). Pi5 only.
260+
236261
hdmi Set to "off" to disable the HDMI interface
237262
(default "on")
238263

0 commit comments

Comments
 (0)