xref: /freebsd/sys/contrib/device-tree/Bindings/thermal/db8500-thermal.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* ST-Ericsson DB8500 Thermal
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel Vadot** Thermal node properties:
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel Vadot- compatible : "stericsson,db8500-thermal";
6*c66ec88fSEmmanuel Vadot- reg : address range of the thermal sensor registers;
7*c66ec88fSEmmanuel Vadot- interrupts : interrupts generated from PRCMU;
8*c66ec88fSEmmanuel Vadot- interrupt-names : "IRQ_HOTMON_LOW" and "IRQ_HOTMON_HIGH";
9*c66ec88fSEmmanuel Vadot- num-trips : number of total trip points, this is required, set it 0 if none,
10*c66ec88fSEmmanuel Vadot  if greater than 0, the following properties must be defined;
11*c66ec88fSEmmanuel Vadot- tripN-temp : temperature of trip point N, should be in ascending order;
12*c66ec88fSEmmanuel Vadot- tripN-type : type of trip point N, should be one of "active" "passive" "hot"
13*c66ec88fSEmmanuel Vadot  "critical";
14*c66ec88fSEmmanuel Vadot- tripN-cdev-num : number of the cooling devices which can be bound to trip
15*c66ec88fSEmmanuel Vadot  point N, this is required if trip point N is defined, set it 0 if none,
16*c66ec88fSEmmanuel Vadot  otherwise the following cooling device names must be defined;
17*c66ec88fSEmmanuel Vadot- tripN-cdev-nameM : name of the No. M cooling device of trip point N;
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel VadotUsually the num-trips and tripN-*** are separated in board related dts files.
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel VadotExample:
22*c66ec88fSEmmanuel Vadotthermal@801573c0 {
23*c66ec88fSEmmanuel Vadot	compatible = "stericsson,db8500-thermal";
24*c66ec88fSEmmanuel Vadot	reg = <0x801573c0 0x40>;
25*c66ec88fSEmmanuel Vadot	interrupts = <21 0x4>, <22 0x4>;
26*c66ec88fSEmmanuel Vadot	interrupt-names = "IRQ_HOTMON_LOW", "IRQ_HOTMON_HIGH";
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot	num-trips = <3>;
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel Vadot	trip0-temp = <75000>;
31*c66ec88fSEmmanuel Vadot	trip0-type = "active";
32*c66ec88fSEmmanuel Vadot	trip0-cdev-num = <1>;
33*c66ec88fSEmmanuel Vadot	trip0-cdev-name0 = "thermal-cpufreq-0";
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel Vadot	trip1-temp = <80000>;
36*c66ec88fSEmmanuel Vadot	trip1-type = "active";
37*c66ec88fSEmmanuel Vadot	trip1-cdev-num = <2>;
38*c66ec88fSEmmanuel Vadot	trip1-cdev-name0 = "thermal-cpufreq-0";
39*c66ec88fSEmmanuel Vadot	trip1-cdev-name1 = "thermal-fan";
40*c66ec88fSEmmanuel Vadot
41*c66ec88fSEmmanuel Vadot	trip2-temp = <85000>;
42*c66ec88fSEmmanuel Vadot	trip2-type = "critical";
43*c66ec88fSEmmanuel Vadot	trip2-cdev-num = <0>;
44*c66ec88fSEmmanuel Vadot}
45