Back to home page

OSCL-LXR

 
 

    


0001 * ST-Ericsson DB8500 Thermal
0002 
0003 ** Thermal node properties:
0004 
0005 - compatible : "stericsson,db8500-thermal";
0006 - reg : address range of the thermal sensor registers;
0007 - interrupts : interrupts generated from PRCMU;
0008 - interrupt-names : "IRQ_HOTMON_LOW" and "IRQ_HOTMON_HIGH";
0009 - num-trips : number of total trip points, this is required, set it 0 if none,
0010   if greater than 0, the following properties must be defined;
0011 - tripN-temp : temperature of trip point N, should be in ascending order;
0012 - tripN-type : type of trip point N, should be one of "active" "passive" "hot"
0013   "critical";
0014 - tripN-cdev-num : number of the cooling devices which can be bound to trip
0015   point N, this is required if trip point N is defined, set it 0 if none,
0016   otherwise the following cooling device names must be defined;
0017 - tripN-cdev-nameM : name of the No. M cooling device of trip point N;
0018 
0019 Usually the num-trips and tripN-*** are separated in board related dts files.
0020 
0021 Example:
0022 thermal@801573c0 {
0023         compatible = "stericsson,db8500-thermal";
0024         reg = <0x801573c0 0x40>;
0025         interrupts = <21 0x4>, <22 0x4>;
0026         interrupt-names = "IRQ_HOTMON_LOW", "IRQ_HOTMON_HIGH";
0027 
0028         num-trips = <3>;
0029 
0030         trip0-temp = <75000>;
0031         trip0-type = "active";
0032         trip0-cdev-num = <1>;
0033         trip0-cdev-name0 = "thermal-cpufreq-0";
0034 
0035         trip1-temp = <80000>;
0036         trip1-type = "active";
0037         trip1-cdev-num = <2>;
0038         trip1-cdev-name0 = "thermal-cpufreq-0";
0039         trip1-cdev-name1 = "thermal-fan";
0040 
0041         trip2-temp = <85000>;
0042         trip2-type = "critical";
0043         trip2-cdev-num = <0>;
0044 }