arm64: dts: register Hi6220's thermal sensor
authorLeo Yan <leo.yan@linaro.org>
Tue, 29 Mar 2016 11:27:14 +0000 (19:27 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Fri, 15 Apr 2016 15:58:55 +0000 (16:58 +0100)
Bind thermal sensor driver for Hi6220.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
arch/arm64/boot/dts/hisilicon/hi6220.dtsi

index 7b7bbf66f0048fefba2d932ec78051edbfff53f0..fc61a164ecebe00e38522a24562be8cfcab5058c 100644 (file)
                        pinctrl-0 = <&sdio_pmx_func &sdio_clk_cfg_func &sdio_cfg_func>;
                        pinctrl-1 = <&sdio_pmx_idle &sdio_clk_cfg_idle &sdio_cfg_idle>;
                };
+
+               tsensor: tsensor@0,f7030700 {
+                       compatible = "hisilicon,tsensor";
+                       reg = <0x0 0xf7030700 0x0 0x1000>;
+                       interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&sys_ctrl 22>;
+                       clock-names = "thermal_clk";
+                       #thermal-sensor-cells = <1>;
+               };
        };
 };