arm64: dts: Register Hi3660's thermal sensor
authorKevin Wangtao <kevin.wangtao@linaro.org>
Tue, 10 Oct 2017 18:02:50 +0000 (20:02 +0200)
committerWei Xu <xuwei5@hisilicon.com>
Wed, 11 Oct 2017 08:51:50 +0000 (09:51 +0100)
Add binding for tsensor on H3660, this tsensor is used for
SoC thermal control, it supports alarm interrupt.

Signed-off-by: Kevin Wangtao <kevin.wangtao@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
arch/arm64/boot/dts/hisilicon/hi3660.dtsi

index b7a90d6..42e9a6d 100644 (file)
                        clocks = <&crg_ctrl HI3660_OSC32K>;
                        clock-names = "apb_pclk";
                };
+
+               tsensor: tsensor@fff30000 {
+                       compatible = "hisilicon,hi3660-tsensor";
+                       reg = <0x0 0xfff30000 0x0 0x1000>;
+                       interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
+                       #thermal-sensor-cells = <1>;
+               };
        };
 };