xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/thermal/amazon,al-thermal.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunAmazon's Annapurna Labs Thermal Sensor
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunSimple thermal device that allows temperature reading by a single MMIO
4*4882a593Smuzhiyuntransaction.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunRequired properties:
7*4882a593Smuzhiyun- compatible: "amazon,al-thermal".
8*4882a593Smuzhiyun- reg: The physical base address and length of the sensor's registers.
9*4882a593Smuzhiyun- #thermal-sensor-cells: Must be 1. See Documentation/devicetree/bindings/thermal/thermal-sensor.yaml for a description.
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunExample:
12*4882a593Smuzhiyun	thermal: thermal {
13*4882a593Smuzhiyun		compatible = "amazon,al-thermal";
14*4882a593Smuzhiyun		reg = <0x0 0x05002860 0x0 0x1>;
15*4882a593Smuzhiyun		#thermal-sensor-cells = <0x1>;
16*4882a593Smuzhiyun	};
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun	thermal-zones {
19*4882a593Smuzhiyun		thermal-z0 {
20*4882a593Smuzhiyun			polling-delay-passive = <250>;
21*4882a593Smuzhiyun			polling-delay = <1000>;
22*4882a593Smuzhiyun			thermal-sensors = <&thermal 0>;
23*4882a593Smuzhiyun			trips {
24*4882a593Smuzhiyun				critical {
25*4882a593Smuzhiyun					temperature = <105000>;
26*4882a593Smuzhiyun					hysteresis = <2000>;
27*4882a593Smuzhiyun					type = "critical";
28*4882a593Smuzhiyun				};
29*4882a593Smuzhiyun			};
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun		};
32*4882a593Smuzhiyun	};
33*4882a593Smuzhiyun
34