aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/hwmon/rpi-poe-fan.txt
blob: c71f8569a4dc96c6d791e4e4d9d12f5e4b6fb0fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Bindings for the Raspberry Pi PoE HAT fan

Required properties:
- compatible	: "raspberrypi,rpi-poe-fan"
- firmware	: Reference to the RPi firmware device node
- pwms		: the PWM that is used to control the PWM fan
- cooling-levels      : PWM duty cycle values in a range from 0 to 255
			which correspond to thermal cooling states

Example:
	fan0: rpi-poe-fan@0 {
		compatible = "raspberrypi,rpi-poe-fan";
		firmware = <&firmware>;
		cooling-min-state = <0>;
		cooling-max-state = <3>;
		#cooling-cells = <2>;
		cooling-levels = <0 50 150 255>;
		status = "okay";
	};

	thermal-zones {
		cpu_thermal: cpu-thermal {
			trips {
				threshold: trip-point@0 {
					temperature = <45000>;
					hysteresis = <5000>;
					type = "active";
				};
				target: trip-point@1 {
					temperature = <50000>;
					hysteresis = <2000>;
					type = "active";
				};
				cpu_hot: cpu_hot@0 {
					temperature = <55000>;
					hysteresis = <2000>;
					type = "active";
				};
			};
			cooling-maps {
				map0 {
					trip = <&threshold>;
					cooling-device = <&fan0 0 1>;
				};
				map1 {
					trip = <&target>;
					cooling-device = <&fan0 1 2>;
				};
				map2 {
					trip = <&cpu_hot>;
					cooling-device = <&fan0 2 3>;
				};
			};
		};
	};