arm64: dts: rockchip: Enable tsadc device on rock960
authorEzequiel Garcia <ezequiel@collabora.com>
Fri, 15 Feb 2019 15:25:39 +0000 (12:25 -0300)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 17 Feb 2019 22:59:05 +0000 (23:59 +0100)
Enable the thermal sensor. This device also provides
temperature shutdown protection. The shutdown value is
set at 110C, as tested by the vendor.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi

index e40e66e..2927db4 100644 (file)
        status = "okay";
 };
 
+&tsadc {
+       rockchip,hw-tshut-mode = <1>;
+       rockchip,hw-tshut-polarity = <1>;
+       rockchip,hw-tshut-temp = <110000>;
+       status = "okay";
+};
+
 &uart0 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;