1 * Temperature Sensor ADC (TSADC) on rockchip SoCs
4 - compatible : "rockchip,rk3288-tsadc"
5 - reg : physical base address of the controller and length of memory mapped
7 - interrupts : The interrupt number to the cpu. The interrupt specifier format
8 depends on the interrupt controller.
9 - clocks : Must contain an entry for each entry in clock-names.
10 - clock-names : Shall be "tsadc" for the converter-clock, and "apb_pclk" for
12 - resets : Must contain an entry for each entry in reset-names.
13 See ../reset/reset.txt for details.
14 - reset-names : Must include the name "tsadc-apb".
15 - #thermal-sensor-cells : Should be 1. See ./thermal.txt for a description.
16 - rockchip,hw-tshut-temp : The hardware-controlled shutdown temperature value.
17 - rockchip,hw-tshut-mode : The hardware-controlled shutdown mode 0:CRU 1:GPIO.
18 - rockchip,hw-tshut-polarity : The hardware-controlled active polarity 0:LOW
22 tsadc: tsadc@ff280000 {
23 compatible = "rockchip,rk3288-tsadc";
24 reg = <0xff280000 0x100>;
25 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
26 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
27 clock-names = "tsadc", "apb_pclk";
28 resets = <&cru SRST_TSADC>;
29 reset-names = "tsadc-apb";
30 pinctrl-names = "default";
31 pinctrl-0 = <&otp_out>;
32 #thermal-sensor-cells = <1>;
33 rockchip,hw-tshut-temp = <95000>;
34 rockchip,hw-tshut-mode = <0>;
35 rockchip,hw-tshut-polarity = <0>;
38 Example: referring to thermal sensors:
40 cpu_thermal: cpu_thermal {
41 polling-delay-passive = <1000>; /* milliseconds */
42 polling-delay = <5000>; /* milliseconds */
45 thermal-sensors = <&tsadc 1>;
48 cpu_alert0: cpu_alert {
49 temperature = <70000>; /* millicelsius */
50 hysteresis = <2000>; /* millicelsius */
54 temperature = <90000>; /* millicelsius */
55 hysteresis = <2000>; /* millicelsius */
64 <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;