blob: c6d533202d3e3a1a12eee650fe17125d48e5963f [file] [log] [blame]
Kamil Debskid82d5772014-07-16 17:46:42 +02001Bindings for a fan connected to the PWM lines
2
3Required properties:
4- compatible : "pwm-fan"
5- pwms : the PWM that is used to control the PWM fan
Lukasz Majewski41553f22015-08-17 08:53:47 +09006- cooling-levels : PWM duty cycle values in a range from 0 to 255
7 which correspond to thermal cooling states
Kamil Debskid82d5772014-07-16 17:46:42 +02008
9Example:
Lukasz Majewski41553f22015-08-17 08:53:47 +090010 fan0: pwm-fan {
Kamil Debskid82d5772014-07-16 17:46:42 +020011 compatible = "pwm-fan";
Lukasz Majewski41553f22015-08-17 08:53:47 +090012 cooling-min-state = <0>;
13 cooling-max-state = <3>;
14 #cooling-cells = <2>;
Kamil Debskid82d5772014-07-16 17:46:42 +020015 pwms = <&pwm 0 10000 0>;
Lukasz Majewski41553f22015-08-17 08:53:47 +090016 cooling-levels = <0 102 170 230>;
Kamil Debskid82d5772014-07-16 17:46:42 +020017 };
Lukasz Majewski41553f22015-08-17 08:53:47 +090018
19 thermal-zones {
20 cpu_thermal: cpu-thermal {
21 thermal-sensors = <&tmu 0>;
22 polling-delay-passive = <0>;
23 polling-delay = <0>;
24 trips {
25 cpu_alert1: cpu-alert1 {
26 temperature = <100000>; /* millicelsius */
27 hysteresis = <2000>; /* millicelsius */
28 type = "passive";
29 };
30 };
31 cooling-maps {
32 map0 {
33 trip = <&cpu_alert1>;
34 cooling-device = <&fan0 0 1>;
35 };
36 };
37 };