File tree 5 files changed +518
-0
lines changed
devicetree/bindings/hwmon
5 files changed +518
-0
lines changed Original file line number Diff line number Diff line change
1
+ Bindings for the Raspberry Pi PoE HAT fan
2
+
3
+ Required properties:
4
+ - compatible : "raspberrypi,rpi-poe-fan"
5
+ - firmware : Reference to the RPi firmware device node
6
+ - pwms : the PWM that is used to control the PWM fan
7
+ - cooling-levels : PWM duty cycle values in a range from 0 to 255
8
+ which correspond to thermal cooling states
9
+
10
+ Example:
11
+ fan0: rpi-poe-fan@0 {
12
+ compatible = "raspberrypi,rpi-poe-fan";
13
+ firmware = <&firmware>;
14
+ cooling-min-state = <0>;
15
+ cooling-max-state = <3>;
16
+ #cooling-cells = <2>;
17
+ cooling-levels = <0 50 150 255>;
18
+ status = "okay";
19
+ };
20
+
21
+ thermal-zones {
22
+ cpu_thermal: cpu-thermal {
23
+ trips {
24
+ threshold: trip-point@0 {
25
+ temperature = <45000>;
26
+ hysteresis = <5000>;
27
+ type = "active";
28
+ };
29
+ target: trip-point@1 {
30
+ temperature = <50000>;
31
+ hysteresis = <2000>;
32
+ type = "active";
33
+ };
34
+ cpu_hot: cpu_hot@0 {
35
+ temperature = <55000>;
36
+ hysteresis = <2000>;
37
+ type = "active";
38
+ };
39
+ };
40
+ cooling-maps {
41
+ map0 {
42
+ trip = <&threshold>;
43
+ cooling-device = <&fan0 0 1>;
44
+ };
45
+ map1 {
46
+ trip = <&target>;
47
+ cooling-device = <&fan0 1 2>;
48
+ };
49
+ map2 {
50
+ trip = <&cpu_hot>;
51
+ cooling-device = <&fan0 2 3>;
52
+ };
53
+ };
54
+ };
55
+ };
Original file line number Diff line number Diff line change
1
+ Kernel driver rpi-poe-fan
2
+ =====================
3
+
4
+ This driver enables the use of the Raspberry Pi PoE HAT fan.
5
+
6
+ Author: Serge Schneider <
[email protected] >
7
+
8
+ Description
9
+ -----------
10
+
11
+ The driver implements a simple interface for driving the Raspberry Pi PoE
12
+ (Power over Ethernet) HAT fan. The driver passes commands to the Raspberry Pi
13
+ firmware through the mailbox property interface. The firmware then forwards
14
+ the commands to the board over I2C on the ID_EEPROM pins. The driver exposes
15
+ the fan to the user space through the hwmon sysfs interface.
Original file line number Diff line number Diff line change @@ -1531,6 +1531,17 @@ config SENSORS_RASPBERRYPI_HWMON
1531
1531
This driver can also be built as a module. If so, the module
1532
1532
will be called raspberrypi-hwmon.
1533
1533
1534
+ config SENSORS_RPI_POE_FAN
1535
+ tristate "Raspberry Pi PoE HAT fan"
1536
+ depends on RASPBERRYPI_FIRMWARE
1537
+ depends on THERMAL || THERMAL=n
1538
+ help
1539
+ If you say yes here you get support for Raspberry Pi PoE (Power over
1540
+ Ethernet) HAT fan.
1541
+
1542
+ This driver can also be built as a module. If so, the module
1543
+ will be called rpi-poe-fan.
1544
+
1534
1545
config SENSORS_SL28CPLD
1535
1546
tristate "Kontron sl28cpld hardware monitoring driver"
1536
1547
depends on MFD_SL28CPLD || COMPILE_TEST
Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ obj-$(CONFIG_SENSORS_PCF8591) += pcf8591.o
162
162
obj-$(CONFIG_SENSORS_POWR1220) += powr1220.o
163
163
obj-$(CONFIG_SENSORS_PWM_FAN) += pwm-fan.o
164
164
obj-$(CONFIG_SENSORS_RASPBERRYPI_HWMON) += raspberrypi-hwmon.o
165
+ obj-$(CONFIG_SENSORS_RPI_POE_FAN) += rpi-poe-fan.o
165
166
obj-$(CONFIG_SENSORS_S3C) += s3c-hwmon.o
166
167
obj-$(CONFIG_SENSORS_SBTSI) += sbtsi_temp.o
167
168
obj-$(CONFIG_SENSORS_SCH56XX_COMMON)+ = sch56xx-common.o
You can’t perform that action at this time.
0 commit comments