Skip to contentSkip to conversation

arm64: dts: rock960: Enable tsadc device

PATCH In review Ezequiel Garcia 2 participants 4 messages Feb 15, 2019 – Feb 16, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: rock960: Enable tsadc device

Enable the thermal sensor. This device also provides temperature shutdown protection. The shutdown value is set at 110C, as tested by the vendor.

---
 arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi +7 -0
index d64d5ac0804a..599c9752ed4d 100644
@@ -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";
+};
Signature · 1 line
2.20.1
maintainer
#1 lore raw

Hi Ezequiel,

Am Freitag, 15. Februar 2019, 16:25:39 CET schrieb Ezequiel Garcia:

Quoted 15 lines

Enable the thermal sensor. This device also provides temperature shutdown protection. The shutdown value is set at 110C, as tested by the vendor.

---
 arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
(quoted diff) +0 -0

b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi index d64d5ac0804a..599c9752ed4d 100644

arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi line 636

Quoted 3 lines
arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi +0 -0
@@ -634,3 +634,10 @@
         mali-supply = <&vdd_gpu>;
         status = "okay";
 };

doesn't apply against my 5.1/dts64 branch and our rock960.dtsi also does not have a mali node yet (especially also not one with space-indentation ;-) ).

Heiko

Quoted 7 lines
arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi +7 -0
+
+&tsadc {
+	rockchip,hw-tshut-mode = <1>;
+	rockchip,hw-tshut-polarity = <1>;
+	rockchip,hw-tshut-temp = <110000>;
+	status = "okay";
+};
#2 lore raw
Quoted 12 lines · Heiko Stübner

Hi Ezequiel,

Am Freitag, 15. Februar 2019, 16:25:39 CET schrieb Ezequiel Garcia:

Quoted 9 lines

Enable the thermal sensor. This device also provides temperature shutdown protection. The shutdown value is set at 110C, as tested by the vendor.

---
 arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
Quoted 15 lines

arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi line 636

Quoted 9 lines
(quoted diff) +0 -0

b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi index d64d5ac0804a..599c9752ed4d 100644

arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi +0 -0
@@ -634,3 +634,10 @@
         mali-supply = <&vdd_gpu>;
         status = "okay";
 };

doesn't apply against my 5.1/dts64 branch and our rock960.dtsi also does not have a mali node yet (especially also not one with space-indentation ;-) ).

Sorry about that, it was based on your for-next branch, but a mali patch slipped through.

Quoted 12 lines

Heiko

arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi line 643

Quoted 7 lines
arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi +7 -0
+
+&tsadc {
+	rockchip,hw-tshut-mode = <1>;
+	rockchip,hw-tshut-polarity = <1>;
+	rockchip,hw-tshut-temp = <110000>;
+	status = "okay";
+};

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

maintainer
#3 lore raw

Am Samstag, 16. Februar 2019, 03:55:01 CET schrieb Ezequiel Garcia:

Quoted 29 lines · Heiko Stübner
Quoted 12 lines

Hi Ezequiel,

Am Freitag, 15. Februar 2019, 16:25:39 CET schrieb Ezequiel Garcia:

Quoted 9 lines

Enable the thermal sensor. This device also provides temperature shutdown protection. The shutdown value is set at 110C, as tested by the vendor.

---
 arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
Quoted 15 lines

arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi line 636

Quoted 9 lines
(quoted diff) +0 -0

b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi index d64d5ac0804a..599c9752ed4d 100644

arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi +0 -0
@@ -634,3 +634,10 @@
         mali-supply = <&vdd_gpu>;
         status = "okay";
 };

doesn't apply against my 5.1/dts64 branch and our rock960.dtsi also does not have a mali node yet (especially also not one with space-indentation ;-) ).

Quoted 2 lines

Sorry about that, it was based on your for-next branch, but a mali patch slipped through.

I've fixed that up now and applied the fixed version for 5.1. I've also moved the &tsadc to the correct position - alphabetically between sdmmc and uart0. Please keep sorting in mind for future additions ;-) .

Thanks
Heiko