xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunBinding for Thermal Sensor driver for BCM2835 SoCs.
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired parameters:
4*4882a593Smuzhiyun-------------------
5*4882a593Smuzhiyun
6*4882a593Smuzhiyuncompatible: 		should be one of: "brcm,bcm2835-thermal",
7*4882a593Smuzhiyun			"brcm,bcm2836-thermal" or "brcm,bcm2837-thermal"
8*4882a593Smuzhiyunreg:			Address range of the thermal registers.
9*4882a593Smuzhiyunclocks: 		Phandle of the clock used by the thermal sensor.
10*4882a593Smuzhiyun#thermal-sensor-cells:	should be 0 (see Documentation/devicetree/bindings/thermal/thermal-sensor.yaml)
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunExample:
13*4882a593Smuzhiyun
14*4882a593Smuzhiyunthermal-zones {
15*4882a593Smuzhiyun	cpu_thermal: cpu-thermal {
16*4882a593Smuzhiyun		polling-delay-passive = <0>;
17*4882a593Smuzhiyun		polling-delay = <1000>;
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun		thermal-sensors = <&thermal>;
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun		trips {
22*4882a593Smuzhiyun			cpu-crit {
23*4882a593Smuzhiyun				temperature	= <80000>;
24*4882a593Smuzhiyun				hysteresis	= <0>;
25*4882a593Smuzhiyun				type		= "critical";
26*4882a593Smuzhiyun			};
27*4882a593Smuzhiyun		};
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun		coefficients = <(-538)	407000>;
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun		cooling-maps {
32*4882a593Smuzhiyun		};
33*4882a593Smuzhiyun	};
34*4882a593Smuzhiyun};
35*4882a593Smuzhiyun
36*4882a593Smuzhiyunthermal: thermal@7e212000 {
37*4882a593Smuzhiyun	compatible = "brcm,bcm2835-thermal";
38*4882a593Smuzhiyun	reg = <0x7e212000 0x8>;
39*4882a593Smuzhiyun	clocks = <&clocks BCM2835_CLOCK_TSENS>;
40*4882a593Smuzhiyun	#thermal-sensor-cells = <0>;
41*4882a593Smuzhiyun};
42