summaryrefslogtreecommitdiffstats
path: root/arm64-rock960-enable-tsadc.patch
diff options
context:
space:
mode:
authorPeter Robinson <pbrobinson@gmail.com>2019-02-21 11:41:43 +0000
committerPeter Robinson <pbrobinson@gmail.com>2019-02-21 11:41:43 +0000
commit2a3662749d1ebd01c8e9683992c6298b49b74189 (patch)
tree1f73ab4e57243a9c8dde51b8ff3b21d087dc0ce0 /arm64-rock960-enable-tsadc.patch
parent2a86b1122dee00684499c2a9550a43ec869cc31e (diff)
downloadkernel-2a3662749d1ebd01c8e9683992c6298b49b74189.tar.gz
kernel-2a3662749d1ebd01c8e9683992c6298b49b74189.tar.xz
kernel-2a3662749d1ebd01c8e9683992c6298b49b74189.zip
Improvements to 96boards Rock960
Diffstat (limited to 'arm64-rock960-enable-tsadc.patch')
-rw-r--r--arm64-rock960-enable-tsadc.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/arm64-rock960-enable-tsadc.patch b/arm64-rock960-enable-tsadc.patch
new file mode 100644
index 000000000..53d5303c2
--- /dev/null
+++ b/arm64-rock960-enable-tsadc.patch
@@ -0,0 +1,35 @@
+From 02260a619efe574d0f6c2a4420b8b76c6802294e Mon Sep 17 00:00:00 2001
+From: Ezequiel Garcia <ezequiel@collabora.com>
+Date: Fri, 15 Feb 2019 12:25:39 -0300
+Subject: arm64: dts: rockchip: Enable tsadc device on rock960
+
+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 | 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 e40e66e33a5e..2927db4dda9d 100644
+--- a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi
++++ b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi
+@@ -527,6 +527,13 @@
+ 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>;
+--
+cgit 1.2-0.3.lf.el7