[PATCH v6 5/7] arm64: dts: allwinner: sun50i-h5: Add thermal sensor and thermal zones
From: Vasily Khoruzhick
Date: Wed Nov 27 2019 - 00:30:10 EST
- Next message: Vasily Khoruzhick: "[PATCH v6 4/7] ARM: dts: sun8i-h3: Add thermal sensor and thermal zones"
- Previous message: Vasily Khoruzhick: "[PATCH v6 0/7] add thermal sensor driver for A64, A83T, H3, H5, H6, R40"
- In reply to: Vasily Khoruzhick: "[PATCH v6 0/7] add thermal sensor driver for A64, A83T, H3, H5, H6, R40"
- Next in thread: Vasily Khoruzhick: "[PATCH v6 4/7] ARM: dts: sun8i-h3: Add thermal sensor and thermal zones"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: Ondrej Jirman <megous@xxxxxxxxxx>
There are two sensors, one for CPU, one for GPU.
Signed-off-by: Ondrej Jirman <megous@xxxxxxxxxx>
Signed-off-by: Vasily Khoruzhick <anarsoul@xxxxxxxxx>
---
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 32 ++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi
index f002a496d7cb..27fb0d2fc9a7 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi
@@ -167,6 +167,32 @@
assigned-clocks = <&ccu CLK_GPU>;
assigned-clock-rates = <384000000>;
};
+
+ ths: ths@1c25000 {
+ compatible = "allwinner,sun50i-h5-ths";
+ reg = <0x01c25000 0x400>;
+ interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
+ resets = <&ccu RST_BUS_THS>;
+ clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>;
+ clock-names = "bus", "mod";
+ nvmem-cells = <&ths_calibration>;
+ nvmem-cell-names = "calibration";
+ #thermal-sensor-cells = <1>;
+ };
+ };
+
+ thermal-zones {
+ cpu_thermal: cpu-thermal {
+ polling-delay-passive = <0>;
+ polling-delay = <0>;
+ thermal-sensors = <&ths 0>;
+ };
+
+ gpu_thermal {
+ polling-delay-passive = <0>;
+ polling-delay = <0>;
+ thermal-sensors = <&ths 1>;
+ };
};
};
@@ -212,4 +238,10 @@
&sid {
compatible = "allwinner,sun50i-h5-sid";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ ths_calibration: thermal-sensor-calibration@34 {
+ reg = <0x34 4>;
+ };
};
--
2.24.0
- Next message: Vasily Khoruzhick: "[PATCH v6 4/7] ARM: dts: sun8i-h3: Add thermal sensor and thermal zones"
- Previous message: Vasily Khoruzhick: "[PATCH v6 0/7] add thermal sensor driver for A64, A83T, H3, H5, H6, R40"
- In reply to: Vasily Khoruzhick: "[PATCH v6 0/7] add thermal sensor driver for A64, A83T, H3, H5, H6, R40"
- Next in thread: Vasily Khoruzhick: "[PATCH v6 4/7] ARM: dts: sun8i-h3: Add thermal sensor and thermal zones"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]