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