linux-rockchip.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: rock960: Enable tsadc device
@ 2019-02-15 15:25 Ezequiel Garcia
       [not found] ` <20190215152539.16606-1-ezequiel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Ezequiel Garcia @ 2019-02-15 15:25 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: linux-rockchip, Manivannan Sadhasivam, Enric Balletbo i Serra,
	kernel, Ezequiel Garcia, linux-arm-kernel

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>
---
 arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi
index d64d5ac0804a..599c9752ed4d 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi
@@ -634,3 +634,10 @@
         mali-supply = <&vdd_gpu>;
         status = "okay";
 };
+
+&tsadc {
+	rockchip,hw-tshut-mode = <1>;
+	rockchip,hw-tshut-polarity = <1>;
+	rockchip,hw-tshut-temp = <110000>;
+	status = "okay";
+};
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-02-16 20:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-15 15:25 [PATCH] arm64: dts: rock960: Enable tsadc device Ezequiel Garcia
     [not found] ` <20190215152539.16606-1-ezequiel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-02-15 23:14   ` Heiko Stübner
2019-02-16  2:55     ` Ezequiel Garcia
     [not found]       ` <aa2f376897ffb4fef02bd3e64812c8e1dbe4987a.camel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-02-16 20:34         ` Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).